ElixirVault/www/system-brs-core/cms/cmsPermissionGroups/tmpl/groupEdit.twig

97 lines
4.7 KiB
Twig

<div>
<h2 class="title">
{% if GR.id %}{{ dt.gM("Edit group data") }}{% else %}{{ dt.gM("Add new group") }}{% endif %}
{# TITLE INFO #}
<ul class="dx record-info">
{% if dt.chkP('SYS_SHOW_TABLE_IDS') %}<li>{{ dt.gM("ID") }}:&nbsp;<span>{% if GR.id %}{{GR.id}}{% else %}-{% endif %}</span></li>{% endif %}
<li>{{ dt.gM("Created") }}:&nbsp;<span>{% if GR.group_created %}{{GR.group_created}}{% else %}-{% endif %}</span></li>
<li>{{ dt.gM("Modified") }}:&nbsp;<span>{% if GR.group_modified %}{{GR.group_modified}}{% else %}-{% endif %}</span></li>
</ul>
<input type="hidden" value="{% if GR.id %}{{GR.id}}{% endif %}" id="id" name="id" />
</h2>
{# BASE DATA #}
<ul id="pbase" class="dx col1 sbox p20">
<li>
<label for="group_name">{{ dt.gM("Group name") }}:</label>
<div class="validate">
<input id="group_name" name="group_name" type="text" class="long" value="{% if GR.group_name %}{{GR.group_name}}{% endif %}"/>
</div>
</li><li>
<label for="group_description">{{ dt.gM("Group description") }}:</label>
<div class="validate">
<textarea id="group_description" name="group_description" class="long">{% if GR.group_description %}{{GR.group_description}}{% endif %}</textarea>
</div>
</li>
</ul>
{# SETTINGS DATA CHECKBOXES #}
<div id="psettings" class="show sbox noskip oh">
<h3><a>{{ dt.gM("Group settings") }}</a></h3>
<div style="display:none;">
<ul class="dx sbox pblocks">
<li>
<input id="group_blocked" name="group_blocked" type="hidden" class="chk-value" value="{% if GR.group_blocked %}1{% endif %}"/>
<label>{{ dt.gM("Group blocked") }}:</label>
<p>{{ dt.gM("Indicates whether group has been disabled or not") }}</p>
</li>
<li>
<input id="group_type" name="group_type" type="hidden" class="chk-value" value="{% if GR.group_type %}1{% endif %}"/>
<label>{{ dt.gM("Group in pub") }}:</label>
<p>{{ dt.gM("Group is enabled for public use") }}</p>
</li>
</ul>
<div class="clear"></div>
</div>
</div>
{# PERMISSION VIEW DATA #}
<div id="permissions" class="hide noskip sbox oh">
<h3><a>{{ dt.gM("Linked permissions") }}</a></h3>
<div style="text-align:center;">
<div class="pp-search">
<label for="grpp-search">{{ dt.gM("Search in permissions:") }}</label>
<div>
<input type="text" name="grpp-search" id="grpp-search" class="skip long" />
<a class="clf op60" style="display:none;" href="javascript:;"></a>
</div>
<span class="pp-close"></span>
</div>
<div class="ncheckbox">
{# CHECK ALL BUTTON #}
<div class="ckh_all inline">
<label>{{ dt.gM("Check all:") }}</label>
<div class="chk no-sbox-sel"><div></div></div>
</div>
<div class="only_sel inline">
<label>{{ dt.gM("Show selected:") }}</label>
<div class="chk no-sbox-sel"><div></div></div>
</div>
<br><br><br>
{% if P.permissions and P.permissions|length > 0 %}
<ul class="dx pblocks">
{% for g in P.permissions %}
{% if g and g|length > 0 %}
{% for pp in g %}
<li>
<div id="g{{pp.id}}" name="g{{pp.id}}" class="chk{% if pp.sel %} chked{% endif %}"><div></div></div>
<label for="k{{pp.id}}">{{pp.p_name}}</label>
<p>{% if pp.p_description %}{{pp.p_description}}{% else %}&nbsp;{% endif %}</p>
</li>
{% endfor %}
{% endif %}
{% endfor %}
<li class="dummy noresults" style="display:none;">{{ dt.gM("No results found, please change the search and try again") }}</li>
<li class="dummy"></li>
<li class="dummy"></li>
<li class="dummy"></li>
<li class="dummy"></li>
<li class="dummy"></li>
</ul>
{% endif %}
<div class="clear"></div>
</div>
</div>
</div>
</div>
<br/>