{% extends "layout.html" %} {% block js %} let link = $('#delete-project').find('button'); let deleteOriginalHTML = link.html(); link.click(function() { if (link.hasClass("confirm")){ return true; } link.html("{{_("Are you sure?")}}"); link.addClass("confirm btn-danger"); return false; }); $('#delete-project').focusout(function() { link.removeClass("confirm btn-danger"); link.html(deleteOriginalHTML); }); $('.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) }}

{{ _("Delete project") }}

{{ forms.delete_project(delete_form) }}

{{ _("Import project") }}

{{ forms.import_project(import_form) }}

{{ _("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 %}