{include file="$admintemplatepath/header.template"}
{include file="$admintemplatepath/navigation.template" showOpt=TidyOutput title=$locale->tr("tidyoutput_plugin")}


<form name="tidyoutputPluginConfig" method="post">
    <fieldset class="inputField">
        <legend>{$locale->tr("tidyoutput_label_configuration")}</legend>
        
        {include file="$admintemplatepath/successmessage.template"}
        {include file="$admintemplatepath/errormessage.template"}

        {if !$tidyInstalled}
            {include file="$admintemplatepath/errormessage.template" viewIsError=true message=$locale->tr("tidyoutput_tidy_not_installed")}
        {/if}
        
        <div class="field">
            <label for="enabled">{$locale->tr("tidyoutput_label_enabled")}</label>
            <span class="required">*</span>
            
            <div class="formHelp">
                <input class="checkbox" type="checkbox" name="enabled" id="enabled" {if $enabled} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_enabled")}
            </div>
        </div>
        
        <div class="field">
            <label for="report">{$locale->tr("tidyoutput_label_report")}</label>
            <span class="required">*</span>
            
            <div class="formHelp">
                <input class="checkbox" type="checkbox" name="report" id="report" {if $report} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_report")}
            </div>
        </div>

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

        <div class="field">
            <label for="errors">{$locale->tr("tidyoutput_label_errors")}</label>
            <span class="required">*</span>
            
            <div class="formHelp">
                <input class="checkbox" type="checkbox" name="errors" id="errors" {if $errors} checked="checked" {/if} value="1" />{$locale->tr("tidyoutput_plugin_errors")}
            </div>
        </div>
        
    </fieldset>

    <div class="buttons">
        <input type="hidden" name="op" value="tidyoutputUpdateConfig" />
        <input type="reset" name="{$locale->tr("reset")}" />
        <input type="submit" name="{$locale->tr("update_settings")}" value="{$locale->tr("update")}" />
    </div>
</form>

{include file="$admintemplatepath/footernavigation.template"}
{include file="$admintemplatepath/footer.template"}
