diff options
| author | Andrew Dickinson <Andrew-Dickinson@users.noreply.github.com> | 2020-04-20 09:30:27 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-20 15:30:27 +0200 |
| commit | 026a0722357d74b143ed2d974ad2d871a56041b3 (patch) | |
| tree | 2f23323f01e5ec1dec07ef1032acc407cba38879 /ihatemoney/templates/forms.html | |
| parent | 91ef80ebb712b06b6c48336beeb7f60219b0f062 (diff) | |
| download | ihatemoney-mirror-026a0722357d74b143ed2d974ad2d871a56041b3.zip ihatemoney-mirror-026a0722357d74b143ed2d974ad2d871a56041b3.tar.gz ihatemoney-mirror-026a0722357d74b143ed2d974ad2d871a56041b3.tar.bz2 | |
Add Project History Page (#553)
Co-Authored-By: Glandos <bugs-github@antipoul.fr>
All project activity can be tracked, using SQLAlchemy-continuum.
IP addresses can optionally be recorded.
Diffstat (limited to 'ihatemoney/templates/forms.html')
| -rw-r--r-- | ihatemoney/templates/forms.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/ihatemoney/templates/forms.html b/ihatemoney/templates/forms.html index bec7018..33a283f 100644 --- a/ihatemoney/templates/forms.html +++ b/ihatemoney/templates/forms.html @@ -20,6 +20,16 @@ </div> {% endmacro %} +{% macro checkbox(field) %} + <div class="controls{% if inline %} col-9{% endif %}"> + {{ field(id=field.name) }} + <label for="{{ field.name }}">{{ field.label() }}</label> + {% if field.description %} + <small id="{{field.name}}_description"" class="form-text text-muted">{{ field.description }}</small> + {% endif %} + </div> +{% endmacro %} + {% macro submit(field, cancel=False, home=False) -%} <div class="actions"> <button type="submit" class="btn btn-primary">{{ field.name }}</button> @@ -78,6 +88,14 @@ {{ input(form.name) }} {{ input(form.password) }} {{ input(form.contact_email) }} + <div class="form-group"> + <label for="privacy_checkboxes">{{ _("Privacy Settings") }}</label> + <div id="privacy_checkboxes" class="card card-body bg-light"> + {{ checkbox(form.project_history) }} + {{ checkbox(form.ip_recording) }} + </div> + </div> + <div class="actions"> <button class="btn btn-primary">{{ _("Edit the project") }}</button> <a id="delete-project" style="color:red; margin-left:10px; cursor:pointer; ">{{ _("delete") }}</a> |
