{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=karmaPluginSettings title=$locale->tr("karma_plugin")}
<form name="pluginKarmaSettings" action="admin.php" method="post">
 <fieldset class="inputField">
 <legend>{$locale->tr("label_configuration")}</legend> 
  {include file="$admintemplatepath/successmessage.template"}
  {include file="$admintemplatepath/errormessage.template"} 
  <div class="field">
   <label for="pluginEnabled">{$locale->tr("label_enable")}</label>
   <span class="required"></span>   
   <div class="formHelp">
    <input class="checkbox" type="checkbox" name="pluginEnabled" id="pluginEnabled" {if $pluginEnabled} checked="checked" {/if} value="1" />{$locale->tr("karma_plugin_enabled")}
   </div>
  </div>

  <div class="field">
   <label for="disableNegative">{$locale->tr("label_disablenegative")}</label>
   <span class="required"></span>   
   <div class="formHelp">
    <input class="checkbox" type="checkbox" name="disableNegative" id="disableNegative" {if $disableNegative} checked="checked" {/if} value="1" />{$locale->tr("karma_disablenegative")}
   </div>
  </div>  

  <div class="field">
   <label for="negativeThreshold">{$locale->tr("label_negativethreshold")}</label>
   <span class="required">*</span>
   <div class="formHelp">{$locale->tr("karma_negativethreshold")}</div>    
   <input class="text" type="text" name="negativeThreshold" id="negativeThreshold" value="{$negativeThreshold}" width="10" />
  </div>

  <div class="field">
   <label for="trackVoters"">{$locale->tr("label_trackvoters")}</label>
   <span class="required"></span>   
   <div class="formHelp">
    <input class="checkbox" type="checkbox" name="trackVoters" id="trackVoters" {if $trackVoters} checked="checked" {/if} value="1" />{$locale->tr("karma_trackvoters")}
   </div>
  </div>  

  <div class="field">
   <label for="scoring">{$locale->tr("label_scoring")}</label>
   <span class="required"></span>
   <div class="formHelp">{$locale->tr("karma_scoring")}</div>
   <select name="scoring" id="scoring">
    <option value="1" {if $scoring==1}selected="selected"{/if}>{$locale->tr("karma_1_times")}</option>
    <option value="1.5" {if $scoring==1.5}selected="selected"{/if}>{$locale->tr("karma_1.5_times")}</option>
    <option value="2" {if $scoring==2}selected="selected"{/if}>{$locale->tr("karma_2_times")}</option>
   </select>
  </div>

 </fieldset>

 <div class="buttons"> 
  <input type="hidden" name="op" value="pluginKarmaUpdateSettings" />
  <input type="reset" name="{$locale->tr("reset")}" />  
  <input type="submit" name="{$locale->tr("update")}" value="{$locale->tr("update")}" />
 </div>
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}