actions_overview.smarty 1.49 KB
<h2>{i18n}Actions Overview{/i18n}</h2>

<p class="descriptiveText">{i18n}In addition to restricting permissions, it is also 
possible to block certain <strong>actions</strong> at any given point.  Actions
which are not blocked are still controlled by the usual permissions.{/i18n}</p>

<p><a class="ktAction ktActionDescribed ktEdit" href="{addQS context=$context}action=editactions{/addQS}">{i18n}Edit Actions{/i18n}</a>
<a href="{addQS context=$context}action=editactions{/addQS}">{i18n}Edit Actions{/i18n}</a></p>
<div class="action_overview_scroll">
<table class="kt_collection narrow" width="50" cellspacing="0">
    <thead>
        <th>{i18n}State{/i18n}</th>
      {foreach from=$actions item=oAction}
      	{if ($oAction->getDisplayName() != '')}
        <th>{$oAction->getDisplayName()}</th> 
        {/if} 
      {/foreach}
    </thead>
    
    <tbody>
      {foreach from=$states item=oState}
      {assign value=$oState->getId() var=state_id}
        <tr>
            <td>{$oState->getName()}</td>
            {foreach from=$actions item=oAction}
            {if ($oAction->getDisplayName() != '')}
            {assign value=$oAction->getName() var=action_id}
              {if $grid.$state_id.$action_id}
                <td class="centered"><span class="ktAction ktDenied">{i18n}Denied{/i18n}</span></td>              
              {else}
                <td class="centered">&mdash;</td>
              {/if}
            {/if}
            {/foreach}
        </tr>
      {/foreach}
    </tbody>
</table>
</div>