toolbar.html 5.97 KB
Newer Older
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
<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>
		<h1>{{_("Se connecter")}}</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 }}" />
			<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">
					<a href="#password-reset">{{ _("Réinitialiser votre mot de passe") }}</a>
					<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">
88 89
			<li><a href="?lang=fr">{{ _("[FR]")}}</a></li>
			<li><a href="?lang=en">{{ _("[EN]")}}</a></li>
90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147
		</ul>
		<ul class="nav navbar-nav navbar-right">
			<check if="{{ array_key_exists('user', @SESSION) }}">
			<true><li><a href="{{ 'logout' | alias }}">{{ _("Se déconnecter") }}</a></li>
			<li><a href="{{ 'perso' | alias }}">{{ _("Réclamer les contreparties") }}</a></li></true>
			<false><li><a href="#add-account">{{ _("Créer un compte")}}</a></li>
			<li><a href="#login">{{ _("Se connecter")}}</a></li></false>
			</check>
		</ul>
	</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 }}">
					<img src="/static/img/logo.png" alt="">
				</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 }}">
					<img src="/static/img/logo.png" alt="">
				</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>
				<false><li class="pull-right"><a href="#login">{{ _("Se connecter")}}</a></li></false>
				</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>