Added product's brand selection in the general tab.

This commit is contained in:
Franck Allimant
2014-06-27 19:51:41 +02:00
parent 297b0bd6ce
commit 15f60ad22b
3 changed files with 39 additions and 2 deletions

View File

@@ -71,6 +71,25 @@
</div>
{/form_field}
{form_field form=$form field='brand_id'}
<div class="form-group {if $error}has-error{/if}">
{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}
{form_field form=$form field='visible'}
<div class="form-group {if $error}has-error{/if}">
<label for="{$label_attr.for}" class="control-label">{intl l='Visibility'}</label>