Projet

Général

Profil

0001-templates-use-gadjo-to-render-account-edit-form-2654.patch

Frédéric Péters, 12 juillet 2019 14:09

Télécharger (1,17 ko)

Voir les différences:

Subject: [PATCH] templates: use gadjo to render account edit form (#26546)

 src/authentic2/templates/authentic2/accounts_edit.html | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
src/authentic2/templates/authentic2/accounts_edit.html
1 1
{% extends "authentic2/base-page.html" %}
2
{% load i18n %}
2
{% load i18n gadjo %}
3 3

  
4 4
{% block page-title %}
5 5
  {{ block.super }} - {{ view.title }}
......
15 15
  <form enctype="multipart/form-data" method="post">
16 16

  
17 17
    {% csrf_token %}
18
    {{ form.as_p }}
18
    {{ form|with_template }}
19 19
    {% if form.instance and form.instance.id %}
20 20
      <button class="submit-button">{% trans "Submit" %}</button>
21 21
      <button class="cancel-button" name="cancel" formnovalidate>{% trans "Cancel" %}</button>
22
-