{% extends "layout.html" %} {% block js %} $('#delete-project').click(function () { $(this).html("{{_("you sure?")}}"); }); $('.custom-file-input').on('change', function(event) { var filename = [].slice.call(this.files).map(function (file) { return file.name}).join(',') var $labelElement = $(this).parents('.custom-file').find('.custom-file-label') $labelElement.text(filename) }) {% endblock %} {% block content %}

{{ _("Edit project") }}

{{ forms.edit_project(edit_form) }}

{{ _("Import JSON") }}

{{ import_form.hidden_tag() }}
{{ import_form.file(class="custom-file-input") }} {{ import_form.file.description }}
{{ import_form.submit(class="btn btn-primary") }}

{{ _("Download project's data") }}

{{ _('Bill items') }} {{ static_include("images/file-alt.svg") | safe }} JSON {{ static_include("images/file-csv-solid.svg") | safe }} CSV

{{ _('Download the list of bills with owner, amount, reason,... ') }}

{{ _('Settle plans') }} {{ static_include("images/file-alt.svg") | safe }} JSON {{ static_include("images/file-csv-solid.svg") | safe }} CSV

{{ _('Download the list of transactions needed to settle the current bills.') }}

{% endblock %}