correctifs

This commit is contained in:
afornerot 2019-05-02 11:25:55 +02:00
parent 2c8b9c9056
commit 3560bd1769
5 changed files with 17 additions and 14 deletions

View File

@ -92,12 +92,16 @@ class GroupController extends Controller
foreach($datas as $data) {
$action = "";
//if(!$data->getFgall()&&!$data->getFgTemplate())
$action .="<a href='".$this->generateUrl('cadoles_core_config_group_update', array('id'=>$data->getId()))."'><i class='fa fa-file fa-fw'></i></a>";
if($data->getId()>0&&!$data->getFgall()&&!$data->getFgTemplate()&&$this->isGranted('ROLE_ADMIN')) $action.="<a href='".$this->generateUrl('cadoles_core_config_group_delete', array('id'=>$data->getId()))."'><i class='fa fa-trash fa-fw'></i></a>";
if(!$data->getFgall()) $action .="<a href='".$this->generateUrl('cadoles_core_config_group_users', array('id'=>$data->getId()))."'><i class='fa fa-users fa-fw'></i></a>";
array_push($output["data"],array($action,$data->getLabel(),($data->getFgopen()?"oui":"non"),($data->getFgcanshare()?"oui":"non")));
$action .="<a href='".$this->generateUrl('cadoles_core_config_group_update', array('id'=>$data->getId()))."'><i class='fa fa-file fa-2x fa-fw'></i></a>";
if($data->getId()>0&&!$data->getFgall()&&!$data->getFgTemplate()&&$this->isGranted('ROLE_ADMIN')) $action.="<a href='".$this->generateUrl('cadoles_core_config_group_delete', array('id'=>$data->getId()))."'><i class='fa fa-trash fa-fw fa-2x'></i></a>";
if(!$data->getFgall()) $action .="<a href='".$this->generateUrl('cadoles_core_config_group_users', array('id'=>$data->getId()))."'><i class='fa fa-users fa-2x fa-fw'></i></a>";
$filtre="";
if($this->GetParameter("masteridentity")=="LDAP") $filtre=$data->getLdapfilter();
if($this->GetParameter("masteridentity")=="SSO") $filtre=$data->getAttributes();
array_push($output["data"],array($action,$data->getLabel(),($data->getFgopen()?"oui":"non"),($data->getFgcanshare()?"oui":"non"),$filtre));
}
// Retour
@ -417,6 +421,7 @@ class GroupController extends Controller
{
// Initialisation de l'enregistrement
$data = new Group();
$data->setFgopen(false);
// Création du formulaire
$form = $this->createForm(GroupType::class,$data,array("mode"=>"submit","updatelimite"=>false,"masteridentity"=> $this->GetParameter("masteridentity")));

View File

@ -15,10 +15,11 @@
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
<thead>
<tr>
<th width="70px" class="no-sort">Action</th>
<th width="130px" class="no-sort">Action</th>
<th>Label</th>
<th>Ouvert</th>
<th>Partage</th>
<th class="no-sort">Filtre</th>
</tr>
</thead>
</table>

View File

@ -56,6 +56,7 @@
<div class="col-md-8">
{{ form_row(form.name) }}
{{ form_row(form.blog) }}
{{ form_row(form.description) }}
</div>
<div class="col-md-4">
@ -65,11 +66,6 @@
{{ form_widget(form.image) }}
</div>
</div>
<div class="col-md-12">
{{ form_row(form.description) }}
</div>
</div>

View File

@ -44,8 +44,9 @@
{% set stylefeed = "background-color: #" ~ flux.color ~ ";" %}
{% endif %}
<div class="cat-list-feed" onClick="showFlux({{ entity.id}},{{ flux.id }})" style="{{ stylefeed }}">{{ flux.title }}</div>
{% if fluxs|length > 1 %}
<div class="cat-list-feed" onClick="showFlux({{ entity.id}},{{ flux.id }})" style="{{ stylefeed }}">{{ flux.title }}</div>
{% endif %}
{% endfor %}
{% for feed in feeds %}

View File

@ -117,7 +117,7 @@
{% if loop.index ==1 %}
{% set haveitem=true %}
{% if mycategs|length > 1 %}
{% if mycategs|length > 1 or bookmarks is not empty %}
<h3 class="grid-title" style="{{ colorbodyfont }}" data-idcategory="{{ itemcategory.id }}">{{ itemcategory.label }}</h3>
{% else %}
<p></p>