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

61 lines
2.4 KiB
Cheetah
Raw Normal View History

2019-05-31 13:22:25 +02:00
{{define "title"}}Votre profil - Cadoles{{end}}
2019-05-13 09:19:33 +02:00
{{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">
2019-05-13 09:19:33 +02:00
{{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">
2019-05-13 09:19:33 +02:00
</div>
</div>
<div class="field">
<label class="label">Confirmation du nouveau mot de passe</label>
2019-05-13 09:19:33 +02:00
<div class="control">
<input class="input" autocomplete="new-password" name="newPasswordConfirm" type="password">
2019-05-13 09:19:33 +02:00
</div>
</div>
{{ .csrfField }}
<div class="has-text-right has-margin-top-small">
<button class="button is-normal is-success">Enregistrer</button>
</div>
</form>
2019-05-13 09:19:33 +02:00
</div>
</div>
<p class="has-margin-top-small has-text-centered">
<strong>Une question, un problème ?</strong> <a href="mailto:{{ .Contact.Email }}?subject={{ .Contact.Subject }}">Contacter le support</a>
</p>
2019-05-13 09:19:33 +02:00
</div>
</div>
</div>
</div>
</section>
{{end}}
{{template "base" .}}