Refined the form fields html bindings

This commit is contained in:
Franck Allimant
2014-07-03 16:26:37 +02:00
parent c0541e3aa2
commit c70a296ff2
17 changed files with 315 additions and 372 deletions

View File

@@ -16,26 +16,21 @@
{form_hidden_fields form=$form}
{admin_form_field form=$form name="success_url"}
{render_form_field form=$form field="success_url"}
{* Display error message if exist *}
{include file='includes/notifications.html' message=$form_error_message}
{form_field form=$form field='url'}
<div class="form-group {if $error}has-error{/if}">
{admin_form_field_label form=$form name='url'}
<div class="input-group">
<span class="input-group-addon">{$url_language|default:{config key="url_site"}}/</span>
<input type="text" id="{$label_attr.for}" name="{$name}" value="{$value}" title="{$label}" {if $required} aria-required="true" required{/if} class="form-control" placeholder="{$label_attr.placeholder}">
</div>
{custom_render_form_field form=$form field='url'}
<div class="input-group">
<span class="input-group-addon">{$url_language|default:{config key="url_site"}}/</span>
<input type="text" id="{$label_attr.for}" name="{$name}" value="{$value}" title="{$label}" {if $required} aria-required="true" required{/if} class="form-control" placeholder="{$label_attr.placeholder}">
</div>
{/form_field}
{/custom_render_form_field}
{admin_form_field form=$form name="meta_title"}
{admin_form_field form=$form name="meta_description"}
{admin_form_field form=$form name="meta_keywords"}
{render_form_field form=$form field="meta_title"}
{render_form_field form=$form field="meta_description"}
{render_form_field form=$form field="meta_keywords"}
{include
file = "includes/inner-form-toolbar.html"