Commit 4b2cad67 authored by Tino Goratsch's avatar Tino Goratsch

- added a ajax-form.tpl template to simplify the setup of a form

- added a new form field renderer for textareas
parent ec60de7b
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|publication_period"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="articles|page_statements"}</a></li>
<li><a href="#tab-3" data-toggle="tab">{lang t="seo|seo"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{datepicker name=['start', 'end'] value=[$form.start, $form.end]}
</div>
<div id="tab-2" class="tab-pane fade">
<div class="form-group">
<label for="title" class="col-sm-2 control-label required">{lang t="articles|title"}</label>
<div class="col-sm-10">
<input class="form-control"
type="text"
name="title"
id="title"
value="{$form.title}"
maxlength="120"
data-seo-slug-base="true"
required>
</div>
</div>
<div class="form-group">
<label for="text" class="col-sm-2 control-label required">{lang t="articles|text"}</label>
{block AJAX_FORM_CONTENT}
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|publication_period"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="articles|page_statements"}</a></li>
<li><a href="#tab-3" data-toggle="tab">{lang t="seo|seo"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{datepicker name=['start', 'end'] value=[$form.start, $form.end]}
</div>
<div id="tab-2" class="tab-pane fade">
<div class="form-group">
<label for="title" class="col-sm-2 control-label required">{lang t="articles|title"}</label>
<div class="col-sm-10">{wysiwyg name="text" value="`$form.text`" height="250" advanced="1"}</div>
<div class="col-sm-10">
<input class="form-control"
type="text"
name="title"
id="title"
value="{$form.title}"
maxlength="120"
data-seo-slug-base="true"
required>
</div>
{if !empty($options)}
{include file="asset:System/Partials/form_group.checkbox.tpl" label={lang t="system|options"}}
{include file="asset:Menus/Partials/create_menu_item.tpl"}
{/if}
</div>
<div id="tab-3" class="tab-pane fade">
{include file="asset:Seo/Partials/seo_fields.tpl" seo=$SEO_FORM_FIELDS}
<div class="form-group">
<label for="text" class="col-sm-2 control-label required">{lang t="articles|text"}</label>
<div class="col-sm-10">{wysiwyg name="text" value="`$form.text`" height="250" advanced="1"}</div>
</div>
{if !empty($options)}
{include file="asset:System/Partials/form_group.checkbox.tpl" label={lang t="system|options"}}
{include file="asset:Menus/Partials/create_menu_item.tpl"}
{/if}
</div>
<div id="tab-3" class="tab-pane fade">
{include file="asset:Seo/Partials/seo_fields.tpl" seo=$SEO_FORM_FIELDS}
</div>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/articles"}}
</form>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/articles"}}
{javascripts}
{include_js module="articles" file="admin/acp"}
{include_js module="system" file="ajax-form"}
{/javascripts}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="categories|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="categories|image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="filesize" value=$form.filesize required=true label={lang t="categories|image_filesize"} help={lang t="system|statements_in_byte"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/categories"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="categories|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="categories|image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="filesize" value=$form.filesize required=true label={lang t="categories|image_filesize"} help={lang t="system|statements_in_byte"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/categories"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{block AJAX_FORM_CONTENT}
{if !isset($form.user_id)}
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true maxlength=20 label={lang t="system|name"}}
{elseif $form.user_id != '0'}
<input type="hidden" name="user_id" value="{$form.user_id}">
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{if !isset($form.user_id)}
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true maxlength=20 label={lang t="system|name"}}
{elseif $form.user_id != '0'}
<input type="hidden" name="user_id" value="{$form.user_id}">
{/if}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/comments/details/index/id_`$module_id`"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/comments/details/index/id_`$module_id`"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{if isset($allow_emoticons)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$allow_emoticons required=true label={lang t="comments|allow_emoticons"}}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{if isset($allow_emoticons)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$allow_emoticons required=true label={lang t="comments|allow_emoticons"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/comments"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/comments"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
{block AJAX_FORM_CONTENT_BEFORE}
{redirect_message}
<form action="{uri args="acp/contact"}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="form-group">
<label for="address" class="col-sm-2 control-label">{lang t="contact|address"}</label>
{/block}
{block AJAX_FORM_CONTENT}
<div class="form-group">
<label for="address" class="col-sm-2 control-label">{lang t="contact|address"}</label>
<div class="col-sm-10">
{wysiwyg name="address" value="`$form.address`" toolbar="simple"}
</div>
<div class="col-sm-10">
{wysiwyg name="address" value="`$form.address`" toolbar="simple"}
</div>
{include file="asset:System/Partials/form_group.input_text.tpl" name="ceo" value=$form.ceo maxlength=120 label={lang t="contact|ceo"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail maxlength=120 label={lang t="system|email_address"}}
{include file="asset:System/Partials/form_group.input_tel.tpl" name="telephone" value=$form.telephone maxlength=120 label={lang t="contact|telephone"}}
{include file="asset:System/Partials/form_group.input_tel.tpl" name="fax" value=$form.fax maxlength=120 label={lang t="contact|fax"}}
{include file="asset:System/Partials/form_group.input_text.tpl" name="vat_id" value=$form.vat_id maxlength=120 label={lang t="contact|vat_id"}}
<div class="form-group">
<label for="disclaimer" class="col-sm-2 control-label">{lang t="contact|disclaimer"}</label>
</div>
{include file="asset:System/Partials/form_group.input_text.tpl" name="ceo" value=$form.ceo maxlength=120 label={lang t="contact|ceo"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail maxlength=120 label={lang t="system|email_address"}}
{include file="asset:System/Partials/form_group.input_tel.tpl" name="telephone" value=$form.telephone maxlength=120 label={lang t="contact|telephone"}}
{include file="asset:System/Partials/form_group.input_tel.tpl" name="fax" value=$form.fax maxlength=120 label={lang t="contact|fax"}}
{include file="asset:System/Partials/form_group.input_text.tpl" name="vat_id" value=$form.vat_id maxlength=120 label={lang t="contact|vat_id"}}
<div class="form-group">
<label for="disclaimer" class="col-sm-2 control-label">{lang t="contact|disclaimer"}</label>
<div class="col-sm-10">
{wysiwyg name="disclaimer" value="`$form.disclaimer`" toolbar="simple"}
</div>
<div class="col-sm-10">
{wysiwyg name="disclaimer" value="`$form.disclaimer`" toolbar="simple"}
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/contact"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/contact"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true maxlength=20 readonly=$form.name_disabled label={lang t="system|name"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail required=true readonly=$form.mail_disabled maxlength=120 label={lang t="system|email_address"}}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true maxlength=20 readonly=$form.name_disabled label={lang t="system|name"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail required=true readonly=$form.mail_disabled maxlength=120 label={lang t="system|email_address"}}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
<div class="col-sm-10">
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
<div class="col-sm-10">
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
{include file="asset:System/Partials/form_group.checkbox.tpl" options=$copy}
{event name="captcha.event.display_captcha"}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
</div>
{include file="asset:System/Partials/form_group.checkbox.tpl" options=$copy}
{event name="captcha.event.display_captcha"}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="emoticons|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="emoticons|image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="filesize" value=$form.filesize required=true label={lang t="emoticons|image_filesize"} help={lang t="system|statements_in_byte"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/emoticons"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="emoticons|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="emoticons|image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="filesize" value=$form.filesize required=true label={lang t="emoticons|image_filesize"} help={lang t="system|statements_in_byte"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/emoticons"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
{block AJAX_FORM_CONTENT_BEFORE}
{redirect_message}
<form action="{uri args="acp/feeds"}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.input_text.tpl" name="feed_image" value=$form.feed_image maxlength=120 label={lang t="feeds|feed_image"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$feed_types required=true label={lang t="feeds|feed_type"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/feeds"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{/block}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.input_text.tpl" name="feed_image" value=$form.feed_image maxlength=120 label={lang t="feeds|feed_image"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$feed_types required=true label={lang t="feeds|feed_type"}}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/feeds"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$sidebar_entries required=true label={lang t="system|sidebar_entries_to_display"}}
{if isset($comments)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$comments required=true label={lang t="system|allow_comments"}}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$sidebar_entries required=true label={lang t="system|sidebar_entries_to_display"}}
{if isset($comments)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$comments required=true label={lang t="system|allow_comments"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/files"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/files"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|general_statements"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="seo|seo"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{datepicker name=['start', 'end'] value=[$form.start, $form.end]}
<div class="form-group">
<label for="title" class="col-sm-2 control-label required">{lang t="gallery|title"}</label>
{block AJAX_FORM_CONTENT}
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|general_statements"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="seo|seo"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{datepicker name=['start', 'end'] value=[$form.start, $form.end]}
<div class="form-group">
<label for="title" class="col-sm-2 control-label required">{lang t="gallery|title"}</label>
<div class="col-sm-10">
<input class="form-control"
type="text"
name="title"
id="title"
value="{$form.title}"
maxlength="120"
data-seo-slug-base="true"
required>
</div>
<div class="col-sm-10">
<input class="form-control"
type="text"
name="title"
id="title"
value="{$form.title}"
maxlength="120"
data-seo-slug-base="true"
required>
</div>
</div>
<div id="tab-2" class="tab-pane fade">
{include file="asset:Seo/Partials/seo_fields.tpl" seo=$SEO_FORM_FIELDS}
</div>
</div>
<div id="tab-2" class="tab-pane fade">
{include file="asset:Seo/Partials/seo_fields.tpl" seo=$SEO_FORM_FIELDS}
</div>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/gallery"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/gallery"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|general_statements"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="gallery|image_dimensions"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$sidebar_entries required=true label={lang t="system|sidebar_entries_to_display"}}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$overlay required=true label={lang t="gallery|use_overlay"} help={lang t="gallery|use_overlay_description"}}
{if isset($comments)}
<div id="comments-container">
{include file="asset:System/Partials/form_group.button_group.tpl" options=$comments required=true label={lang t="system|allow_comments"}}
</div>
{/if}
</div>
<div id="tab-2" class="tab-pane fade">
{include file="asset:System/Partials/form_group.input_number.tpl" name="thumbwidth" value=$form.thumbwidth required=true label={lang t="gallery|thumb_image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="thumbheight" value=$form.thumbheight required=true label={lang t="gallery|thumb_image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="gallery|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="gallery|image_height"} help={lang t="system|statements_in_pixel"}}
</div>
{block AJAX_FORM_CONTENT}
<div class="tabbable">
<ul class="nav nav-tabs">
<li class="active"><a href="#tab-1" data-toggle="tab">{lang t="system|general_statements"}</a></li>
<li><a href="#tab-2" data-toggle="tab">{lang t="gallery|image_dimensions"}</a></li>
</ul>
<div class="tab-content">
<div id="tab-1" class="tab-pane fade in active">
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$sidebar_entries required=true label={lang t="system|sidebar_entries_to_display"}}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$overlay required=true label={lang t="gallery|use_overlay"} help={lang t="gallery|use_overlay_description"}}
{if isset($comments)}
<div id="comments-container">
{include file="asset:System/Partials/form_group.button_group.tpl" options=$comments required=true label={lang t="system|allow_comments"}}
</div>
{/if}
</div>
<div id="tab-2" class="tab-pane fade">
{include file="asset:System/Partials/form_group.input_number.tpl" name="thumbwidth" value=$form.thumbwidth required=true label={lang t="gallery|thumb_image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="thumbheight" value=$form.thumbheight required=true label={lang t="gallery|thumb_image_height"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="width" value=$form.width required=true label={lang t="gallery|image_width"} help={lang t="system|statements_in_pixel"}}
{include file="asset:System/Partials/form_group.input_number.tpl" name="height" value=$form.height required=true label={lang t="gallery|image_height"} help={lang t="system|statements_in_pixel"}}
</div>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/gallery"}}
</form>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/gallery"}}
{javascripts}
{include_js module="gallery" file="admin/index.settings"}
{include_js module="system" file="ajax-form"}
{/javascripts}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
{block AJAX_FORM_CONTENT}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="5" required>{$form.message}</textarea>
</div>
{if !empty($activate)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$activate required=true label={lang t="guestbook|activate_entry"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/guestbook"}}
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
</div>
{if !empty($activate)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$activate required=true label={lang t="guestbook|activate_entry"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/guestbook"}}
{/block}
{extends file="asset:`$LAYOUT`"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
{if isset($error_msg)}
{$error_msg}
{block AJAX_FORM_CONTENT}
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$notify required=true label={lang t="guestbook|notification"}}
{include file="asset:System/Partials/form_group.input_text.tpl" name="notify_email" value=$form.notify_email required=true label={lang t="guestbook|notification_email"}}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$overlay required=true label={lang t="guestbook|use_overlay"}}
{if isset($allow_emoticons)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$allow_emoticons required=true label={lang t="guestbook|allow_emoticons"}}
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.select.tpl" options=$dateformat required=true label={lang t="system|date_format"}}
{include file="asset:System/Partials/form_group.select.tpl" options=$notify required=true label={lang t="guestbook|notification"}}
{include file="asset:System/Partials/form_group.input_text.tpl" name="notify_email" value=$form.notify_email required=true label={lang t="guestbook|notification_email"}}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$overlay required=true label={lang t="guestbook|use_overlay"}}
{if isset($allow_emoticons)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$allow_emoticons required=true label={lang t="guestbook|allow_emoticons"}}
{/if}
{if isset($newsletter_integration)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$newsletter_integration required=true label={lang t="guestbook|newsletter_integration"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/guestbook"}}
</form>
{if isset($newsletter_integration)}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$newsletter_integration required=true label={lang t="guestbook|newsletter_integration"}}
{/if}
{include file="asset:System/Partials/form_group.submit.tpl" form_token=$form_token back_url={uri args="acp/guestbook"}}
{javascripts}
{include_js module="guestbook" file="admin/index.settings"}
{include_js module="system" file="ajax-form"}
{/javascripts}
{/block}
{extends file="asset:guestbook/ajax.tpl"}
{extends file="asset:System/ajax-form.tpl"}
{block CONTENT}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
<div class="modal-body">
{if isset($error_msg)}
{$error_msg}
{/if}
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true readonly=$form.name_disabled maxlength=20 label={lang t="system|name"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail readonly=$form.mail_disabled maxlength=120 label={lang t="system|email_address"}}
{include file="asset:System/Partials/form_group.input_url.tpl" name="website" value=$form.website readonly=$form.website_disabled maxlength=120 label={lang t="system|website"}}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
{block AJAX_FORM_CONTENT}
<div class="modal-body">
{if isset($error_msg)}
{$error_msg}
{/if}
{include file="asset:System/Partials/form_group.input_text.tpl" name="name" value=$form.name required=true readonly=$form.name_disabled maxlength=20 label={lang t="system|name"}}
{include file="asset:System/Partials/form_group.input_email.tpl" name="mail" value=$form.mail readonly=$form.mail_disabled maxlength=120 label={lang t="system|email_address"}}
{include file="asset:System/Partials/form_group.input_url.tpl" name="website" value=$form.website readonly=$form.website_disabled maxlength=120 label={lang t="system|website"}}
<div class="form-group">
<label for="message" class="col-sm-2 control-label required">{lang t="system|message"}</label>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="6" required>{$form.message}</textarea>
</div>
<div class="col-sm-10">
{if $can_use_emoticons}
{event name="emoticons.render_emoticons_list"}
{/if}
<textarea class="form-control" name="message" id="message" cols="50" rows="6" required>{$form.message}</textarea>
</div>
{if isset($subscribe_newsletter)}
{include file="asset:System/Partials/form_group.checkbox.tpl" options=$subscribe_newsletter}
{/if}
{event name="captcha.event.display_captcha"}
</div>
<div class="modal-footer">
<button type="submit" name="submit" class="btn btn-primary">{lang t="system|submit"}</button>
{$form_token}
</div>
</form>
{javascripts}
{include_js module="system" file="ajax-form"}
{/javascripts}
{if isset($subscribe_newsletter)}
{include file="asset:System/Partials/form_group.checkbox.tpl" options=$subscribe_newsletter}
{/if}
{event name="captcha.event.display_captcha"}
</div>
<div class="modal-footer">
<button type="submit" name="submit" class="btn btn-primary">{lang t="system|submit"