.
This commit is contained in:
parent
aec3c845e0
commit
edb6c00219
22 changed files with 941 additions and 69 deletions
35
views/login.tpl
Normal file
35
views/login.tpl
Normal file
|
|
@ -0,0 +1,35 @@
|
|||
{extends file="views/layout.tpl"}
|
||||
|
||||
{block name="content"}
|
||||
<section aria-label="Se connecter">
|
||||
{* Affichage des erreurs *}
|
||||
{if $arrError|count > 0}
|
||||
<div class="alert alert-danger">
|
||||
{foreach from=$arrError item=strError}
|
||||
<p>{$strError}</p>
|
||||
{/foreach}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
<form method="post">
|
||||
<p>
|
||||
<label>Mail:</label>
|
||||
<input name="mail"
|
||||
value="{$strMail|default:''}"
|
||||
class="form-control {if isset($arrError.mail)}is-invalid{/if}"
|
||||
type="email">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<label>Mot de passe:</label>
|
||||
<input name="pwd"
|
||||
class="form-control {if isset($arrError.pwd)}is-invalid{/if}"
|
||||
type="password">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<input class="form-control btn btn-primary" type="submit" value="Se connecter">
|
||||
</p>
|
||||
</form>
|
||||
</section>
|
||||
{/block}
|
||||
Loading…
Add table
Add a link
Reference in a new issue