{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=atomSettings title=$locale->tr("atomSettings")}
<form name="pluginAtomSettings" method="post" action="admin.php">
 <fieldset class="inputField">
  <legend>{$locale->tr("atomSettings")}</legend>
  {include file="$admintemplatepath/successmessage.template"}
  {include file="$admintemplatepath/errormessage.template"}  
  <!-- article categories -->
  <div class="field">
   <label for="categoryId">{$locale->tr("posts")}</label>
   <div class="formHelp">{$locale->tr("atom_articles_help")}</div>
   <select name="categoryId">
    {foreach from=$categories item=category}
	<option value="{$category->getId()}" {if $categoryId == $category->getId()}selected="selected"{/if}>{$category->getName()}</option>
	{/foreach}
   </select>
  </div> 
  
 <!-- album categories -->
 <div class="field">
  <label for="albumId">{$locale->tr("resources")}</label>
  <div class="formHelp">{$locale->tr("atom_resources_help")}</div>
  <select name="albumId">
   {foreach from=$albums item=album}
    <option value="{$album->getId()}" {if $albumId == $album->getId()}selected="selected"{/if}>{$album->getName()}</option>
   {/foreach}
  </select>
  <br/>
   <div class="formHelp">{$locale->tr("atom_image_preview_type_help")}</div>
    <select name="resourcePreviewType">
     <option value="1" {if $resourcePreviewType==1}selected="selected"{/if}>{$locale->tr("small_preview")}</option>
     <option value="2" {if $resourcePreviewType==2}selected="selected"{/if}>{$locale->tr("medium_preview")}</option>
     <option value="3" {if $resourcePreviewType==3}selected="selected"{/if}>{$locale->tr("full_size")}</option>
    </select>
 </div>
 
 <!-- password -->
 <div class="field">
  <label for="password">{$locale->tr("password")}</label>
  <div class="formHelp">{$locale->tr("atom_password_help")}</div>
  <input type="password" name="password" value="{$password}" />
 </div> 

<!-- only for admin users -->
{if $user->isSiteAdmin()}
  <h4>&raquo; Advanced Features</h4>
  <!-- logging enabled or disabled -->
  <div class="field">
   <label for="loggingEnabled">{$locale->tr("atom_logging_enabled")}</label>
   <div class="formHelp">{$locale->tr("atom_logging_enabled_help")}</div>
   <input type="radio" class="radio" name="loggingEnabled" value="1"{if $loggingEnabled==1}checked="checked"{/if}>Yes</input>
   <input type="radio" class="radio" name="loggingEnabled" value="0"{if $loggingEnabled==0}checked="checked"{/if}>No</input>   
  </div>
  
  <!-- don't set headers -->
  <div class="field">
   <label for="dontSetHeaders">{$locale->tr("atom_dont_set_headers")}</label>
   <div class="formHelp">{$locale->tr("atom_dont_set_headers_help")}</div>
   <input type="radio" class="radio" name="dontSetHeaders" value="1" {if $dontSetHeaders==1}checked="checked"{/if}>Yes</input>
   <input type="radio" class="radio" name="dontSetHeaders" value="0" {if $dontSetHeaders==0}checked="checked"{/if}>No</input>
  </div>
{/if}
<!-- end of options for admin users -->
</fieldset>
<div class="buttons">
 <input type="hidden" name="op" value="updateAtomSettings" />
 <input type="reset" name="reset" value="{$locale->tr("reset")}" />
 <input type="submit" name="submit" value="{$locale->tr("update")}" />
</div> 
</form>
{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}