Merge branch 'main/rendor-staging' into main/atys-live
[ryzomcore.git] / web / public_php / ams / templates / settings.tpl
blob0e04cab1749ef1611f65f30b42aef31447e61f9c
1 {block name=content}
2         <div class="row-fluid js-masonry" data-masonry-options='{ "itemSelector": ".js-masonry-item", "transitionDuration": 0 }'>
3                 <div class="col-sm-4 js-masonry-item">
4                 <div class="panel panel-default">
5                         <div class="panel-heading" data-original-title="">
6                                 <span class="icon-th"></span> Change Password
7                         </div>
8                         <div class="panel-body">
9                                 <div class="row-fluid">
10                                         <form id="changePassword" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
11                                                 <legend>Change Password</legend>
13                                                 {if !isset($changesOther) or $changesOther eq "FALSE"}
14                                                         <div class="control-group {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}error{else if
15                                 isset($match_error_message) and $match_error_message neq "fail"}success{else}{/if}">
16                                                         <label class="control-label">Current Password</label>
17                                                                 <div class="controls">
18                                                                     <div class="input-prepend">
19                                                                         <span class="add-on" style="margin-left:5px;"><span class="icon-lock"></span></span>
20                                                                                 <input type="password" class="setup-width" id="CurrentPass" name="CurrentPass" placeholder="Your current password" {if isset($prevCurrentPass)}value="{$prevCurrentPass}"{/if}>
21                                                                                 {if isset($MATCH_ERROR) and $MATCH_ERROR eq "TRUE"}<span class="help-inline">The password is incorrect</span>{/if}
22                                                                     </div>
23                                                                 </div>
24                                                         </div>
25                                                 {/if}
26                                                         <div class="control-group {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}error{else if
27                         isset($newpass_error_message) and $newpass_error_message eq "success"}success{else}{/if}">
28                                                 <label class="control-label">New Password</label>
29                                                         <div class="controls">
30                                                             <div class="input-prepend">
31                                                                 <span class="add-on" style="margin-left:5px;"><span class="icon-tag"></span></span>
32                                                                         <input type="password" class="setup-width" id="NewPass" name="NewPass" placeholder="Your new password"  {if isset($prevNewPass)}value="{$prevNewPass}"{/if}>
33                                                                         {if isset($NEWPASSWORD_ERROR) and $NEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$newpass_error_message}</span>{/if}
34                                                            </div>
35                                                         </div>
36                                                 </div>
38                                                 <div class="control-group {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}error{else if
39                         isset($confirmnewpass_error_message) and $confirmnewpass_error_message eq "success"}success{else}{/if}">
40                                                 <label class="control-label">Confirm New Password</label>
41                                                         <div class="controls">
42                                                             <div class="input-prepend">
43                                                                 <span class="add-on" style="margin-left:5px;"><span class="icon-tags"></span></span>
44                                                                         <input type="password" class="setup-width" id="ConfirmNewPass" name="ConfirmNewPass" placeholder="Re-enter the new password"  {if isset($prevConfirmNewPass)}value="{$prevConfirmNewPass}"{/if}>
45                                                                         {if isset($CNEWPASSWORD_ERROR) and $CNEWPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$confirmnewpass_error_message}</span>{/if}
46                                                             </div>
47                                                         </div>
48                                                 </div>
52                                                 {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "OK"}
53                                                 <div class="alert alert-success">
54                                                         The password has been changed!
55                                                 </div>
56                                                 {/if}
58                                                 {if isset($SUCCESS_PASS) and $SUCCESS_PASS eq "SHARDOFF"}
59                                                 <div class="alert alert-warning">
60                                                         The password has been changed, though the shard seems offline, it may take some time to see the change on the shard.
61                                                 </div>
62                                                 {/if}
64                                                 <input type="hidden" name="function" value="change_password">
65                                                 <input type="hidden" name="target_id" value="{$target_id}">
66                                                 <div class="control-group">
67                                                         <label class="control-label"></label>
68                                                         <div class="controls">
69                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Password</button>
70                                                         </div>
71                                                 </div>
72                                         </form>
73                                 </div>
74                         </div>
75                         </div>
76                 </div><!--/span-->
78                 {if $permission != '1'}
79                 <div class="col-sm-4 js-masonry-item">
80                 <div class="panel panel-default">
81                         <div class="panel-heading" data-original-title="">
82                                 <span class="icon-th"></span> Add User
83                         </div>
84                         <div class="panel-body">
85                                 <div class="row-fluid">
86                                         <form id="addUser" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
87                                                 <legend>Add User</legend>
89                                                 <div class="control-group {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}error{/if}">
90                                                         <label class="control-label">Username</label>
91                                                                 <div class="controls">
92                                                                         <div class="input-prepend">
93                                                                         <span style="margin-left:5px;" class="add-on"><span class="icon-user"></span></span>
94                                                                                 <input type="text" placeholder="Username" name="Username" id="Username" class="setup-width" {if isset($prevUsername)}value="{$prevUsername}"{/if}>
95                                                                                 {if isset($USERNAME_ERROR) and $USERNAME_ERROR eq "TRUE"}<span class="help-inline">{$USERNAME}</span>{/if}
96                                                                         </div>
97                                                                 </div>
98                                                 </div>
100                                                 <div class="control-group {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}error{/if}">
101                                                         <label class="control-label">Password</label>
102                                                                 <div class="controls">
103                                                                     <div class="input-prepend">
104                                                                                 <span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span>
105                                                                                 <input type="password" placeholder="Password" name="Password" id="Password" class="setup-width">
106                                                                                 {if isset($PASSWORD_ERROR) and $PASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$PASSWORD}</span>{/if}
107                                                                          </div>
108                                                                 </div>
109                                                 </div>
111                                                 <div class="control-group {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}error{/if}">
112                                                         <label class="control-label">Confirm Password</label>
113                                                                 <div class="controls">
114                                                                     <div class="input-prepend">
115                                                                                 <span style="margin-left:5px;" class="add-on"><span class="icon-lock"></span></span>
116                                                                                 <input type="password" placeholder="Confirm Password" name="ConfirmPass" id="ConfirmPass" class="setup-width">
117                                                                                 {if isset($CPASSWORD_ERROR) and $CPASSWORD_ERROR eq "TRUE"}<span class="help-inline">{$CPASSWORD}</span>{/if}
118                                                                          </div>
119                                                                 </div>
120                                                 </div>
122                                                 <div class="control-group {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}error{/if}">
123                                                 <label class="control-label">Email</label>
124                                                         <div class="controls">
125                                                             <div class="input-prepend">
126                                                                 <span style="margin-left:5px;" class="add-on"><span class="icon-envelope"></span></span>
127                                                                         <input type="text" class="setup-width" id="Email" name="Email" placeholder="Email" {if isset($prevEmail)}value="{$prevEmail}"{/if}>
128                                                                         {if isset($EMAIL_ERROR) and $EMAIL_ERROR eq "TRUE" and isset($do)}<span class="help-inline">{$EMAIL}</span>{/if}
129                                                             </div>
130                                                         </div>
131                                                 </div>
134                                                 {if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "ok"}
135                                                 <div class="alert alert-success">
136                                                         The user has been created!
137                                                 </div>
138                                                 {/if}
140                                                 {if isset($SUCCESS_ADD) and $SUCCESS_ADD eq "shardoffline"}
141                                                 <div class="alert alert-warning">
142                                                         The user is created, though the shard seems offline, it may take some time to see the change on the shard.
143                                                 </div>
144                                                 {/if}
146                                                 <input type="hidden" name="function" value="add_user">
147                                                 <input type="hidden" name="target_id" value="{$target_id}">
148                                                 <div class="control-group">
149                                                         <label class="control-label"></label>
150                                                         <div class="controls">
151                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Create User</button>
152                                                         </div>
153                                                 </div>
154                                         </form>
155                                 </div>
156                         </div>
157                         </div>
158                 </div><!--/span-->
159                 {/if}
161                 <div class="col-sm-4 js-masonry-item">
162                 <div class="panel panel-default">
163                         <div class="panel-heading" data-original-title="">
164                                 <span class="icon-th"></span> Change Email
165                         </div>
166                         <div class="panel-body">
167                                 <div class="row-fluid">
168                                         <form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
169                                                 <legend>Change Email</legend>
170                                                 <div class="control-group {if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}error{/if}">
171                                                 <label class="control-label">New Email</label>
172                                                         <div class="controls">
173                                                             <div class="input-prepend">
174                                                                 <span class="add-on" style="margin-left:5px;"><span class="icon-envelope"></span></span>
175                                                                         <input type="text" class="setup-width" id="NewEmail" name="NewEmail" placeholder="Your new email" {if isset($prevNewEmail)}value="{$prevNewEmail}"{else if isset($current_mail)}value="{$current_mail}"{/if}>
176                                                                         {if isset($CEMAIL_ERROR) and $CEMAIL_ERROR eq "TRUE"}<span class="help-inline">{$EMAIL}</span>{/if}
178                                                             </div>
179                                                         </div>
180                                                 </div>
183                                                 {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "OK"}
184                                                 <div class="alert alert-success">
185                                                         The email has been changed!
186                                                 </div>
187                                                 {/if}
189                                                 {if isset($SUCCESS_MAIL) and $SUCCESS_MAIL eq "SHARDOFF"}
190                                                 <div class="alert alert-warning">
191                                                         The email has been changed, though the shard seems offline, it may take some time to see the change on the shard.
192                                                 </div>
193                                                 {/if}
195                                                 <input type="hidden" name="function" value="change_mail">
196                                                 <input type="hidden" name="target_id" value="{$target_id}">
197                                                 <div class="control-group">
198                                                         <label class="control-label"></label>
199                                                         <div class="controls">
200                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Email</button>
201                                                         </div>
202                                                 </div>
203                                         </form>
204                                 </div>
205                         </div>
206                         </div>
207                 </div>
209                 <div class="col-sm-4 js-masonry-item">
210                 <div class="panel panel-default">
211                         <div class="panel-heading" data-original-title="">
212                                 <span class="icon-envelope"></span> Ticket updates
213                         </div>
216                         <div class="panel-body">
217                                 <div class="row-fluid">
218                                         <form id="changeReceiveMail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
219                                                 <legend>Ticket-Update Mail Settings</legend>
221                                                 <div class="control-group">
222                                                         <label class="control-label">Receive ticket updates</label>
223                                                         <div class="controls">
224                                                                  <select name="ReceiveMail">
225                                                                         <option value="1" {if isset($ReceiveMail) and $ReceiveMail eq 1}selected="selected"{/if}>Yes</option>
226                                                                         <option value="0" {if isset($ReceiveMail) and $ReceiveMail eq 0}selected="selected"{/if}>No</option>
227                                                                 </select>
228                                                         </div>
230                                                 </div>
232                                                 <input type="hidden" name="function" value="change_receivemail">
233                                                 <input type="hidden" name="target_id" value="{$target_id}">
234                                                 <div class="control-group">
235                                                         <label class="control-label"></label>
236                                                         <div class="controls">
237                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Updates</button>
238                                                         </div>
239                                                 </div>
240                                         </form>
241                                 </div>
242                         </div>
243                         </div>
244                 </div><!--/span-->
246                 <div class="col-sm-4 js-masonry-item">
247                 <div class="panel panel-default">
248                         <div class="panel-heading" data-original-title="">
249                                 <span class="icon-th"></span> Change Info
250                         </div>
251                         <div class="panel-body">
252                                 <div class="row-fluid">
253                                         <form id="changeEmail" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
254                                                 <legend>Change Info</legend>
256                                                 <div class="control-group">
257                                                 <label class="control-label">Firstname</label>
258                                                         <div class="controls">
259                                                             <div class="input-prepend">
260                                                                 <span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span>
261                                                                         <input type="text" class="setup-width" id="FirstName" name="FirstName" placeholder="Your firstname" {if isset($FirstName) and $FirstName neq ""}value="{$FirstName}"{/if}>
262                                                                 </div>
263                                                         </div>
264                                                 </div>
266                                                 <div class="control-group">
267                                                 <label class="control-label">Lastname</label>
268                                                         <div class="controls">
269                                                             <div class="input-prepend">
270                                                                 <span class="add-on" style="margin-left:5px;"><span class="icon-user"></span></span>
271                                                                         <input type="text" class="setup-width" id="LastName" name="LastName" placeholder="Your lastname" {if isset($LastName) and $LastName neq ""}value="{$LastName}"{/if}>
272                                                                 </div>
273                                                         </div>
274                                                 </div>
276                                                 <div class="control-group">
277                                                 <label class="control-label">Country</label>
278                                                         <div class="controls">
279                                                                  <select name="Country">
280                                                                         {foreach from=$country_array key=k item=v}
281                                                                                 <option value="{$k}" {if isset($Country) and $Country eq $k}selected="selected"{/if}>{$v}</option>
282                                                                         {/foreach}
283                                                                 </select>
284                                                         </div>
285                                                 </div>
287                                                 <div class="control-group gender-list">
288                                                         <label class="control-label">Gender</label>
289                                                         <div class="controls">
290                                                                 <label class="radio">
291                                                                       <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 0}checked{/if}"><input name="Gender" id="optionsRadios0" value="0" {if isset($Gender) and $Gender eq 0}checked=""{/if} type="radio"></span></div>
292                                                                       Secret
293                                                                 </label>
294                                                                 <div style="clear:both"></div>
295                                                                 <label class="radio">
296                                                                         <div id="uniform-optionsRadios1" class="radio"><span class="{if isset($Gender) and $Gender eq 1}checked{/if}"><input name="Gender" id="optionsRadios1" value="1" {if isset($Gender) and $Gender eq 1}checked=""{/if} type="radio"></span></div>
297                                                                         Male
298                                                                 </label>
299                                                                 <div style="clear:both"></div>
300                                                                 <label class="radio">
301                                                                       <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($Gender) and $Gender eq 2}checked{/if}"><input name="Gender" id="optionsRadios2" value="2" {if isset($Gender) and $Gender eq 2}checked=""{/if} type="radio"></span></div>
302                                                                       Female
303                                                                 </label>
304                                                         </div>
305                                                 </div>
307                                                 {if isset($info_updated) and $info_updated eq "OK"}
308                                                 <div class="alert alert-success">
309                                                         The Info has been updated!
310                                                 </div>
311                                                 {/if}
313                                                 <input type="hidden" name="function" value="change_info">
314                                                 <input type="hidden" name="target_id" value="{$target_id}">
315                                                 <div class="control-group">
316                                                         <label class="control-label"></label>
317                                                         <div class="controls">
318                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Info</button>
319                                                         </div>
320                                                 </div>
321                                         </form>
322                                 </div>
323                         </div>
324                         </div>
325                 </div><!--/span-->
326                 
327                 {if $permission == '3'}
328                 <div class="col-sm-4 js-masonry-item">
329                 <div class="panel panel-default">
330                         <div class="panel-heading" data-original-title="">
331                                 <span class="icon-th"></span> User Registration
332                         </div>
333                         <div class="panel-body">
334                                 <div class="row-fluid">
335                                         <form id="userRegistration" class="form-vertical" method="post" action="index.php?page=settings&id={$target_id}">
336                                                 <legend>User Registration</legend>
338                                                 <div class="control-group gender-list">
339                                                         <div class="controls">
340                                                                 <label class="radio">
341                                                                       <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 0}checked{/if}"><input name="userRegistration" id="optionsRadios0" value="0" {if isset($userRegistration) and $userRegistration eq 0}checked=""{/if} type="radio"></span></div>
342                                                                       In-Game and Web Registration
343                                                                 </label>
344                                                                 <div style="clear:both"></div>
345                                                                 <label class="radio">
346                                                                         <div id="uniform-optionsRadios1" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 1}checked{/if}"><input name="userRegistration" id="optionsRadios1" value="1" {if isset($userRegistration) and $userRegistration eq 1}checked=""{/if} type="radio"></span></div>
347                                                                         In-Game Registration Only
348                                                                 </label>
349                                                                 <div style="clear:both"></div>
350                                                                 <label class="radio">
351                                                                       <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 2}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="2" {if isset($userRegistration) and $userRegistration eq 2}checked=""{/if} type="radio"></span></div>
352                                                                       Web Registration Only
353                                                                 </label>
354                                                                 <div style="clear:both"></div>
355                                                                 <label class="radio">
356                                                                       <div id="uniform-optionsRadios2" class="radio"><span class="{if isset($userRegistration) and $userRegistration eq 3}checked{/if}"><input name="userRegistration" id="optionsRadios2" value="3" {if isset($userRegistration) and $userRegistration eq 3}checked=""{/if} type="radio"></span></div>
357                                                                       No Registration
358                                                                 </label>
359                                                         </div>
360                                                 </div>
362                                                 <input type="hidden" name="function" value="userRegistration">
363                                                 <input type="hidden" name="target_id" value="{$target_id}">
364                                                 <div class="control-group">
365                                                         <label class="control-label"></label>
366                                                         <div class="controls">
367                                                                 <button type="submit" class="btn btn-primary" style="margin-left:5px;">Change Setting</button>
368                                                         </div>
369                                                 </div>
370                                         </form>
371                                 </div>
372                         </div>
373                         </div>
374                 </div><!--/span-->
375                 {/if}
376                 
377         </div><!--/row-->
379         <script src="js/masonry.pkgd.min.js"></script>
381 {/block}