Location: PHPKode > projects > Blandware AtLeap Lite - CMS on PHP > atleaplite/smarty/templates/role/createUpdate.tpl
{* Smarty template *}

{assign var="fieldCycleName" value="roles"}

{include file="form_errors.tpl"}

<form {$form.attributes}>
<table cellpadding="0" cellspacing="0" border="0" class="modificationTable">
    <tr>
        <th>
            {$form.identifier.label}
        </th>
        <td>
            {$form.identifier.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.title.label}
        </th>
        <td>
            {$form.title.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.description.label}
        </th>
        <td>
            {$form.description.html}
        </td>
    </tr>
    <tr>
        <th>
            {$form.admin.label}
        </th>
        <td>
            {$form.admin.html}
        </td>
    </tr>
</table>

<h2>{message key='role.form.permissions'}</h2>

<input type="button" value="{message key='common.button.selectAll'}" onclick="checkAll(this.form, new Array('admin'));" class="form_button">

{count array=$permissions assign='permissionsNumber'}
{assign var='odd' value=true}
<table class="permissions">
    {foreach from=$permissions item=permission}
        {assign var=permId value=$permission->id}
        {if $odd}
        <tr>
        {/if}
            <td>
                {$form.perm.$permId.html}
            </td>
            <td>
                {$form.perm.$permId.label}
            </td>
        {if !$odd}
        </tr>
        {/if}
        {if $odd}
            {assign var='odd' value=false}
        {else}
            {assign var='odd' value=true}
        {/if}
    {/foreach}
    {if !$odd}
        </tr>
    {/if}
</table>

{$form.submit.html}
{$form.cancel.html}
</form>
{include file="bottom_buttons.tpl"}
{include file="bottom_links.tpl"}
Return current item: Blandware AtLeap Lite - CMS on PHP