diff --git a/people/templates/people/includes/relationship_form.html b/people/templates/people/includes/relationship_form.html new file mode 100644 index 0000000..8f0f1dc --- /dev/null +++ b/people/templates/people/includes/relationship_form.html @@ -0,0 +1,21 @@ +{% with config.RELATIONSHIP_FORM_HELP as help_text %} + {% if help_text %} +
+ {{ help_text|linebreaks }} +
+ {% endif %} +{% endwith %} + +
+ +
+ {% csrf_token %} + + {% load bootstrap4 %} + {% bootstrap_form form %} + + {% buttons %} + + {% endbuttons %} +
\ No newline at end of file diff --git a/people/templates/people/relationship/create.html b/people/templates/people/relationship/create.html index e9d1749..93fdd58 100644 --- a/people/templates/people/relationship/create.html +++ b/people/templates/people/relationship/create.html @@ -15,26 +15,6 @@

Add Relationship

- {% with config.RELATIONSHIP_FORM_HELP as help_text %} - {% if help_text %} -
- {{ help_text|linebreaks }} -
- {% endif %} - {% endwith %} - -
- -
- {% csrf_token %} - - {% load bootstrap4 %} - {% bootstrap_form form %} - - {% buttons %} - - {% endbuttons %} -
+ {% include 'people/includes/relationship_form.html' %} {% endblock %} diff --git a/people/templates/people/relationship/update.html b/people/templates/people/relationship/update.html index a090a44..11022e5 100644 --- a/people/templates/people/relationship/update.html +++ b/people/templates/people/relationship/update.html @@ -18,27 +18,7 @@

Update Relationship

- {% with config.RELATIONSHIP_FORM_HELP as help_text %} - {% if help_text %} -
- {{ help_text|linebreaks }} -
- {% endif %} - {% endwith %} - -
- -
- {% csrf_token %} - - {% load bootstrap4 %} - {% bootstrap_form form %} - - {% buttons %} - - {% endbuttons %} -
+ {% include 'people/includes/relationship_form.html' %} {% endblock %}