Commit 4f6c2e13 authored by Tino Goratsch's avatar Tino Goratsch

various minor fixes and improvements

parent 13b6c8f4
......@@ -9,7 +9,7 @@ jQuery(document).ready(function ($) {
'captcha.extension.recaptcha_captcha_extension'
];
$('#captcha').on('change', function() {
$(':input[name="captcha"]').on('change', function() {
$recaptchaWrapper.toggle(serviceIds.indexOf(this.value) !== -1);
}).filter(':selected').triggerHandler('change');
}).triggerHandler('change');
});
......@@ -30,7 +30,7 @@
{include file="asset:System/Partials/form_group.button_group.tpl" options=$search_areas required=true label={lang t="search|search_after_areas"}}
{include file="asset:System/Partials/form_group.button_group.tpl" options=$sort_hits required=true label={lang t="search|sort_hits"}}
</div>
{include file="asset:System/Partials/form_group.submit.tpl" submitLabel={lang t="search|submit_search"}}
{include file="asset:System/Partials/form_group.submit.tpl" submit_label={lang t="search|submit_search"}}
{javascripts}
{include_js module="search" file="frontend/index.index"}
{/javascripts}
......
{extends file="asset:System/Partials/form_group.base.tpl"}
{block FORM_GROUP_FORM_FIELD}
<button type="submit" name="submit" class="btn btn-primary{if !empty($btn_class_submit)} {$btn_class_submit}{/if}">
{if !empty($submitLabel)}
{$submitLabel}
<button type="submit" name="submit" class="btn{if !empty($submit_btn_class)} {$submit_btn_class}{else} btn-primary{/if}">
{if !empty($submit_label)}
{$submit_label}
{else}
{lang t="system|submit"}
{/if}
</button>
{if !empty($back_url)}
<a href="{$back_url}" class="btn btn-default{if !empty($btn_class_back)} {$btn_class_back}{/if}">
{lang t="system|cancel"}
<a href="{$back_url}" class="btn{if !empty($back_btn_class)} {$back_btn_class}{else} btn-default{/if}">
{if !empty($back_label)}
{$back_label}
{else}
{lang t="system|cancel"}
{/if}
</a>
{/if}
{if !empty($form_token)}
......
......@@ -4,13 +4,5 @@
{include file="asset:System/Partials/form_group.input_text.tpl" name="nickname" required=true maxlength=30 label={lang t="users|nickname"}}
{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">
<button type="submit" name="submit" class="btn btn-primary">
<i class="glyphicon glyphicon-lock"></i>
{lang t="users|log_in"}
</button>
<a href="{uri args="users/index/forgot_pwd"}" class="btn btn-link">{lang t="users|forgot_pwd"}</a>
</div>
</div>
{include file="asset:System/Partials/form_group.submit.tpl" submit_label={lang t="users|log_in"} back_url={uri args="users/index/forgot_pwd"} back_label={lang t="users|forgot_pwd"} back_btn_class='btn-link'}
{/block}
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