Merge branch 'main/rendor-staging' into main/atys-live
[ryzomcore.git] / web / public_php / ams / templates / register.tpl
blobf14ef9a6c85fcd1abcb9d7712d55b196bb5ddac1
1 {extends file="layout.tpl"}
2 {block name=content}
4 <div class="row-fluid">
5         <div class="span12 center login-header">
6                 <a href="?"><img src="img/mainlogo.png"/></a> 
7         </div><!--/span-->
8 </div><!--/row-->
10 <div class="row-fluid">
11         <div class="well span5 center login-box">
12                 <div class="alert alert-info">
13                          {$welcome_message}
14                 </div>
15                 {if $userRegistration == '0'|| $userRegistration == '2'}
16                 <form id="signup" class="form-vertical" method="post" action="index.php">
17                         <legend>{$title}</legend>
18                         
19                         <div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{else if
20                         isset($USERNAME) and $USERNAME eq "success"}success{else}{/if}">
21                         <label class="control-label">{$username_tag}</label>
22                                 <div class="controls">
23                                     <div class="input-prepend">
24                                         <span class="add-on"><span class="icon-user"></span></span>
25                                                 <input type="text" class="input-xlarge" id="Username" name="Username" placeholder="{$username_default}" {if isset($prevUsername)}value="{$prevUsername}"{/if} rel="popover" data-content="{$username_tooltip}" data-original-title="{$username_default}">
26                                         </div>
27                                 </div>
28                         </div>
31                         <div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{else if
32                         isset($PASSWORD) and $PASSWORD eq "success"}success{else}{/if}">
33                         <label class="control-label">{$password_tag}</label>
34                                 <div class="controls">
35                                     <div class="input-prepend">
36                                         <span class="add-on"><span class="icon-lock"></span></span>
37                                                 <input type="Password" id="Password" class="input-xlarge" name="Password" placeholder="{$password_default}"  {if isset($prevPassword)}value="{$prevPassword}"{/if} rel="popover" data-content="{$password_tooltip}" data-original-title="{$password_default}">
38                                         </div>
39                                 </div>
40                         </div>
41                         
42                         <div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{else if
43                         isset($CPASSWORD) and $CPASSWORD eq "success"}success{else}{/if}">
44                         <label class="control-label">{$cpassword_tag}</label>
45                                 <div class="controls">
46                                     <div class="input-prepend">
47                                         <span class="add-on"><span class="icon-lock"></span></span>
48                                                 <input type="Password" id="ConfirmPass" class="input-xlarge" name="ConfirmPass" placeholder="{$cpassword_default}"  {if isset($prevConfirmPass)}value="{$prevConfirmPass}"{/if} rel="popover" data-content="{$cpassword_tooltip}" data-original-title="{$cpassword_default}">
49                                         </div>
50                                 </div>
51                         </div>
52                         
53                         <div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}error{else if
54                         isset($EMAIL) and $EMAIL eq "success"}success{else}{/if}">
55                         <label class="control-label">{$email_tag}</label>
56                                 <div class="controls">
57                                     <div class="input-prepend">
58                                         <span class="add-on"><span class="icon-envelope"></span></span>
59                                                 <input type="text" class="input-xlarge" id="Email" name="Email" placeholder="{$email_default}" {if isset($prevEmail)}value="{$prevEmail}"{/if} rel="popover" data-content="{$email_tooltip}" data-original-title="{$email_default}">
60                                         </div>
61                                 </div>
62                         </div>
63                         
64                         <div class="control-group {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"}error{else if
65                         isset($TAC) and $TAC eq "success"}success{else}{/if}">
66                                 <div class="controls">
67                                     <div class="input-prepend">
68                                                 <input type="checkbox" class="input-xlarge" id="TaC" name="TaC" placeholder="Email">{$tac_tag1}<a href='{$TOS_URL}'>{$tac_tag2}</a>
69                                                 
70                                         </div>
71                                 </div>
72                         </div>
73                         
74                         {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}
75                         <div class="alert alert-error">
76                                 <button type="button" class="close" data-dismiss="alert">×</button>
77                                 <strong>Username Error</strong> {$USERNAME}
78                         </div>
79                         {/if}
80                         
81                         {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}
82                         <div class="alert alert-error">
83                                 <button type="button" class="close" data-dismiss="alert">×</button>
84                                 <strong>Password Error</strong> {$PASSWORD}
85                         </div>
86                         {/if}
87                         
88                         {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE" and $CPASSWORD != ""}
89                         <div class="alert alert-error">
90                                 <button type="button" class="close" data-dismiss="alert">×</button>
91                                 <strong>Confirmation Password Error</strong> {$CPASSWORD}
92                         </div>
93                         {/if}
94                         
95                         {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE"}
96                         <div class="alert alert-error">
97                                 <button type="button" class="close" data-dismiss="alert">×</button>
98                                 <strong>Email Error</strong> {$EMAIL}
99                         </div>
100                         {/if}
101                         
102                         {if isset($TAC_ERROR) and $TAC_ERROR eq "TRUE"}
103                         <div class="alert alert-error">
104                                 <button type="button" class="close" data-dismiss="alert">×</button>
105                                 <strong>Terms of Service Error</strong> {$tac_message}
106                         </div>
107                         {/if}
108                         
109                         <input type="hidden" name="function" value="add_user">
110                         <p class="center span5">
111                                 <button type="submit" class="btn btn-primary" >Create My Account</button>
112                         </p>
113         
114                 </form>
115                 {else}
116                         Registration Disabled!
117                 {/if}
120         </div><!--/span-->
121 </div><!--/row-->
122 {/block}
124