<h3>{$title}:</h3>

{if isset($message) }
  {if isset($error) }
    <p><font color="red">{$message}</font></p>
  {else}
    <p>{$message}</p>
  {/if}
{/if}

{$startform}
{if isset($hidden)}
<div>{$hidden}</div>
{/if}

<div class="pageoverflow">
  <p class="pagetext">{$prompt_groupname}: *</p>
  <p class="pageinput">{$input_groupname}</p>
</div>
<div class="pageoverflow">
  <p class="pagetext">{$prompt_groupdesc}: *</p>
  <p class="pageinput">{$input_groupdesc}</p>
</div>

<div class="warning">
  * = {$mod->Lang('required')}
</div>

{if $propcount > 0}
<br/>
<div class="pageoverflow">
<table cellspacing="0" class="pagetable">
  <thead>
    <tr>
      <th>{$nametext}</th>
      <th>{$prompttext}</th>
      <th>{$typetext}</th>
      <th>{$mod->Lang('encrypted')}</th>
      <th>{$fieldstatustext}</th>
      <th class="pageicon"></th>
      <th class="pageicon"></th>
    </tr>
  </thead>
  <tbody>
  {foreach $props as $prope}
    {cycle values="row1,row2" assign='rowclass'}
    <tr class="{$rowclass}" onmouseover="this.className='{$rowclass}hover';" onmouseout="this.className='{$rowclass}';">
      <td>{$prope->hidden}{$prope->name}</td>
      <td>{$prope->prompt}</td>
      <td>{$prope->type}</td>
      <td>{if $prope->encrypted}<span info="{$mod->Lang('info_encrypted')}" style="color: red; font-weight: bold;">{$mod->Lang('yes')}</span>{/if}</td>
      <td>{$prope->required}</td>
      <td>
        {if isset($prope->moveup_idx)}
          <button name="{$actionid}moveup" title="{$mod->Lang('move_up')}" value="{$prope->moveup_idx}">{$img_up}</button>
        {/if}
      </td>
      <td>
        {if isset($prope->movedown_idx)}
          <button name="{$actionid}movedown" title="{$mod->Lang('move_down')}" value="{$prope->movedown_idx}">{$img_down}</button>
        {/if}
      </td>
    </tr>
  {/foreach}
  </tbody>
</table>
</div>
{/if}

<div class="pageoverflow">
  <p class="pageinput">{$submit}{$cancel}</p>
</div>
{$endform}
