diff options
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> |
