Refined the form fields html bindings
This commit is contained in:
@@ -71,24 +71,15 @@
|
||||
</div>
|
||||
{/form_field}
|
||||
|
||||
{form_field form=$form field='brand_id'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
{custom_render_form_field form=$form field='brand_id'}
|
||||
<select {$field_attributes}>
|
||||
<option value="0">{intl l="No brand"}</option>
|
||||
|
||||
{admin_form_field_label form=$form name='brand_id'}
|
||||
|
||||
<select id="{$label_attr.for}" {if $required}aria-required="true" required{/if} name="{$name}" class="form-control">
|
||||
<option value="0">{intl l="No brand"}</option>
|
||||
|
||||
{loop name="brand-list" type="brand" visible="*"}
|
||||
<option value="{$ID}" {if $BRAND_ID == $ID}selected="selected"{/if}>{$TITLE}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
|
||||
{if ! empty($label_attr.help)}
|
||||
<span class="help-block">{$label_attr.help}</span>
|
||||
{/if}
|
||||
</div>
|
||||
{/form_field}
|
||||
{loop name="brand-list" type="brand" visible="*"}
|
||||
<option value="{$ID}" {if $BRAND_ID == $ID}selected="selected"{/if}>{$TITLE}</option>
|
||||
{/loop}
|
||||
</select>
|
||||
{/custom_render_form_field}
|
||||
|
||||
{form_field form=$form field='visible'}
|
||||
<div class="form-group {if $error}has-error{/if}">
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{* The standard description fields, used by many Thelia objects *}
|
||||
|
||||
{admin_form_field form=$form name='title'}
|
||||
{admin_form_field form=$form name="chapo"}
|
||||
{admin_form_field form=$form name="description" extra_class="wysiwyg"}
|
||||
{admin_form_field form=$form name="postscriptum"}
|
||||
{render_form_field form=$form field='title'}
|
||||
{render_form_field form=$form field="chapo"}
|
||||
{render_form_field form=$form field="description" extra_class="wysiwyg"}
|
||||
{render_form_field form=$form field="postscriptum"}
|
||||
Reference in New Issue
Block a user