toolbar.html 6.57 KB
Newer Older
1
2
3
<div class="modal-form <check if="{{ @@form_visible == 'login' }}">visible</check>" id="login">
	<div class="modal-form-title modal-form-only">
		<a class="close modal-form-only" href="/#"><span>{{ _("Fermer") }}</span></a>
Marne's avatar
Marne committed
4
		<h1>{{_("Connexion")}}</h1>
5
6
7
8
9
	</div>
	<form method="POST" class="form-inline" action="{{ 'login' | alias }}">
		<div class="modal-form-body">
			<input type="hidden" name="csrf" id="csrf" value="{{ @CSRF }}" />
			<fieldset class="form-group modal-form-only">
Marne's avatar
Marne committed
10
			    <h3>{{ _("Le site de dons a changé. À présent, utilisez votre adresse e-mail comme identifiant.") }} </h3>
Okhin's avatar
Okhin committed
11
12
13
14
                <div class="modal-row">
                    <message messages="{{ @SESSION.error }}" class="alert alert-danger" />
                    <message messages="{{ @SESSION.message }}" class="alert alert-default" />
                </div>
15
16
17
18
19
20
21
22
23
				<div class="modal-row form-group">
					<label for="email">{{ _("Adresse mail") }}</label>
					<input class="form-control" type="email" name="email" id="email" required>
				</div>
				<div class="modal-row form-group">
					<label for="password">{{ _("Mot de passe") }}</label>
					<input class="form-control" type="password" name="password" id="password" required>
				</div>
				<div class="modal-row">
24
					<a href="#password-reset">{{ _("Mot de passe oublié ?") }}</a>
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
					<input class="btn btn-lg btn-modal" type="submit" name="submit" id="submit" value="{{ _("Connexion") }}">
				</div>
			</fieldset>
		</div>
	</form>
</div>

<div class="modal-form" id="add-account">
	<div class="modal-form-title modal-form-only">
		<a class="close modal-form-only" href="#"><span>{{ _("Fermer") }}</span></a>
		<h1>{{_("Créer un compte")}}</h1>
	</div>
	<form method="POST" class="form-inline" action="{{ 'login' | alias }}">
		<div class="modal-form-body">
			<input type="hidden" name="csrf" id="csrf" value="{{ @CSRF }}" />
			<input type="hidden" name="action" id="action" value="create_account" />
			<fieldset class="form-group modal-form-only">
				<div class="modal-row form-group">
					<label for="email">{{ _("Adresse mail") }}</label>
					<input class="form-control" type="email" name="email" id="email" required>
				</div>
				<div class="modal-row form-group">
					<label for="password">{{ _("Mot de passe") }}</label>
					<input class="form-control" type="password" name="password" id="password" required>
				</div>
				<div class="modal-row">
					<input class="btn btn-lg btn-modal" type="submit" name="submit" id="submit" value="{{ _("Création du compte") }}">
				</div>
			</fieldset>
		</div>
	</form>
</div>
<div class="modal-form <check if="{{ @@form_visible == 'merci' }}">visible</check>" id="merci">
	<div class="modal-form-title modal-form-only">
		<a class="close modal-form-only" href="/#"><span>{{ _("Fermer") }}</span></a>
		<h1>{{ _("Merci &lt;3") }}</h1>
	</div>
	<div class="modal-form-body modal-form-only">
		<div class="modal-row">
			<p>{{ _("Merci de votre soutien") }}</p>
		</div>
	</div>
</div>
<div class="modal-form" id="password-reset">
	<div class="modal-form-title modal-form-only">
		<a class="close modal-form-only" href="/#"><span>{{ _("Fermer") }}</span></a>
		<h1>{{ _("Réinitialiser votre mot de passe") }}</h1>
	</div>
	<form method="POST" class="form-inline" action="{{ 'login' | alias }}">
		<div class="modal-form-body">
			<input type="hidden" name="csrf" id="csrf" value="{{ @CSRF }}" />
			<input type="hidden" name="action" id="action" value="renew_password" />
			<fieldset class="form-group modal-form-only">
				<div class="modal-row form-group">
					<label for="email">{{ _("Adresse mail") }}</label>
					<input class="form-control" type="email" name="email" id="email" required>
				</div>
				<div class="modal-row">
					<input class="btn btn-lg btn-modal" type="submit" name="submit" id="submit" value="{{ _("Réinitialiser le mot de passe") }}">
				</div>
			</fieldset>
		</div>
	</form>
</div>

<div class="hidden-xs hidden-sm">
	<nav id="up-bar" class="navbar navbar-default dark-blue">
		<ul class="nav navbar-nav navbar-right blue">
93
94
			<li><a href="?lang=fr">{{ _("[FR]")}}</a></li>
			<li><a href="?lang=en">{{ _("[EN]")}}</a></li>
95
96
97
		</ul>
		<ul class="nav navbar-nav navbar-right">
			<check if="{{ array_key_exists('user', @SESSION) }}">
Marne's avatar
Marne committed
98
			<true><li><a href="{{ 'logout' | alias }}">{{ _("Déconnexion") }}</a></li>
Marne's avatar
Marne committed
99
			<li><a href="{{ 'perso' | alias }}">{{ _("Contreparties") }}</a></li></true>
100
			<false><li><a href="#add-account">{{ _("Créer un compte")}}</a></li>
Marne's avatar
Marne committed
101
			<li><a href="#login">{{ _("Connexion")}}</a></li></false>
102
103
			</check>
		</ul>
Marne's avatar
Marne committed
104
105
106
		<ul class="nav navbar-nav navbar-right">
			<li><a href="/#">{{ _("Accueil")}}</a></li>
		</ul>
107
108
109
110
111
	</nav>
	<nav id="toolbar" class="navbar navbar-default navbar-white">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="{{ 'home' | alias }}">
112
					<img src="/static/img/logo.svg" alt="">
113
114
115
116
117
118
119
120
121
122
123
124
125
				</a>
			</div>
			<ul class="nav navbar-nav navbar-right">
				<li> <a href="{{ @ALIASES.faq }}" <check if="{{ @block_content=='campaign/faq.html' }}">class="on"</check> >{{ _("FAQ") }}</a></li>
			</ul>
		</div>
	</nav>
</div>
<div class="visible-xs visible-sm">
	<nav id="toolbar" class="navbar navbar-default navbar-white">
		<div class="container-fluid">
			<div class="navbar-header">
				<a class="navbar-brand" href="{{ 'home' | alias }}">
Okhin's avatar
Okhin committed
126
					<img src="/static/img/logo.svg" alt="">
127
128
129
130
131
				</a>
			</div>
			<ul class="nav navbar-nav">
				<check if="{{ array_key_exists('user', @SESSION) }}">
				<true><li class="pull-right collapsible-menu"><a href="#perso-menu">{{ _("Perso") }}</a></li></true>
Marne's avatar
Marne committed
132
				<false><li class="pull-right"><a href="#login">{{ _("Connexion")}}</a></li></false>
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
				</check>
				<li class="pull-right collapsible-menu"><a href="#action-menu">{{ _("Menu") }}</a>
				</li>
			</ul>
		</div>
		<span class="menu-collapsed-target" id="perso-menu"></span>
		<div class="menu-collapsed">
			<ul class="nav navbar-nav">
                <li><a href="{{ 'logout' | alias }}">{{ _("Déconnexion") }}</a></li>
                <li><a href="{{ 'perso' | alias }}">{{ _("Page Perso") }}</a></li>
				<li><a href="#">{{ ("Fermer") }}</a></li>
			</ul>
		</div>
		<span class="menu-collapsed-target" id="action-menu"></span>
		<div class="menu-collapsed">
			<ul class="nav navbar-nav">
				<li> <a href="{{ @ALIASES.faq }}" >{{ _("FAQ") }}</a></li>
				<li> <a href="{{ @ALIASES.home }}"  >{{ _("Home") }}</a></li>
				<li><a href="#">{{ ("Fermer") }}</a></li>
			</ul>
		</div>
	</nav>
</div>
156
<section id="messages">
157
158
    <message messages="{{ @SESSION.message }}" class="alert alert-default">
    <message messages="{{ @SESSION.error }}" class="alert alert-danger">
159
160
</section>