permissions.smarty
871 Bytes
<h2>{i18n}Guard permissions for Transition{/i18n}</h2>
<form action="{$smarty.server.PHP_SELF}" method="POST">
<fieldset>
<legend>{i18n}Guard Permissions{/i18n}</legend>
{* misc, boring args *}
{foreach from=$args item=val key=name}
<input type="hidden" name="{$name}" value="{$val}" />
{/foreach}
<p class="descriptiveText">{i18n}Specify which permissions the user will require in order to perform this transition. Note that
the user will be required to have <strong>all</strong> these permissions.{/i18n}</p>
{* FIXME keep old selection *}
{foreach from=$perms item=oPerm}
<input type="checkbox" name="trigger_perms[{$oPerm->getName()}]" /> {i18n}{$oPerm->getHumanName()}{/i18n} <br />
{/foreach}
<div class="form_action">
<input type="submit" value="{i18n}Save Trigger{/i18n}" />
{* FIXME how do I cancel again? *}
</div>
</fieldset>
</form>