correctifs
This commit is contained in:
parent
2c8b9c9056
commit
3560bd1769
|
@ -92,12 +92,16 @@ class GroupController extends Controller
|
||||||
|
|
||||||
foreach($datas as $data) {
|
foreach($datas as $data) {
|
||||||
$action = "";
|
$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
|
// Retour
|
||||||
|
@ -417,6 +421,7 @@ class GroupController extends Controller
|
||||||
{
|
{
|
||||||
// Initialisation de l'enregistrement
|
// Initialisation de l'enregistrement
|
||||||
$data = new Group();
|
$data = new Group();
|
||||||
|
$data->setFgopen(false);
|
||||||
|
|
||||||
// Création du formulaire
|
// Création du formulaire
|
||||||
$form = $this->createForm(GroupType::class,$data,array("mode"=>"submit","updatelimite"=>false,"masteridentity"=> $this->GetParameter("masteridentity")));
|
$form = $this->createForm(GroupType::class,$data,array("mode"=>"submit","updatelimite"=>false,"masteridentity"=> $this->GetParameter("masteridentity")));
|
||||||
|
|
|
@ -15,10 +15,11 @@
|
||||||
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
|
<table class="table table-striped table-bordered table-hover" id="dataTables" style="width:100%">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th width="70px" class="no-sort">Action</th>
|
<th width="130px" class="no-sort">Action</th>
|
||||||
<th>Label</th>
|
<th>Label</th>
|
||||||
<th>Ouvert</th>
|
<th>Ouvert</th>
|
||||||
<th>Partage</th>
|
<th>Partage</th>
|
||||||
|
<th class="no-sort">Filtre</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
|
@ -56,6 +56,7 @@
|
||||||
<div class="col-md-8">
|
<div class="col-md-8">
|
||||||
{{ form_row(form.name) }}
|
{{ form_row(form.name) }}
|
||||||
{{ form_row(form.blog) }}
|
{{ form_row(form.blog) }}
|
||||||
|
{{ form_row(form.description) }}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-4">
|
<div class="col-md-4">
|
||||||
|
@ -65,11 +66,6 @@
|
||||||
{{ form_widget(form.image) }}
|
{{ form_widget(form.image) }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-md-12">
|
|
||||||
{{ form_row(form.description) }}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -44,8 +44,9 @@
|
||||||
{% set stylefeed = "background-color: #" ~ flux.color ~ ";" %}
|
{% set stylefeed = "background-color: #" ~ flux.color ~ ";" %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
{% if fluxs|length > 1 %}
|
||||||
<div class="cat-list-feed" onClick="showFlux({{ entity.id}},{{ flux.id }})" style="{{ stylefeed }}">{{ flux.title }}</div>
|
<div class="cat-list-feed" onClick="showFlux({{ entity.id}},{{ flux.id }})" style="{{ stylefeed }}">{{ flux.title }}</div>
|
||||||
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% for feed in feeds %}
|
{% for feed in feeds %}
|
||||||
|
|
|
@ -117,7 +117,7 @@
|
||||||
{% if loop.index ==1 %}
|
{% if loop.index ==1 %}
|
||||||
{% set haveitem=true %}
|
{% 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>
|
<h3 class="grid-title" style="{{ colorbodyfont }}" data-idcategory="{{ itemcategory.id }}">{{ itemcategory.label }}</h3>
|
||||||
{% else %}
|
{% else %}
|
||||||
<p></p>
|
<p></p>
|
||||||
|
|
Loading…
Reference in New Issue