99 lines
5.0 KiB
HTML
99 lines
5.0 KiB
HTML
{* Set the default translation domain, that will be used by {intl} when the 'd' parameter is not set *}
|
|
{default_translation_domain domain='bo.default'}
|
|
|
|
{* Update an Address *}
|
|
|
|
{form name="thelia.lang.update"}
|
|
|
|
{* Capture the dialog body, to pass it to the generic dialog *}
|
|
{capture "edit_lang_dialog"}
|
|
|
|
{form_hidden_fields}
|
|
|
|
{form_field field='title'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label} }" placeholder="{intl l='Label'}">
|
|
</div>
|
|
{/form_field}
|
|
|
|
{form_field field='code'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label}}" placeholder="{intl l='ISO Code'}">
|
|
<span class="help-block">{intl l='<a href="http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes" target="_other">Check the list</a> of ISO 639-1 codes'}</span>
|
|
</div>
|
|
{/form_field}
|
|
|
|
{form_field field='locale'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label}}" placeholder="{intl l='en_US'}">
|
|
</div>
|
|
{/form_field}
|
|
|
|
{form_field field='date_time_format'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label}}" placeholder="{intl l='d-m-Y H:i:s'}">
|
|
<span class="help-block">{intl l='The syntax used is identical to the PHP <a href="http://www.php.net/date" target="_other">date()</a> function'}</span>
|
|
</div>
|
|
{/form_field}
|
|
|
|
{form_field field='date_format'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label}}" placeholder="{intl l='d-m-Y'}">
|
|
<span class="help-block">{intl l='The syntax used is identical to the PHP <a href="http://www.php.net/date" target="_other">date()</a> function'}</span>
|
|
</div>
|
|
{/form_field}
|
|
|
|
{form_field field='time_format'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{intl l={$label}} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{intl l={$label}}" placeholder="{intl l='H:i:s'}">
|
|
<span class="help-block">{intl l='The syntax used is identical to the PHP <a href="http://www.php.net/date" target="_other">date()</a> function'}</span>
|
|
</div>
|
|
{/form_field}
|
|
{form_field field='decimal_separator'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{$label}" placeholder="{intl l='eg: . or ,'}">
|
|
<span class="help-block">{intl l='Sets the separator for the decimal point'}</span>
|
|
</div>
|
|
{/form_field}
|
|
{form_field field='thousands_separator'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{$label}">
|
|
<span class="help-block">{intl l='Sets the thousands separator.'}</span>
|
|
</div>
|
|
{/form_field}
|
|
{form_field field='decimals'}
|
|
<div class="form-group {if $error}has-error{/if}">
|
|
<label for="{$label_attr.for}" class="control-label">{$label} : </label>
|
|
<input type="text" id="{$label_attr.for}" name="{$name}" class="form-control" value="{$value}" title="{$label}" placeholder="2">
|
|
<span class="help-block">{intl l='Decimal places'}</span>
|
|
</div>
|
|
{/form_field}
|
|
|
|
|
|
|
|
{/capture}
|
|
|
|
{include
|
|
file = "includes/generic-create-dialog.html"
|
|
|
|
dialog_id = "edit_lang_dialog"
|
|
dialog_title = {intl l="Edit a language"}
|
|
dialog_body = {$smarty.capture.edit_lang_dialog nofilter}
|
|
|
|
dialog_ok_label = {intl l="Save changes"}
|
|
dialog_cancel_label = {intl l="Cancel"}
|
|
|
|
form_action = {url path="/admin/configuration/languages/save/%id" id=$lang_id}
|
|
form_enctype = {form_enctype}
|
|
form_error_message = $form_error_message
|
|
}
|
|
|
|
{/form} |