-
Notifications
You must be signed in to change notification settings - Fork 0
/
registration.tpl
104 lines (87 loc) · 4.79 KB
/
registration.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<p class="text-center lead">{lang key='registration_tooltip'}</p>
<div class="ia-form-system -registration">
<form method="post" action="{$smarty.const.IA_SELF}" enctype="multipart/form-data" class="ia-form ia-form--bordered">
{preventCsrf}
{include 'plans.tpl' item=$tmp}
{include 'field-type-content-fieldset.tpl' item_sections=$sections item=$tmp}
<div class="fieldset">
<div class="fieldset__header">{lang key='password'}</div>
<div class="fieldset__content">
<div class="checkbox">
<label>
<input type="checkbox" name="disable_fields" id="disable_fields" value="1"{if isset($smarty.post.disable_fields) && $smarty.post.disable_fields} checked{/if}> {lang key='auto_generate_password'}
</label>
</div>
<div id="pass_fieldset" {if isset($smarty.post.disable_fields) && 1 == $smarty.post.disable_fields}style="display: none;"{/if}>
<div class="form-group">
<label for="pass1">{lang key='your_password'}:</label>
<input class="form-control" type="password" name="password" id="pass1" value="{if isset($tmp.password)}{$tmp.password}{/if}">
</div>
<div class="form-group">
<label for="pass2">{lang key='your_password_confirm'}:</label>
<input class="form-control" type="password" name="password2" id="pass2" value="{if isset($tmp.password)}{$tmp.password}{/if}">
</div>
</div>
</div>
</div>
{include 'captcha.tpl'}
<div class="form-group">
<button type="submit" name="register" class="btn btn-success btn-block">{lang key='registration'}</button>
</div>
{if $core.providers}
<div class="social-providers">
<p>{lang key='login_with_social_network'}:</p>
{foreach $core.providers as $name => $provider}
<a class="btn btn-block btn-social btn-{$name|lower}" href="{$smarty.const.IA_URL}login/{$name|lower}/"><span class="fa fa-{$name|lower}"></span> {$name}</a>
{/foreach}
</div>
{/if}
</form>
</div>
{ia_print_js files='frontend/registration'}
{*
<div class="row">
<div class="col-md-{if $core.providers}8{else}12{/if}">
<p>{lang key='registration_tooltip'}</p>
<form method="post" action="{$smarty.const.IA_SELF}" enctype="multipart/form-data" class="ia-form ia-form--bordered">
{preventCsrf}
{include 'plans.tpl' item=$tmp}
{include 'field-type-content-fieldset.tpl' item_sections=$sections item=$tmp}
<div class="fieldset">
<div class="fieldset__header">{lang key='password'}</div>
<div class="fieldset__content">
<div class="checkbox">
<label>
<input type="checkbox" name="disable_fields" id="disable_fields" value="1"{if isset($smarty.post.disable_fields) && $smarty.post.disable_fields} checked{/if}> {lang key='auto_generate_password'}
</label>
</div>
<div id="pass_fieldset" {if isset($smarty.post.disable_fields) && 1 == $smarty.post.disable_fields}style="display: none;"{/if}>
<div class="form-group">
<label for="pass1">{lang key='your_password'}:</label>
<input class="form-control" type="password" name="password" id="pass1" value="{if isset($tmp.password)}{$tmp.password}{/if}">
</div>
<div class="form-group">
<label for="pass2">{lang key='your_password_confirm'}:</label>
<input class="form-control" type="password" name="password2" id="pass2" value="{if isset($tmp.password)}{$tmp.password}{/if}">
</div>
</div>
</div>
</div>
{include 'captcha.tpl'}
<div class="fieldset__actions">
<button type="submit" name="register" class="btn btn-success">{lang key='registration'}</button>
</div>
</form>
</div>
{if $core.providers}
<div class="col-md-4">
<div class="social-providers">
<p>{lang key='login_with_social_network'}:</p>
{foreach $core.providers as $name => $provider}
<a class="btn btn-block btn-social btn-{$name|lower}" href="{$smarty.const.IA_URL}login/{$name|lower}/"><span class="fa fa-{$name|lower}"></span> {$name}</a>
{/foreach}
</div>
</div>
{/if}
</div>
*}