Commit 497f49ea authored by Tino Goratsch's avatar Tino Goratsch

added a new password form field renderer

parent 23cd0d80
......@@ -76,13 +76,7 @@
{include file="asset:System/Partials/form_group.button_group.tpl" options=$mailer_smtp_auth required=true label={lang t="system|mailer_smtp_auth"}}
<div id="mailer-smtp-2">
{include file="asset:System/Partials/form_group.input_number.tpl" name="mailer_smtp_user" value=$form.mailer_smtp_user labelRequired=true label={lang t="system|mailer_smtp_username"}}
<div class="form-group">
<label for="mailer-smtp-password" class="col-sm-2 control-label">{lang t="system|mailer_smtp_password"}</label>
<div class="col-sm-10">
<input class="form-control" type="password" name="mailer_smtp_password" id="mailer-smtp-password" value="{$form.mailer_smtp_password}">
</div>
</div>
{include file="asset:System/Partials/form_group.input_password.tpl" name="mailer_smtp_password" value=$form.mailer_smtp_password label={lang t="system|mailer_smtp_password"}}
</div>
</div>
</div>
......
{extends file="asset:System/Partials/form_group.input_text.tpl"}
{block FORM_GROUP_INPUT_TYPE}password{/block}
......@@ -6,11 +6,7 @@
{/if}
<form action="{$REQUEST_URI}" method="post" accept-charset="UTF-8" class="form-horizontal" data-ajax-form="true" data-ajax-form-loading-text="{lang t="system|loading_please_wait"}">
{include file="asset:System/Partials/form_group.input_text.tpl" name="nickname" required=true maxlength=30 label={lang t="users|nickname"}}
<div class="form-group">
<label for="pwd" class="col-sm-2 control-label required">{lang t="users|pwd"}</label>
<div class="col-sm-10"><input class="form-control" type="password" name="pwd" id="pwd" required></div>
</div>
{include file="asset:System/Partials/form_group.input_password.tpl" name="pwd" required=true label={lang t="users|pwd"}}
{include file="asset:System/Partials/form_group.checkbox.tpl" options=$remember_me}
<div class="form-group">
<div class="col-sm-offset-2 col-sm-10">
......
......@@ -4,31 +4,5 @@
{if empty($translator_phrase)}
{$translator_phrase='pwd'}
{/if}
<div class="form-group">
<label for="{$field_name|replace:'_':'-'}"
class="col-sm-2 control-label{if isset($required) && $required === true} required{/if}">
{lang t="users|`$translator_phrase`"}
</label>
<div class="col-sm-10">
<input class="form-control"
type="password"
name="{$field_name}"
id="{$field_name|replace:'_':'-'}"
value=""
{if isset($required) && $required === true} required{/if}>
</div>
</div>
<div class="form-group">
<label for="{$field_name|replace:'_':'-'}-repeat"
class="col-sm-2 control-label{if isset($required) && $required === true} required{/if}">
{lang t="users|`$translator_phrase`_repeat"}
</label>
<div class="col-sm-10">
<input class="form-control"
type="password"
name="{$field_name}_repeat"
id="{$field_name|replace:'_':'-'}-repeat"
value=""
{if isset($required) && $required === true} required{/if}>
</div>
</div>
{include file="asset:System/Partials/form_group.input_password.tpl" name=$field_name label={lang t="users|`$translator_phrase`"}}
{include file="asset:System/Partials/form_group.input_password.tpl" name="`$field_name`_repeat" label={lang t="users|`$translator_phrase`_repeat"}}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment