aboutsummaryrefslogtreecommitdiff
path: root/ihatemoney/templates/forms.html
diff options
context:
space:
mode:
authorAndrew Dickinson <Andrew-Dickinson@users.noreply.github.com>2020-04-20 09:30:27 -0400
committerGitHub <noreply@github.com>2020-04-20 15:30:27 +0200
commit026a0722357d74b143ed2d974ad2d871a56041b3 (patch)
tree2f23323f01e5ec1dec07ef1032acc407cba38879 /ihatemoney/templates/forms.html
parent91ef80ebb712b06b6c48336beeb7f60219b0f062 (diff)
downloadihatemoney-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.html18
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>