diff --git a/views/account_manage.html b/views/account_manage.html index 0f4db71..d221d4f 100644 --- a/views/account_manage.html +++ b/views/account_manage.html @@ -1,122 +1,112 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
- {% if Errors %} -
-
    - {% for Error in Errors %} -
  • {{ Error }}
  • - {% endfor %} -
-
- {% endif %} - -
+ {% if Errors %} +
+
    + {% for Error in Errors %} +
  • {{ Error }}
  • + {% endfor %} +
+
+ {% endif %} -
- -
- -
-
+ +
+ +
+ +
+
-
- -
- -
-
+
+ +
+ +
+
-
- -
- -
- Laisser vide pour ne pas changer -
-
-
+
+ +
+ +
Laisser vide pour ne pas changer
+
+
-
- -
- -
-
+
+ +
+ +
+
-
- -
-
- -
+
+ +
+ +
{% endblock %} {% block javascript %} - -{% endblock %} \ No newline at end of file + $("#password").trigger("input"); + }); + +{% endblock %} diff --git a/views/account_totp.html b/views/account_totp.html index 40b014f..627c31e 100644 --- a/views/account_totp.html +++ b/views/account_totp.html @@ -1,44 +1,42 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
-
+ +
+ + +
+ Si la case est cochée, vous devrez effectuer un nouvel enrôlement + TOTP. +
+
-
- - -
- Si la case est cochée, vous devrez effectuer - un nouvel enrôlement TOTP. -
-
- -
- -
-
- -
+
+ +
+ +
{% endblock %} diff --git a/views/admin.html b/views/admin.html index 3907753..3d2445c 100644 --- a/views/admin.html +++ b/views/admin.html @@ -1,58 +1,58 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
- -
+
+ + + + + +
+
{% endblock %} diff --git a/views/error_page.html b/views/error_page.html index 097a920..5c8a27f 100644 --- a/views/error_page.html +++ b/views/error_page.html @@ -1,8 +1,8 @@ {% extends "layouts/main.html" %} {% block main %} -
-
Erreur {{ Code }}
- {{ Message }} -
+
+
Erreur {{ Code }}
+ {{ Message }} +
{% endblock %} diff --git a/views/field.html b/views/field.html index b488d02..3984ce5 100644 --- a/views/field.html +++ b/views/field.html @@ -1,146 +1,150 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
-
-
- Nom du champ -
-
- -
-
+
+
Nom du champ
+
+ +
+
-
-
- Population -
-
- {% for Key, Value in PersonTypes %} - {% if Key == Field.PersonType %} - - {% endif %} - {% endfor %} -
-
+
+
Population
+
+ {% for Key, Value in PersonTypes %} + {% if Key == Field.PersonType %} + + {% endif %} + {% endfor %} +
+
-
-
- Type de champ -
-
- {% for Key, Value in FieldTypes %} - {% if Key == Field.FieldType %} - - {% endif %} - {% endfor %} -
-
+
+
Type de champ
+
+ {% for Key, Value in FieldTypes %} + {% if Key == Field.FieldType %} + + {% endif %} + {% endfor %} +
+
-
-
- Liste -
-
- {% if Field.ListID %} - - {% else %} -
- - - - -
- {% endif %} -
-
+
+
Liste
+
+ {% if Field.ListID %} + + {% else %} +
+ + + + +
+ {% endif %} +
+
-
- -
- -
-
+
+ +
+ +
+
+
-
+ {% endblock %} diff --git a/views/field_form.html b/views/field_form.html index 8fc99e3..e90ba40 100644 --- a/views/field_form.html +++ b/views/field_form.html @@ -1,148 +1,142 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- +
+
- {% if Errors %} -
- -
- {% endif %} - -
+ {% if Errors %} +
+
    + {% for Error in Errors %} +
  • {{ Error }}
  • + {% endfor %} +
+
+ {% endif %} -
- -
- -
-
+ +
+ +
+ +
+
- {% if !Field.ID %} -
- -
- -
-
+ {% if !Field.ID %} +
+ +
+ +
+
-
- -
- -
-
+
+ +
+ +
+
-
- -
- -
-
- {% endif %} +
+ +
+ +
+
+ {% endif %} -
- -
-
- -
+
+ +
+ + {% endblock %} {% block javascript %} - -{% endblock %} \ No newline at end of file + $("#field_type").trigger("change"); + }); + +{% endblock %} diff --git a/views/fields.html b/views/fields.html index aa84618..45514ae 100644 --- a/views/fields.html +++ b/views/fields.html @@ -1,114 +1,121 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
- + -
Membres
-
- - - - - - - - - - {% for Field in Fields %} - {% if Field.PersonType == "member" %} - - - - - - {% endif %} - {% endfor %} - -
NomType de champ
- - {{ Field.Name }} - - - {% for Key, Value in FieldTypes %} - {% if Key == Field.FieldType %} - {{ Value }} - {% endif %} - {% endfor %} - - -
-
+
Membres
+
+ + + + + + + + + + {% for Field in Fields %} + {% if Field.PersonType == "member" %} + + + + + + {% endif %} + {% endfor %} + +
NomType de champ
+ {{ Field.Name }} + + {% for Key, Value in FieldTypes %} + {% if Key == Field.FieldType %} + {{ Value }} + {% endif %} + {% endfor %} + + +
+
-
Contacts
-
- - - - - - - - - - {% for Field in Fields %} - {% if Field.PersonType == "contact" %} - - - - - - {% endif %} - {% endfor %} - -
NomType de champ
- - {{ Field.Name }} - - - {% for Key, Value in FieldTypes %} - {% if Key == Field.FieldType %} - {{ Value }} - {% endif %} - {% endfor %} - - -
-
- -
+
Contacts
+
+ + + + + + + + + + {% for Field in Fields %} + {% if Field.PersonType == "contact" %} + + + + + + {% endif %} + {% endfor %} + +
NomType de champ
+ {{ Field.Name }} + + {% for Key, Value in FieldTypes %} + {% if Key == Field.FieldType %} + {{ Value }} + {% endif %} + {% endfor %} + + +
+
+
{% endblock %} diff --git a/views/index.html b/views/index.html index a728de4..f3c5a52 100644 --- a/views/index.html +++ b/views/index.html @@ -1,50 +1,49 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
-
+
+ {% if Globals.AllowMembersPage %} + + {% endif %} - {% if Globals.AllowMembersPage %} - - {% endif %} + {% if Globals.AllowContactsPage %} + + {% endif %} - {% if Globals.AllowContactsPage %} - - {% endif %} - - {% if Globals.UserIsAdmin %} - - {% endif %} -
-
+ {% if Globals.UserIsAdmin %} + + {% endif %} +
+
{% endblock %} diff --git a/views/layouts/main.html b/views/layouts/main.html index 7a59225..67525c9 100644 --- a/views/layouts/main.html +++ b/views/layouts/main.html @@ -1,68 +1,72 @@ -{% include "partials/easter_egg.html" %} - - - + {% include "partials/easter_egg.html" %} + + + - {% set PageTitleSuffix = "Camarades | POP Vaud" %} - {% if PageTitle %} - {{ PageTitle }} | {{ PageTitleSuffix }} - {% else %} - {{ PageTitleSuffix }} - {% endif %} - - - - - - {% block stylesheet %}{% endblock %} - - -
- {% block body %} - {% block header %} - {% include "partials/header.html" %} - {% endblock %} + {% set PageTitleSuffix = "Camarades | POP Vaud" %} + {% if PageTitle %} + {{ PageTitle }} | {{ PageTitleSuffix }} + {% else %} + {{ PageTitleSuffix }} + {% endif %} - {% block main %}{% endblock %} - {% endblock %} -
+ + + + + {% block stylesheet %}{% endblock %} + + +
+ {% block body %} + {% block header %} + {% include "partials/header.html" %} + {% endblock %} -
-
- - - {{ Globals.TimeStart | time_diff }} - ms - -
- - + + + + + + {% block javascript %}{% endblock %} + diff --git a/views/licenses.html b/views/licenses.html index b478a22..d760dd3 100644 --- a/views/licenses.html +++ b/views/licenses.html @@ -1,20 +1,18 @@ {% extends "layouts/main.html" %} {% block main %} -
- {{ Markdown|safe }} -
+
{{ Markdown|safe }}
{% endblock %} {% block stylesheet %} - + #licenses p { + margin: 0; + } + {% endblock %} diff --git a/views/list.html b/views/list.html index fe3be54..720198f 100644 --- a/views/list.html +++ b/views/list.html @@ -1,186 +1,198 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
-
-
- Nom -
-
- -
-
+
+
Nom
+
+ +
+
-
-
- Liste à choix multiples -
-
- {% if List.Multi %} -
- - - - -
- {% else %} -
- - - - -
- {% endif %} -
-
+
+
Liste à choix multiples
+
+ {% if List.Multi %} +
+ + + + +
+ {% else %} +
+ + + + +
+ {% endif %} +
+
-
- -
- -
-
+
+ +
+ +
+
-
-
- Contenu de la liste -
- -
+
+
Contenu de la liste
+ +
- {% if ListItems %} -
- - - - - - - - - - {% for Item in ListItems %} - - - - - - {% endfor %} - -
ValeurPar défaut
- - {{ Item.Value }} - - - {% if Item.Default %} - - Oui - {% else %} - - Non - {% endif %} - - -
-
- {% else %} -
- Pas encore d'éléments dans cette liste. -
- {% endif %} + {% if ListItems %} +
+ + + + + + + + + + {% for Item in ListItems %} + + + + + + {% endfor %} + +
ValeurPar défaut
+ + {{ Item.Value }} + + + {% if Item.Default %} + + Oui + {% else %} + + Non + {% endif %} + + +
+
+ {% else %} +
Pas encore d'éléments dans cette liste.
+ {% endif %} +
-
+ - -{% for Item in ListItems %} - -{% endfor %} + {% for Item in ListItems %} + + {% endfor %} {% endblock %} diff --git a/views/list_form.html b/views/list_form.html index 316c7d9..fcd8343 100644 --- a/views/list_form.html +++ b/views/list_form.html @@ -1,78 +1,76 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- +
+
- {% if Errors %} -
- -
- {% endif %} - -
+ {% if Errors %} +
+
    + {% for Error in Errors %} +
  • {{ Error }}
  • + {% endfor %} +
+
+ {% endif %} -
- -
- -
-
+ +
+ +
+ +
+
-
-
- - -
-
+
+
+ + +
+
-
- -
-
- -
+
+ +
+ + {% endblock %} diff --git a/views/listitem_form.html b/views/listitem_form.html index 3ba43ae..d9e22e7 100644 --- a/views/listitem_form.html +++ b/views/listitem_form.html @@ -1,80 +1,78 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- +
+
- {% if Errors %} -
- -
- {% endif %} - -
+ {% if Errors %} +
+
    + {% for Error in Errors %} +
  • {{ Error }}
  • + {% endfor %} +
+
+ {% endif %} -
- -
- -
-
+ +
+ +
+ +
+
-
-
- - -
-
+
+
+ + +
+
-
- -
-
- -
+
+ +
+ + {% endblock %} diff --git a/views/lists.html b/views/lists.html index f57ffdf..89941f7 100644 --- a/views/lists.html +++ b/views/lists.html @@ -1,61 +1,56 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- -
-
+
+
+ +
+
- + - {% if Lists %} -
- - - - - - - - - {% for List in Lists %} - - - - - {% endfor %} - -
NomChoix multiples
- - {{ List.Name }} - - - {% if List.Multi %} - - Oui - {% else %} - - Non - {% endif %} -
-
- {% else %} -
- Pas de liste pour le moment -
- {% endif %} - -
+ {% if Lists %} +
+ + + + + + + + + {% for List in Lists %} + + + + + {% endfor %} + +
NomChoix multiples
+ {{ List.Name }} + + {% if List.Multi %} + + Oui + {% else %} + + Non + {% endif %} +
+
+ {% else %} +
Pas de liste pour le moment
+ {% endif %} +
{% endblock %} diff --git a/views/login.html b/views/login.html index 0fba496..ae622a9 100644 --- a/views/login.html +++ b/views/login.html @@ -1,65 +1,57 @@ {% extends "layouts/main.html" %} {% block main %} -
-
-
-
- Authentification -
-
- {% if LoginError %} -
- {{ LoginError }} -
- {% endif %} - -
-
- - -
-
- - -
-
- - -
-
- -
-
-
-
-
-
+
+
+
+
Authentification
+
+ {% if LoginError %} +
{{ LoginError }}
+ {% endif %} + +
+
+ + +
+
+ + +
+
+ + +
+
+ +
+
+
+
+
+
{% endblock %} diff --git a/views/partials/easter_egg.html b/views/partials/easter_egg.html index 8b37640..1783d47 100644 --- a/views/partials/easter_egg.html +++ b/views/partials/easter_egg.html @@ -12,4 +12,4 @@ 🟥🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩🟩 -------- FREE PALESTINE -------- ---> \ No newline at end of file +--> diff --git a/views/partials/header.html b/views/partials/header.html index 8b8a793..fb3b051 100644 --- a/views/partials/header.html +++ b/views/partials/header.html @@ -1,143 +1,141 @@ diff --git a/views/people.html b/views/people.html index 292734b..46988c2 100644 --- a/views/people.html +++ b/views/people.html @@ -1,299 +1,373 @@ {% extends "layouts/main.html" %} {% block main %} -
-
- +
+
-
- {% if MembersPage %} - - {% else %} - - {% endif %} -
+
+ {% if MembersPage %} + + {% else %} + + {% endif %} +
-
-
-
+
+
+
+ + +
+
+ + +
+
+ {% if PermShow %} +
+ + {% if MembersPage %} + + {% else %} + + {% endif %} +
+ {% endif %} - - + {% if PermShowArchived %} +
+ + {% if MembersPage %} + + {% else %} + + {% endif %} +
+ {% endif %} +
+
-
-
+
+
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+
- - +
+
+ + +
+
+ + +
+
-
-
- - {% if PermShow %} -
- - {% if MembersPage %} - - {% else %} - - {% endif %} -
- {% endif %} +
+
- {% if PermShowArchived %} -
- - {% if MembersPage %} - - {% else %} - - {% endif %} -
- {% endif %} +
+
+ + +
+
+ +
+
-
-
+
+ + +
+
-
-
-
+
+ + + + + + + + + + {% for Person in People %} + + + + + + {% endfor %} + +
NomAdresseSection
+ {% if Person.IsMember %} + + {{ Person.LastName }} {{ Person.FirstName }} + + {% else %} + + {{ Person.LastName }} {{ Person.FirstName }} + + {% endif %} + + {{ Person.Address1 }} + {% if Person.Address1 and (Person.PostalCode or Person.City) %} + – + {% endif %} + {{ Person.PostalCode }} + {{ Person.City }} + + {% if Person.SectionID %} + {{ Person.Section.Name }} + {% endif %} +
+
- - +
-
+ {% for i in Pagination.Pages %} +
  • + + {{ i }} + +
  • + {% endfor %} - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - - - - -
    -
    - -
    -
    - - -
    -
    - - -
    -
    - -
    -
    - -
    -
    - - -
    -
    - -
    -
    - -
    - - -
    -
    - -
    - - - - - - - - - - {% for Person in People %} - - - - - - {% endfor %} - -
    NomAdresseSection
    - {% if Person.IsMember %} - - {{ Person.LastName }} {{ Person.FirstName }} - - {% else %} - - {{ Person.LastName }} {{ Person.FirstName }} - - {% endif %} - - {{ Person.Address1 }} - {% if Person.Address1 and (Person.PostalCode or Person.City) %} - – - {% endif %} - {{ Person.PostalCode }} {{ Person.City }} - - {% if Person.SectionID %} - {{ Person.Section.Name }} - {% endif %} -
    -
    - - - -
    + {% if Pagination.CurrentPage >= Pagination.MaxPages %} +
  • + + + +
  • +
  • + + + +
  • + {% else %} +
  • + + + +
  • +
  • + + + +
  • + {% endif %} + + + {% endblock %} {% block javascript %} - -{% endblock %} \ No newline at end of file + +{% endblock %} diff --git a/views/person.html b/views/person.html index f019eb2..5e67b3a 100644 --- a/views/person.html +++ b/views/person.html @@ -1,520 +1,587 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - +
    +
    -
    -
    - Prénom -
    -
    - -
    -
    +
    +
    Nom de famille
    +
    + +
    +
    -
    -
    - Email -
    -
    - -
    -
    +
    +
    Prénom
    +
    + +
    +
    -
    -
    - Téléphone fixe -
    -
    - -
    -
    +
    +
    Email
    +
    + +
    +
    -
    -
    - Téléphone mobile -
    -
    - -
    -
    +
    +
    Téléphone fixe
    +
    + +
    +
    -
    -
    - Adresse -
    -
    - -
    -
    +
    +
    Téléphone mobile
    +
    + +
    +
    -
    -
    - -
    -
    +
    +
    Adresse
    +
    + +
    +
    -
    -
    - -
    -
    - -
    -
    +
    +
    + +
    +
    -
    -
    - Section -
    -
    - -
    -
    +
    +
    + +
    +
    + +
    +
    - {% if Fields %} -
    - - Champs supplémentaires - -
    - {% endif %} +
    +
    Section
    +
    + +
    +
    - {% for Field in Fields %} -
    -
    - {{ Field.Name }} -
    -
    + {% if Fields %} +
    + Champs supplémentaires +
    + {% endif %} - {% if Field.FieldType == "text" %} - +
    {{ Field.Name }}
    +
    + {% if Field.FieldType == "text" %} + + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueString.String }}" - {% endif %} - {% endfor %} - > - {% endif %} + {% if Field.FieldType == "longtext" %} + + {% endif %} - {% if Field.FieldType == "longtext" %} - - {% endif %} - - {% if Field.FieldType == "number" %} - + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueInt.Int64 }}" - {% endif %} - {% endfor %} - > - {% endif %} - - {% if Field.FieldType == "date" %} - + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueDate.Time|date:"02.01.2006" }}" - {% endif %} - {% endfor %} - > - {% endif %} + {% if Field.FieldType == "list" and Field.List.Multi %} - {% if Field.FieldType == "list" and Field.List.Multi %} - - {% set count = 1 %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - {% if FieldValue.FieldID == Field.ID %} -
    - - -
    - {% endif %} - {% endif %} - {% endfor %} - {% endif %} + {% set count = 1 %} + {% for FieldValue in FieldValues %} + {% if FieldValue.FieldID == Field.ID %} + {% if FieldValue.FieldID == Field.ID %} +
    + + +
    + {% endif %} + {% endif %} + {% endfor %} + {% endif %} - {% if Field.FieldType == "list" and !Field.List.Multi %} - + {% endif %} +
    +
    + {% endfor %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ListItem.Value }}" - {% endif %} - {% endfor %} - > - {% endif %} +
    + {% if Person.IsMember %} +
    +
    + {% if !Person.DeletedAt.Valid %} -
    -
    - {% endfor %} + {% if PermEdit %} + + + Modifier + + {% endif %} -
    - {% if Person.IsMember %} + {% if PermConvert %} + + {% endif %} + {% endif %} +
    +
    + {% if Person.DeletedAt.Valid %} -
    -
    - {% if !Person.DeletedAt.Valid %} + {% if PermRestore %} + + {% endif %} + {% else %} - {% if PermEdit %} - - - Modifier - - {% endif %} + {% if PermArchive %} + + {% endif %} + {% endif %} - {% if PermConvert %} - - {% endif %} + {% if PermPurge %} + + {% endif %} +
    +
    + {% else %} +
    +
    + {% if !Person.DeletedAt.Valid %} - {% endif %} -
    -
    - {% if Person.DeletedAt.Valid %} + {% if PermEdit %} + + + Modifier + + {% endif %} - {% if PermRestore %} - - {% endif %} + {% if PermConvert %} + + {% endif %} + {% endif %} +
    +
    + {% if Person.DeletedAt.Valid %} - {% else %} + {% if PermRestore %} + + {% endif %} + {% else %} - {% if PermArchive %} - - {% endif %} + {% if PermArchive %} + + {% endif %} + {% endif %} - {% endif %} + {% if PermPurge %} + + {% endif %} +
    +
    + {% endif %} +
    +
    - {% if PermPurge %} - - {% endif %} + +
    +
    - {% else %} + + + {% endblock %} diff --git a/views/person_form.html b/views/person_form.html index facc06f..ef5b4eb 100644 --- a/views/person_form.html +++ b/views/person_form.html @@ -1,361 +1,342 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - +
    +
    -
    - -
    - -
    -
    + {% if Errors %} +
    + +
    + {% endif %} -
    - -
    - -
    -
    + +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    -
    - -
    -
    +
    + +
    + +
    +
    -
    -
    - -
    -
    - -
    -
    +
    +
    + +
    +
    -
    - -
    - -
    -
    +
    +
    + +
    +
    + +
    +
    - {% if Fields %} -
    - - Champs supplémentaires - -
    - {% endif %} +
    + +
    + +
    +
    - {% for Field in Fields %} -
    - -
    + {% if Fields %} +
    + Champs supplémentaires +
    + {% endif %} - {% if Field.FieldType == "text" %} - + +
    + {% if Field.FieldType == "text" %} + + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueString.String }}" - {% endif %} - {% endfor %} - > - {% endif %} + {% if Field.FieldType == "longtext" %} + + {% endif %} - {% if Field.FieldType == "longtext" %} - - {% endif %} - - {% if Field.FieldType == "number" %} - + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueInt.Int64 }}" - {% endif %} - {% endfor %} - > - {% endif %} - - {% if Field.FieldType == "date" %} - + {% endif %} - {% for FieldValue in FieldValues %} - {% if FieldValue.FieldID == Field.ID %} - value="{{ FieldValue.ValueDate.Time|date:"2006-01-02" }}" - {% endif %} - {% endfor %} - > - {% endif %} + {% if Field.FieldType == "list" and !Field.List.Multi %} + + {% endif %} - {% if !Person.ID and ListItem.Default %} - selected - {% endif %} + {% if Field.FieldType == "list" and Field.List.Multi %} + {% for ListItem in Field.List.ListItems %} +
    + - {{ ListItem.Value }} - - {% endfor %} - - {% endif %} + {% for FieldValue in FieldValues %} + {% if FieldValue.FieldID == Field.ID and FieldValue.ListItemID == ListItem.ID %} + checked + {% endif %} + {% endfor %} + /> + +
    + {% endfor %} + {% endif %} +
    +
    + {% endfor %} - {% if Field.FieldType == "list" and Field.List.Multi %} - {% for ListItem in Field.List.ListItems %} -
    - - -
    - {% endfor %} - {% endif %} - -
    -
    - {% endfor %} - -
    - -
    - - - +
    + +
    + + {% endblock %} diff --git a/views/role.html b/views/role.html index c842f13..786c20c 100644 --- a/views/role.html +++ b/views/role.html @@ -1,611 +1,428 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    -
    -
    - Nom -
    -
    - -
    -
    +
    +
    Nom
    +
    + +
    +
    -
    - - Permissions membres - -
    +
    + Permissions membres +
    -
    -
    - Afficher membres -
    -
    - {% if Role.ShowMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Afficher membres
    +
    + {% if Role.ShowMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Créer membres -
    -
    - {% if Role.CreateMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Créer membres
    +
    + {% if Role.CreateMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Modifier membres -
    -
    - {% if Role.EditMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Modifier membres
    +
    + {% if Role.EditMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Afficher membres archivés -
    -
    - {% if Role.ShowArchivedMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Afficher membres archivés
    +
    + {% if Role.ShowArchivedMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Archiver membres -
    -
    - {% if Role.ArchiveMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Archiver membres
    +
    + {% if Role.ArchiveMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Restaurer membres -
    -
    - {% if Role.RestoreMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Restaurer membres
    +
    + {% if Role.RestoreMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Purger membres (suppression définitive) -
    -
    - {% if Role.PurgeMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Purger membres (suppression définitive)
    +
    + {% if Role.PurgeMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Convertir membres en contacts -
    -
    - {% if Role.ConvertMemberToContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Convertir membres en contacts
    +
    + {% if Role.ConvertMemberToContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    - - Permissions contacts - -
    +
    + Permissions contacts +
    -
    -
    - Afficher contacts -
    -
    - {% if Role.ShowContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Afficher contacts
    +
    + {% if Role.ShowContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Créer contacts -
    -
    - {% if Role.CreateContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Créer contacts
    +
    + {% if Role.CreateContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Modifier contacts -
    -
    - {% if Role.EditContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Modifier contacts
    +
    + {% if Role.EditContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Afficher contacts archivés -
    -
    - {% if Role.ShowArchivedContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Afficher contacts archivés
    +
    + {% if Role.ShowArchivedContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Archiver contacts -
    -
    - {% if Role.ArchiveContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Archiver contacts
    +
    + {% if Role.ArchiveContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Restaurer contacts -
    -
    - {% if Role.RestoreContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Restaurer contacts
    +
    + {% if Role.RestoreContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Purger contacts (suppression définitive) -
    -
    - {% if Role.PurgeContact %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Purger contacts (suppression définitive)
    +
    + {% if Role.PurgeContact %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Convertir contacts en membres -
    -
    - {% if Role.ConvertContactToMember %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Convertir contacts en membres
    +
    + {% if Role.ConvertContactToMember %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    +
    -
    + {% endblock %} diff --git a/views/role_form.html b/views/role_form.html index 786c1f8..9978f7f 100644 --- a/views/role_form.html +++ b/views/role_form.html @@ -1,340 +1,324 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - +
    +
    - {% if Errors %} -
    - -
    - {% endif %} - -
    + {% if Errors %} +
    +
      + {% for Error in Errors %} +
    • {{ Error }}
    • + {% endfor %} +
    +
    + {% endif %} -
    - -
    - -
    -
    + +
    + +
    + +
    +
    -
    - - Permissions membres - -
    +
    + Permissions membres +
    -
    -
    -
    - Permissions membres -
    -
    -
    - - -
    -
    +
    +
    +
    Permissions membres
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    - - Permissions contacts - -
    +
    + Permissions contacts +
    -
    -
    -
    - Permissions contacts -
    -
    -
    - - -
    -
    +
    +
    +
    Permissions contacts
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    - -
    -
    - -
    +
    + +
    + + {% endblock %} diff --git a/views/roles.html b/views/roles.html index 89171c6..3226af0 100644 --- a/views/roles.html +++ b/views/roles.html @@ -1,52 +1,46 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    - + - - {% if Roles %} -
    - - - - - - - - {% for Role in Roles %} - - - - {% endfor %} - -
    Nom
    - - {{ Role.Name }} - -
    -
    - {% else %} -
    - Pas de rôle pour le moment -
    - {% endif %} - -
    + {% if Roles %} +
    + + + + + + + + {% for Role in Roles %} + + + + {% endfor %} + +
    Nom
    + {{ Role.Name }} +
    +
    + {% else %} +
    Pas de rôle pour le moment
    + {% endif %} +
    {% endblock %} diff --git a/views/section.html b/views/section.html index 94555cf..ed5c292 100644 --- a/views/section.html +++ b/views/section.html @@ -1,181 +1,163 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    -
    -
    - Nom -
    -
    - -
    -
    +
    +
    Nom
    +
    + +
    +
    -
    -
    - Nom technique -
    -
    - -
    -
    +
    +
    Nom technique
    +
    + +
    +
    -
    -
    - Section parente -
    -
    - {% if Section.ParentSectionID %} - - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Section parente
    +
    + {% if Section.ParentSectionID %} + + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Peut contenir des membres -
    -
    - {% if Section.ContainsMembers %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Peut contenir des membres
    +
    + {% if Section.ContainsMembers %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Peut contenir des contacts -
    -
    - {% if Section.ContainsContacts %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Peut contenir des contacts
    +
    + {% if Section.ContainsContacts %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    +
    -
    + {% endblock %} diff --git a/views/section_form.html b/views/section_form.html index 898cbd0..7a2191c 100644 --- a/views/section_form.html +++ b/views/section_form.html @@ -1,146 +1,144 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - +
    +
    - {% if Errors %} -
    - -
    - {% endif %} - -
    + {% if Errors %} +
    +
      + {% for Error in Errors %} +
    • {{ Error }}
    • + {% endfor %} +
    +
    + {% endif %} -
    - -
    - -
    -
    + +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    - -
    -
    - -
    +
    + +
    + + {% endblock %} diff --git a/views/sections.html b/views/sections.html index f002f37..5423a48 100644 --- a/views/sections.html +++ b/views/sections.html @@ -1,80 +1,77 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    - + - {% if Sections %} -
    - - - - - - - - - - - {% for Section in Sections %} - - - - - - - {% endfor %} - -
    NomSection parenteMembresContacts
    - - {{ Section.Name }} - - - {% if Section.ParentSectionID %} - {{ Section.ParentSection.Name }} - {% else %} - - Non - {% endif %} - - {% if Section.ContainsMembers %} - - Oui - {% else %} - - Non - {% endif %} - - {% if Section.ContainsContacts %} - - Oui - {% else %} - - Non - {% endif %} -
    -
    - {% else %} -
    - Pas de section pour le moment -
    - {% endif %} - -
    + {% if Sections %} +
    + + + + + + + + + + + {% for Section in Sections %} + + + + + + + {% endfor %} + +
    NomSection parenteMembresContacts
    + + {{ Section.Name }} + + + {% if Section.ParentSectionID %} + {{ Section.ParentSection.Name }} + {% else %} + + Non + {% endif %} + + {% if Section.ContainsMembers %} + + Oui + {% else %} + + Non + {% endif %} + + {% if Section.ContainsContacts %} + + Oui + {% else %} + + Non + {% endif %} +
    +
    + {% else %} +
    Pas de section pour le moment
    + {% endif %} +
    {% endblock %} diff --git a/views/totp_enroll.html b/views/totp_enroll.html index 92c5d1f..d9e1bf1 100644 --- a/views/totp_enroll.html +++ b/views/totp_enroll.html @@ -1,109 +1,113 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    -
    -
    - Enregistrement multifacteur (TOTP) -
    -
    - {% if MfaError %} -
    - {{ MfaError }} -
    - {% endif %} - -
    - Le double facteur protège l’application et - sécurise les données personnelles de nos camarades. - Même en cas de vol de mot de passe, l’accès est bloqué sans une - vérification supplémentaire. -
    +
    +
    +
    +
    Enregistrement multifacteur (TOTP)
    +
    + {% if MfaError %} +
    {{ MfaError }}
    + {% endif %} -
    - Code QR +
    + Le double facteur protège l’application et sécurise les données + personnelles de nos camarades. Même en cas de vol de mot de passe, + l’accès est bloqué sans une vérification supplémentaire. +
    - -
    +
    + Code QR -
    -
    - - -
    -
    - - -
    -
    - -
    -
    -
    -
    -
    -
    + +
    - +
    +
    + + +
    +
    + + +
    +
    + +
    +
    +
    +
    +
    +
    + + {% endblock %} diff --git a/views/totp_verify.html b/views/totp_verify.html index 0594488..7cc267a 100644 --- a/views/totp_verify.html +++ b/views/totp_verify.html @@ -1,44 +1,38 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    -
    -
    - Vérification multifacteur (TOTP) -
    -
    - {% if MfaError %} -
    - {{ MfaError }} -
    - {% endif %} +
    +
    +
    +
    Vérification multifacteur (TOTP)
    +
    + {% if MfaError %} +
    {{ MfaError }}
    + {% endif %} -
    -
    - - -
    -
    - -
    -
    -
    -
    -
    -
    +
    +
    + + +
    +
    + +
    +
    +
    +
    +
    +
    {% endblock %} diff --git a/views/user.html b/views/user.html index 632a093..2859f3f 100644 --- a/views/user.html +++ b/views/user.html @@ -1,222 +1,201 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    -
    -
    - Nom complet -
    -
    - -
    -
    +
    +
    Nom complet
    +
    + +
    +
    -
    -
    - Email -
    -
    - -
    -
    +
    +
    Email
    +
    + +
    +
    -
    -
    - Administrateur -
    -
    - {% if User.IsAdmin %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Administrateur
    +
    + {% if User.IsAdmin %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Ecran de bienvenue à la prochaine connexion -
    -
    - {% if User.SkipWelcome %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Ecran de bienvenue à la prochaine connexion
    +
    + {% if User.SkipWelcome %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    -
    - Double facteur (TOTP) -
    -
    - {% if User.TotpSecret.Valid %} -
    - - - - -
    - {% else %} -
    - - - - -
    - {% endif %} -
    -
    +
    +
    Double facteur (TOTP)
    +
    + {% if User.TotpSecret.Valid %} +
    + + + + +
    + {% else %} +
    + + + + +
    + {% endif %} +
    +
    -
    - - Permissions - -
    - {% if UserRoles %} - {% for UserRole in UserRoles %} -
    -
    - {{ UserRole.Section.Name }} -
    -
    -
    - - - - -
    -
    -
    - {% endfor %} - {% else %} -
    - Pas encore de permissions pour cet utilisateur. -
    - {% endif %} +
    + Permissions +
    + {% if UserRoles %} + {% for UserRole in UserRoles %} +
    +
    {{ UserRole.Section.Name }}
    +
    +
    + + + + +
    +
    +
    + {% endfor %} + {% else %} +
    Pas encore de permissions pour cet utilisateur.
    + {% endif %} -
    - -
    - -
    -
    +
    + +
    + +
    +
    +
    -
    + {% endblock %} diff --git a/views/user_form.html b/views/user_form.html index 3e602c1..250dd67 100644 --- a/views/user_form.html +++ b/views/user_form.html @@ -1,139 +1,131 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - +
    +
    - {% if Errors %} -
    - -
    - {% endif %} - -
    + {% if Errors %} +
    +
      + {% for Error in Errors %} +
    • {{ Error }}
    • + {% endfor %} +
    +
    + {% endif %} -
    - -
    - -
    -
    + +
    + +
    + +
    +
    -
    - -
    - -
    -
    +
    + +
    + +
    +
    -
    -
    - - -
    -
    +
    +
    + + +
    +
    -
    - -
    - - {% if User.ID %} -
    - Laisser vide pour ne pas changer -
    - {% endif %} -
    -
    +
    + +
    + + {% if User.ID %} +
    Laisser vide pour ne pas changer
    + {% endif %} +
    +
    - {% if User.ID %} -
    -
    - - -
    - Si la case est cochée, l'utilisateur devra effectuer - un enrôlement TOTP à la prochaine connexion. -
    -
    -
    - {% endif %} + {% if User.ID %} +
    +
    + + +
    + Si la case est cochée, l'utilisateur devra effectuer un enrôlement + TOTP à la prochaine connexion. +
    +
    +
    + {% endif %} -
    - -
    -
    - -
    +
    + +
    + + {% endblock %} diff --git a/views/user_permissions.html b/views/user_permissions.html index 3bb60a9..bf5a458 100644 --- a/views/user_permissions.html +++ b/views/user_permissions.html @@ -1,81 +1,78 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    - {% if Errors %} -
    -
      - {% for Error in Errors %} -
    • {{ Error }}
    • - {% endfor %} -
    -
    - {% endif %} - - {% if Sections %} -
    + {% if Errors %} +
    +
      + {% for Error in Errors %} +
    • {{ Error }}
    • + {% endfor %} +
    +
    + {% endif %} - {% for Section in Sections %} -
    -
    - {{ Section.Name }} -
    -
    -
    - - - - + + {% for Role in Roles %} + + {% endfor %} + +
    +
    +
    + {% endfor %} - {% for UserRole in UserRoles %} - {% if Section.ID == UserRole.SectionID and Role.ID == UserRole.RoleID %} - selected - {% endif %} - {% endfor %} - > - {{ Role.Name }} - - {% endfor %} - -
    -
    - - {% endfor %} - -
    - -
    - - {% else %} -
    - Pas de section pour le moment -
    - {% endif %} - - +
    + +
    + + {% else %} +
    Pas de section pour le moment
    + {% endif %} + {% endblock %} diff --git a/views/users.html b/views/users.html index 18e0941..3eb1258 100644 --- a/views/users.html +++ b/views/users.html @@ -1,66 +1,59 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    - -
    -
    +
    +
    + +
    +
    - + - {% if Users %} -
    - - - - - - - - - - {% for User in Users %} - - - - - - {% endfor %} - -
    Nom completEmailAdministrateur
    - {{ User.Name|first }} - - {{ User.Name }} - - - {{ User.Email }} - - {% if User.IsAdmin %} - - Oui - {% else %} - - Non - {% endif %} -
    -
    - {% else %} -
    - Pas d'utilisateurs pour le moment -
    - {% endif %} - -
    + {% if Users %} +
    + + + + + + + + + + {% for User in Users %} + + + + + + {% endfor %} + +
    Nom completEmailAdministrateur
    + {{ User.Name|first }} + {{ User.Name }} + {{ User.Email }} + {% if User.IsAdmin %} + + Oui + {% else %} + + Non + {% endif %} +
    +
    + {% else %} +
    Pas d'utilisateurs pour le moment
    + {% endif %} +
    {% endblock %} diff --git a/views/welcome.html b/views/welcome.html index 72adc3b..fbe38b6 100644 --- a/views/welcome.html +++ b/views/welcome.html @@ -1,99 +1,92 @@ {% extends "layouts/main.html" %} {% block main %} -
    -
    -
    -
    - Paramètres du compte -
    -
    - {% if FormErrors %} -
    -
      - {% for error in FormErrors %} -
    • {{ error }}
    • - {% endfor %} -
    -
    - {% endif %} - -
    -
    - - {% if EmailUpdate %} - - {% else %} - - {% endif %} -
    -
    - - +
    +
    +
    Paramètres du compte
    +
    + {% if FormErrors %} +
    +
      + {% for error in FormErrors %} +
    • {{ error }}
    • + {% endfor %} +
    +
    + {% endif %} - {% if !EmailUpdate %} - autofocus - {% endif %} - > -
    -
    - - -
    -
    - - -
    -
    - -
    - -
    -
    -
    -
    +
    +
    + + {% if EmailUpdate %} + + {% else %} + + {% endif %} +
    +
    + + +
    +
    + + +
    +
    + + +
    +
    + +
    +
    +
    +
    +
    + {% endblock %}