2 +--------------------------------------------------------------------+
3 | Copyright CiviCRM LLC. All rights reserved. |
5 | This work is published under the GNU AGPLv3 license with some |
6 | permitted exceptions and without any warranty. For full license |
7 | and copyright information, see https://civicrm.org/licensing |
8 +--------------------------------------------------------------------+
10 {if $showCMS }{*true if is_cms_user field is set *}
11 <fieldset class="crm-group crm_user-group">
12 <div class="messages help cms_user_help-section">
14 {ts}If you would like to create an account on this site, check the box below and enter a Username{/ts}{if $form.cms_pass} {ts}and a password{/ts}.{/if}
16 {ts}Please enter a Username to create an account.{/ts}
18 {ts 1=$loginURL}If you already have an account <a href='%1'>please login</a> before completing this form.{/ts}
20 <div>{$form.cms_create_account.html} {$form.cms_create_account.label}</div>
21 <div id="details" class="crm_user_signup-section">
23 <div class="form-layout-compressed">
24 <div class="crm-section cms_name-section">
26 <label for="cms_name">{$form.cms_name.label}</label>
29 {$form.cms_name.html} <a id="checkavailability" href="#" onClick="return false;">{ts}<strong>Check Availability</strong>{/ts}</a>
30 <span id="msgbox" style="display:none"></span><br />
31 <span class="description">{ts}Punctuation is not allowed in a Username with the exception of periods, hyphens and underscores.{/ts}</span>
36 <div class="crm-section cms_pass-section">
38 <label for="cms_pass">{$form.cms_pass.label}</label>
43 <div class="clear"></div>
45 <label for="crm_confirm_pass-section">{$form.cms_confirm_pass.label}</label>
48 {$form.cms_confirm_pass.html}<br/>
49 <span class="description">{ts}Provide a password for the new account in both fields.{/ts}</span>
59 <script type="text/javascript">
63 if ( document.getElementsByName("cms_create_account")[0].checked ) {
64 cj('#details').show();
66 cj('#details').hide();
71 function showMessage( frm )
73 var cId = {/literal}'{$cId}'{literal};
75 alert('{/literal}{ts escape="js"}You are logged-in user{/ts}{literal}');
78 var siteName = {/literal}'{$config->userFrameworkBaseURL}'{literal};
79 alert('{/literal}{ts escape="js"}Please login if you have an account on this site with the link{/ts}{literal} ' + siteName );
83 {include file="CRM/common/checkUsernameAvailable.tpl"}
88 {include file="CRM/common/showHideByFieldValue.tpl"
89 trigger_field_id ="cms_create_account"
91 target_element_id ="details"
92 target_element_type ="block"