diff options
| author | Brice Maron <brice@bmaron.net> | 2019-08-13 23:34:04 +0200 |
|---|---|---|
| committer | Alexis Metaireau <alexis@notmyidea.org> | 2019-08-26 19:59:55 +0000 |
| commit | 0edf8634a4257b601d18053cf72fc63f285a6871 (patch) | |
| tree | 760bf6e02cd4d5382d732cbb64ce6308a8d8e65d /ihatemoney/templates | |
| parent | 09d887cde2c2b845b2e4ccbdb64a9044c015a795 (diff) | |
| download | ihatemoney-mirror-0edf8634a4257b601d18053cf72fc63f285a6871.zip ihatemoney-mirror-0edf8634a4257b601d18053cf72fc63f285a6871.tar.gz ihatemoney-mirror-0edf8634a4257b601d18053cf72fc63f285a6871.tar.bz2 | |
Move export form to links
Diffstat (limited to 'ihatemoney/templates')
| -rw-r--r-- | ihatemoney/templates/edit_project.html | 52 |
1 files changed, 44 insertions, 8 deletions
diff --git a/ihatemoney/templates/edit_project.html b/ihatemoney/templates/edit_project.html index a5e85c3..dcbbbc8 100644 --- a/ihatemoney/templates/edit_project.html +++ b/ihatemoney/templates/edit_project.html @@ -8,12 +8,48 @@ {% endblock %} {% block content %} -<h2>{{ _("Edit this project") }}</h2> -<form class="form-horizontal" method="post"> -{{ forms.edit_project(edit_form) }} -</form></br> -<h2>{{ _("Download this project's data") }}</h2> -<form class="form-horizontal" method="post"> -{{ forms.export_project(export_form) }} -</form> +<h2>{{ _("Edit project") }}</h2> +<p> + <form class="form-horizontal" method="post"> + {{ forms.edit_project(edit_form) }} + </form> +</p> + +<h2>{{ _("Download project's data") }}</h2> +<p> + <div class="list-group download-project"> + <div class="list-group-item list-group-item-action"> + <h5 class="d-flex w-100 justify-content-between"> + <span class="mb-1">{{ _('Bill items') }}</span> + <span> + <a href="{{ url_for('.export_project', file='bills', format='json') }}" download class="badge badge-secondary"> + <i class="icon plus">{{ static_include("images/file-alt.svg") | safe }}</i> + JSON + </a> + <a href="{{ url_for('.export_project', file='bills', format='csv') }}" download class="badge badge-secondary"> + <i class="icon plus">{{ static_include("images/file-csv-solid.svg") | safe }}</i> + CSV + </a> + </span> + </h5> + <p class="mb-1 text-muted">{{ _('Download the list of bills with owner, amount, reason,... ') }}</p> + </div> + <div class="list-group-item list-group-item-action"> + <h5 class="d-flex w-100 justify-content-between"> + <span class="mb-1">{{ _('Settle plans') }}</span> + <span> + <a href="{{ url_for('.export_project', file='transactions', format='json') }}" download class="badge badge-secondary"> + <i class="icon plus">{{ static_include("images/file-alt.svg") | safe }}</i> + JSON + </a> + <a href="{{ url_for('.export_project', file='transactions', format='csv') }}" download class="badge badge-secondary"> + <i class="icon plus">{{ static_include("images/file-csv-solid.svg") | safe }}</i> + CSV + </a> + </span> + </h5> + <p class="mb-1 text-muted">{{ _('Download the list of transactions needed to settle the current bills.') }}</p> + </div> + </div> +</p> {% endblock %} |
