diff options
author | MrArmonius <mrarmonius@gmail.com> | 2021-07-26 23:01:48 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-08-16 12:54:08 +0200 |
commit | 815e9bfe2a912f0804de4882a11fd349b2f4d796 (patch) | |
tree | 0e9abbaef84d8ef900f217984808821c8234c817 /templates | |
parent | cf4918e901da8f2c388eebd33a500bf737943685 (diff) | |
download | guichet-815e9bfe2a912f0804de4882a11fd349b2f4d796.tar.gz guichet-815e9bfe2a912f0804de4882a11fd349b2f4d796.zip |
Add Description and visibility attributes
Modify in profil's page your description and your choice about show you
on the directory. The default visibility's choice is false. Tthe
description is empty by default.
In the directory, a new row exist to show the description.
Adapt view in column Description
I use the style `word-break: break-all;` on the `<td>`
Diffstat (limited to 'templates')
-rw-r--r-- | templates/directory.html | 1 | ||||
-rw-r--r-- | templates/profile.html | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/templates/directory.html b/templates/directory.html index bdc587f..e91354d 100644 --- a/templates/directory.html +++ b/templates/directory.html @@ -22,6 +22,7 @@ <th scope="col">Identifiant</th> <th scope="col">Nom complet</th> <th scope="col">Email</th> + <th scope="col">Description</th> </thead> <tbody id="users"> diff --git a/templates/profile.html b/templates/profile.html index bfd79cd..5445d6d 100644 --- a/templates/profile.html +++ b/templates/profile.html @@ -37,6 +37,18 @@ <label for="surname">Nom de famille:</label> <input type="text" id="surname" name="surname" class="form-control" value="{{ .Surname }}" /> </div> + <div class="form-group"> + <label for="description">Description (180 caractères maximum)</label> + <textarea id="description" name="description" class="form-control" maxlength="180">{{ .Description }}</textarea> + </div> + <div class="form-group form-check"> + {{if .Visibility}} + <input class="form-check-input" name="visibility" type="checkbox" id="visibility" checked> + {{else}} + <input class="form-check-input" name="visibility" type="checkbox" id="visibility"> + {{end}} + <label class="form-check-label" for="visibility">Apparaît sur l'annuaire</label> + </div> <button type="submit" class="btn btn-primary">Enregistrer les modifications</button> </form> {{end}} |