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

46 lines
1.5 KiB
Cheetah
Raw Normal View History

2019-05-13 09:19:33 +02:00
{{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-8 is-offset-2">
{{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">
<h2 class="title is-2">Votre profil</h2>
<form method="POST">
{{range .EntryAttributes}}
<label class="label">{{ .Name }}</label>
{{ $name := .Name }}
{{range .Values}}
<div class="field has-addons">
<div class="control is-expanded">
<input class="input" type="text" value="{{ . }}" name="{{ $name }}">
</div>
<div class="control">
<a class="button is-danger">
-
</a>
</div>
</div>
{{end}}
<div class="has-text-right">
<button data-attribute-name="{{ $name }}" class="button is-primary">+</button>
</div>
{{end}}
<div class="has-text-right has-margin-top-small">
<button class="button is-medium is-success">Enregistrer</button>
</div>
</form>
</div>
</div>
</div>
</div>
</section>
{{end}}
{{template "base" .}}