forked from brooksbingham/theme-elegance
refactor: add padding for select input type
parent
58ae059a6e
commit
7547d850cc
|
@ -41,7 +41,7 @@
|
||||||
{if $field.type === 'select'}
|
{if $field.type === 'select'}
|
||||||
|
|
||||||
{block name='form_field_item_select'}
|
{block name='form_field_item_select'}
|
||||||
<select class="form-control form-control-select" name="{$field.name}" {if $field.required}required{/if}>
|
<select class="form-control form-control-select px-2 py-1 border-gray-300 w-full" name="{$field.name}" {if $field.required}required{/if}>
|
||||||
<option value disabled selected>{l s='-- please choose --' d='Shop.Forms.Labels'}</option>
|
<option value disabled selected>{l s='-- please choose --' d='Shop.Forms.Labels'}</option>
|
||||||
{foreach from=$field.availableValues item="label" key="value"}
|
{foreach from=$field.availableValues item="label" key="value"}
|
||||||
<option value="{$value}" {if $value eq $field.value} selected {/if}>{$label}</option>
|
<option value="{$value}" {if $value eq $field.value} selected {/if}>{$label}</option>
|
||||||
|
@ -53,7 +53,7 @@
|
||||||
|
|
||||||
{block name='form_field_item_country'}
|
{block name='form_field_item_country'}
|
||||||
<select
|
<select
|
||||||
class="form-control form-control-select js-country"
|
class="form-control form-control-select js-country px-2 py-1 border-gray-300 w-full"
|
||||||
name="{$field.name}"
|
name="{$field.name}"
|
||||||
{if $field.required}required{/if}
|
{if $field.required}required{/if}
|
||||||
>
|
>
|
||||||
|
|
Loading…
Reference in New Issue