Merge branch 'master' into dist/envole/6/master

This commit is contained in:
Arnaud Fornerot 2021-03-05 15:22:17 +01:00
commit a11928569b
5 changed files with 45 additions and 6 deletions

View File

@ -60,6 +60,13 @@ class Page
*/ */
private $url; private $url;
/**
* @var boolean
*
* @ORM\Column(name="toreload", type="boolean", nullable=true)
*/
private $toreload;
/** /**
* @var string * @var string
* *
@ -616,4 +623,28 @@ class Page
{ {
return $this->fonticon; return $this->fonticon;
} }
/**
* Set toreload
*
* @param boolean $toreload
*
* @return Page
*/
public function setToreload($toreload)
{
$this->toreload = $toreload;
return $this;
}
/**
* Get toreload
*
* @return boolean
*/
public function getToreload()
{
return $this->toreload;
}
} }

View File

@ -31,6 +31,11 @@ class PageUpdateURLType extends AbstractType
'label' => 'URL' 'label' => 'URL'
]) ])
->add("toreload",ChoiceType::class,[
"label" =>"Forcer le rechargement de l'url à chaque accès à cette page",
"choices" => ["non"=>"0","oui"=>"1"]
])
->add('roworder', IntegerType::class, [ ->add('roworder', IntegerType::class, [
'label' => 'Ordre', 'label' => 'Ordre',
]) ])

View File

@ -4,7 +4,7 @@
{% for page in groupshared.pagesshared %} {% for page in groupshared.pagesshared %}
{% set forcereload=true %} {% set forcereload=true %}
{% if page.pagecategory.id==1 %} {% if page.pagecategory.id==1 %}
{% set forcereload=false %} {% set forcereload=page.toreload %}
{% endif %} {% endif %}
{% set isactive="" %} {% set isactive="" %}
@ -46,7 +46,7 @@
{% set page = groupshared.pagesshared[0] %} {% set page = groupshared.pagesshared[0] %}
{% set forcereload=true %} {% set forcereload=true %}
{% if page.pagecategory.id==1 %} {% if page.pagecategory.id==1 %}
{% set forcereload=false %} {% set forcereload=page.toreload %}
{% endif %} {% endif %}
{% set isactive="" %} {% set isactive="" %}
@ -84,7 +84,7 @@
{% for page in groupshared.pagesshared %} {% for page in groupshared.pagesshared %}
{% set forcereload=true %} {% set forcereload=true %}
{% if page.pagecategory.id==1 %} {% if page.pagecategory.id==1 %}
{% set forcereload=false %} {% set forcereload=page.toreload %}
{% endif %} {% endif %}
{% set isactive="" %} {% set isactive="" %}

View File

@ -10,7 +10,7 @@
{% for page in pagesadmin %} {% for page in pagesadmin %}
{% set forcereload=true %} {% set forcereload=true %}
{% if page.pagecategory.id==1 %} {% if page.pagecategory.id==1 %}
{% set forcereload=false %} {% set forcereload=page.toreload %}
{% endif %} {% endif %}
{% if entity.id is defined and page.id==entity.id %} {% if entity.id is defined and page.id==entity.id %}
@ -39,9 +39,10 @@
{% for page in pagesuser %} {% for page in pagesuser %}
{% set forcereload=true %} {% set forcereload=true %}
{% if page.pagecategory.id==1 %} {% if page.pagecategory.id==1 %}
{% set forcereload=false %} {% set forcereload=page.toreload %}
{% endif %} {% endif %}
{% if entity.id is defined and page.id==entity.id %} {% if entity.id is defined and page.id==entity.id %}
<li id="menupage-{{page.id}}" class="active" style="cursor:pointer"> <li id="menupage-{{page.id}}" class="active" style="cursor:pointer">
<a onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')"> <a onClick="showPage({{ page.id }},{{ page.pagecategory.id }},'{{ page.canupdate }}','user','{{forcereload}}')">

View File

@ -56,7 +56,9 @@
{{ form_row(form.name) }} {{ form_row(form.name) }}
{{ form_row(form.url) }} {{ form_row(form.url) }}
<em>le mot clé #login# sera remplacé par le login de l'utilisateur</em><br> <em>le mot clé #login# sera remplacé par le login de l'utilisateur</em><br>
<em>Attention certains sites n'acceptent pas d'être encapsulés dans une frame.<br><br> <em>Attention certains sites n'acceptent pas d'être encapsulés dans une frame.<br><br></em>
{{ form_row(form.toreload) }}
{{ form_row(form.roworder) }} {{ form_row(form.roworder) }}
{{ form_row(form.fonticon) }} {{ form_row(form.fonticon) }}
{{ form_row(form.maxwidth) }} {{ form_row(form.maxwidth) }}