%PDF- %PDF-
| Direktori : /data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/page/admin/ |
| Current File : //data/old/home/stash/atlassian/stash/3.7.1/atlassian-stash/static/page/admin/authentication.soy |
{namespace stash.admin}
/**
* @param form
* @param? fieldErrors
* @param? formErrors
* @param? saved
*/
{template .authentication}
{webResourceManager_requireResourcesForContext('stash.page.admin.authentication')}
{call stash.layout.admin}
{param activeTab: 'admin-security-authentication' /}
{param content}
<header class="aui-page-header">
<div class="aui-page-header-inner">
<div class="aui-page-header-main">
<h2>{getText('stash.web.authentication')}</h2>
</div>
</div>
</header>
{if $saved}
{call aui.message.success}
{param content}
{getText('stash.web.authentication.saved')}
{/param}
{/call}
{/if}
{call stash.widget.xsrfProtectedForm}
{param action: '' /}
{param errors: $formErrors /}
{param extraClasses: 'stash-authentication-form' /}
{param content}
<h3>{getText('stash.web.config.auth.signup')}</h3>
{call widget.aui.form.checkbox}
{param id: 'publicSignUp' /}
{param labelContent}{getText('stash.web.config.auth.publicsignup')}{/param}
{param checked: $form.publicSignUp /}
{param errors: $fieldErrors ? $fieldErrors.publicSignUp : null /}
{param autofocus: true /}
{param description: getText('stash.web.config.auth.publicsignup.description') /}
{/call}
{call widget.aui.form.checkbox}
{param id: 'captchaOnSignUp' /}
{param labelContent}{getText('stash.web.config.auth.captchasignup')}{/param}
{param checked: $form.captchaOnSignUp /}
{param errors: $fieldErrors ? $fieldErrors.captchaOnSignUp : null /}
{param description: getText('stash.web.config.auth.captchasignup.description')/}
{/call}
{if isFeatureEnabled('auth.captcha')}
<h3>{getText('stash.web.config.auth.captcha')}</h3>
{call widget.aui.form.text}
{param id: 'maxCaptchaAttempts' /}
{param labelContent}{getText('stash.web.config.auth.maxcaptcha')}{/param}
{param initialValue: $form.maxCaptchaAttempts /}
{param errors: $fieldErrors ? $fieldErrors.maxCaptchaAttempts : null /}
{{param description: getText('stash.web.config.auth.maxcaptcha.description') /}}
{param required: true /}
{param sizeClass: 'short' /}
{/call}
{/if}
{call widget.aui.form.buttons}
{param content}
{call widget.aui.form.submit}
{param id: 'submit' /}
{param isPrimary: true /}
{param accessKey: 's' /}
{param label: getText('stash.web.button.save') /}
{/call}
{call widget.aui.form.cancelButton}
{param href: nav_admin() /}
{/call}
{/param}
{/call}
{/param}
{/call}
{/param}
{param pageBottomContent}
<script>
require('page/admin/authentication').onReady('#publicSignUp', '#captchaOnSignUp');
</script>
{/param}
{/call}
{/template}