<a href="${helpuri}configure-categories-0-7" id="help" target="_blank">$T('menu-help')</a>
<h3>$T('configCat')</h3>
<br/>
$T('explain-configCat')<br/>
$T('explain-catTags')<br/>
$T('explain-catTags2')
<br/>
$T('explain-relFolder') $defdir<br/>
<br/>
  <table id="historyTable">
  <thead>
    <tr>
      <th></th>
      <th>$T('category')</th>
      <th>$T('mode')</th>
      <th>$T('priority')</th>
      <!--#if $script_list#--><th>$T('script')</th><!--#end if#-->
      <th>$T('catFolderPath')</th>
      <th>$T('catTags')</th>
      <th></th>
    </tr>
  </thead>
  <!--#set $odd = False#--><tbody>
  <!--#for $slot in $slotinfo#-->
    <!--#set $odd = not $odd#-->
    <tr id="<!--#if $slot.name#-->$slot.name<!--#else#-->newcat<!--#end if#-->" class="<!--#if $odd then "odd" else "even"#-->">
    <td><!--#if $slot.name and $slot.name != '*'#-->
      <input type="submit" value="$T('button-delCat')" onclick="javascript:lr('config/categories/delete','name=<!--#if $slot.name#-->$slot.name<!--#else#-->newcat<!--#end if#-->')">
      <!--#end if#-->
    </td>



  <td><!--#if $slot.name != '*'#-->
    <input type="hidden" value="$slot.name" name="name"><input type="text" class="fill-td" name="newname" value="$slot.name">
  <!--#else#-->
    $T('default')
  <!--#end if#-->
  </td>

  <td>
    <select name="pp">
      <optgroup label="$T('pp')">
        <!--#if $slot.name != '*'#-->
          <option value=""  <!--#if $slot.pp == ""  then "selected" else ""#-->>$T('default')</option>
        <!--#end if#-->
        <option value="0" <!--#if $slot.pp == "0" then "selected" else ""#-->>$T('pp-n')</option>
        <option value="1" <!--#if $slot.pp == "1" then "selected" else ""#-->>$T('pp-r')</option>
        <option value="2" <!--#if $slot.pp == "2" then "selected" else ""#-->>$T('pp-u')</option>
        <option value="3" <!--#if $slot.pp == "3" then "selected" else ""#-->>$T('pp-d')</option>
      </optgroup>
  </select>
  </td>

  <td>
    <select name="priority">
      <optgroup label="$T('priority')">
        <!--#if $slot.name != '*'#-->
          <option value="-100" <!--#if $slot.priority == -100  then "selected" else ""#-->>$T('default')</option>
        <!--#end if#-->
        <option value="2"    <!--#if $slot.priority == 2     then "selected" else ""#-->>$T('pr-force')</option>
        <option value="1"    <!--#if $slot.priority == 1     then "selected" else ""#-->>$T('pr-high')</option>
        <option value="0"    <!--#if $slot.priority == 0     then "selected" else ""#-->>$T('pr-normal')</option>
        <option value="-1"   <!--#if $slot.priority == -1    then "selected" else ""#-->>$T('pr-low')</option>
        <option value="-2"   <!--#if $slot.priority == -2    then "selected" else ""#-->>$T('pr-paused')</option>
      </optgroup>
    </select>
  </td>

  <!--#if $script_list#-->
  <td>
  <select name="script">
    <optgroup label="$T('script')">
    <!--#for $sc in $script_list#-->
      <!--#if not ($sc == 'Default' and $slot.name == '*')#-->
        <option value="$sc" <!--#if $slot.script.lower() == $sc.lower() then "selected" else ""#-->>$Tspec($sc)</option>
      <!--#end if#-->
    <!--#end for#-->
    </optgroup>
    </select>
  </td>
  <!--#end if#-->

  <td><input type="text" class="fill-td" size=35 name="dir" value="$slot.dir"></td>

  <td><input type="text" class="fill-td" size=35 name="newzbin" value="$slot.newzbin"></td>

  <td><input type="submit" class="fill-td" value="$T('button-save')" onclick="javascript:submitconfig('config/categories/save', this,'<!--#if $slot.name#-->$slot.name<!--#else#-->newcat<!--#end if#-->'<!--#if not $slot.name#-->,'1'<!--#end if#-->)">
  </td>
</tr>

  <!--#end for#--></tbody>
  </table>