cadoles-profile/cmd/server/templates/layouts/profile.html.tmpl

58 lines
2.2 KiB
Cheetah

{{define "title"}}LDAP Profile - Votre profil{{end}}
{{define "head_style"}}
<link rel="stylesheet" href="/css/profile.css" />
{{end}}
{{define "body"}}
<section class="is-fullheight profile">
<div class="container">
<div class="column is-10 is-offset-1">
{{template "flash" .}}
<div class="has-text-right">
<a href="/logout" class="button is-warning">Se déconnecter</a>
</div>
<div class="has-margin-top-small">
<div class="box">
<div class="columns">
<div class="column">
<h3 class="title is-3">Informations personnelles</h3>
<div class="message is-info">
<div class="message-body">
Fonctionnalité prochainement disponible :-)
</div>
</div>
</div>
<div class="column">
<h3 class="title is-3">Mot de passe</h3>
<form method="POST" action="/profile/password">
<div class="field">
<label class="label">Mot de passe actuel</label>
<div class="control">
<input class="input" autocomplete="current-password" name="currentPassword" type="password">
</div>
</div>
<div class="field">
<label class="label">Nouveau mot de passe</label>
<div class="control">
<input class="input" autocomplete="new-password" name="newPassword" type="password">
</div>
</div>
<div class="field">
<label class="label">Confirmation du nouveau mot de passe</label>
<div class="control">
<input class="input" autocomplete="new-password" name="newPasswordConfirm" type="password">
</div>
</div>
{{ .csrfField }}
<div class="has-text-right has-margin-top-small">
<button class="button is-normal is-success">Enregistrer</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
{{end}}
{{template "base" .}}