Modif des droits sur les modules

This commit is contained in:
2021-04-13 17:11:47 +02:00
parent a291e88197
commit 32b7b08931
8 changed files with 29 additions and 20 deletions

View File

@@ -17,7 +17,7 @@
}
{form_field form=$form field="place_id"}
<input type="hidden" name="{$name}" value="{$place_id}"/>
<input type="hidden" name="{$name}" value="{$place_id}"/>@
{/form_field}
<div class="row">
@@ -26,7 +26,7 @@
<table class="table table-striped table-condensed">
<caption class="clearfix">
{loop name="auth-create" type="auth" role="ADMIN" resource="admin.pdr.schedule" access="CREATE" module="PointRetrait"}
{loop name="auth-create" type="auth" role="ADMIN" access="CREATE" module="PointRetrait"}
<div class="pull-right">
<a class="btn btn-default btn-primary place-schedule-create"
title="{intl l='Add a new withdrawal day' d='pointretrait'}"
@@ -55,7 +55,7 @@
{* Actions *}
<td>
<div class="btn-group">
{loop name="auth-edit" type="auth" role="ADMIN" resource="admin.pdr.schedule" access="UPDATE" module="PointRetrait"}
{loop name="auth-edit" type="auth" role="ADMIN" access="UPDATE" module="PointRetrait"}
<a class="btn btn-info btn-responsive place-schedule-update-default"
title="{intl l='Edit this withdrawal day' d='pointretrait'}"
data-target="#place-schedule-update" data-toggle="modal" data-id="{$ID}"
@@ -65,7 +65,7 @@
<i class="glyphicon glyphicon-edit"></i>
</a>
{/loop}
{loop name="auth-delete" type="auth" role="ADMIN" resource="admin.pdr.schedule" access="DELETE" module="PointRetrait"}
{loop name="auth-delete" type="auth" role="ADMIN" access="DELETE" module="PointRetrait"}
<a class="btn btn-danger btn-responsive place-schedule-delete"
title="{intl l='Delete this withdrawal day' d='pointretrait'}"
data-target="#place-schedule-delete" data-toggle="modal" data-id="{$ID}">

View File

@@ -39,7 +39,7 @@
</thead>
<caption class="clearfix">
{loop name="auth-create" type="auth" role="ADMIN" resource="admin.pdr.main" access="CREATE" module="PointRetrait"}
{loop name="auth-create" type="auth" role="ADMIN" access="CREATE" module="PointRetrait"}
<div class="pull-right">
<a class="btn btn-default btn-primary"
title="{intl l='Add a new place' d='pointretrait'}"