{if NOT $noForm}
    <form action="?" method="POST">
        <input type="hidden" name="serendipity[adminModule]" value="installer">
        <input type="hidden" name="installAction" value="check">
        {$formToken}
{/if}
{if $config|@sizeof > 1 AND $allowToggle}
    <a id="show_config_all" class="button_link" href="#serendipity_config_options" title="{$CONST.TOGGLE_ALL}"><span class="icon-right-dir"></span><span class="visuallyhidden"> {$CONST.TOGGLE_ALL}</span></a>
{/if}
    <div id="serendipity_config_options">
    {foreach $config as $category}
        <div class="configuration_group">
        {if $config|@sizeof > 1}
            {if $allowToggle}
                <h3 class="toggle_headline">
                    <button id="optionel{$category@iteration}" class="show_config_option icon_link {if $category@first}show_config_option_now{/if}" type="button" data-href="#el{$category@index}" title="{$CONST.TOGGLE_OPTION}"><span class="icon-right-dir"></span> {$category.title}</button>
                </h3>
            {else}
                <h3>{$category.title}</h3>
            {/if}
            
        {/if}
            <fieldset id="el{$category@index}" class="config_optiongroup{if $config_groupkeys@last} config_optiongroup_last{/if} additional_info option_list">
                <legend class="visuallyhidden">{$category.description}</legend>
        {foreach $category.items as $item}
            {cycle assign='zebra_class' values='odd,even'}
            {if $item.guessedInput}
                {if $item.type == 'bool'}
                <fieldset class="clearfix {$zebra_class}">
                    <span class="wrap_legend"><legend>{$item.title}{if $item.description != ''} <button class="toggle_info button_link" type="button" data-href="#{$item.var}_info"><span class="icon-info-circled"></span><b>i</b><span class="visuallyhidden"> {$CONST.MORE}</span></button>{/if}</legend></span>
                    <div class="clearfix grouped">
                    {$item.guessedInput}
                    </div>
                    {if $item.description != ''}
                    <span id="{$item.var}_info" class="field_info additional_info">{$item.description}</span>
                    {/if}
                </fieldset>
                {else}
                <div class="clearfix {$zebra_class} form_{if $item.type == 'list'}select{elseif $item.type == 'multilist'}multiselect{elseif $item.type == 'textarea'}area{else}field{/if}">
                    <label for="{$item.var}">{$item.title}{if $item.description != ''} <button class="toggle_info button_link" type="button" data-href="#{$item.var}_info"><span class="icon-info-circled"></span><b>i</b><span class="visuallyhidden"> {$CONST.MORE}</span></button>{/if}</label>
                    {$item.guessedInput}
                    {if $item.description != ''}
                    <span id="{$item.var}_info" class="field_info additional_info">{$item.description}</span>
                    {/if}
                </div>
                {/if}
            {/if}
        {/foreach}
            </fieldset>
        </div>
    {/foreach}
    </div>
{if NOT $noForm}
    <div class="form_buttons">
        <input type="submit" value="{$CONST.CHECK_N_SAVE}">
    </div>
</form>
{/if}
