Skip to content
Snippets Groups Projects
Commit 832f6850 authored by Bryan BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

put form in a block so we can override it, and eventually remove it

parent cbebadbe
No related branches found
No related tags found
No related merge requests found
...@@ -16,6 +16,7 @@ ...@@ -16,6 +16,7 @@
{% block content %} {% block content %}
<div class="col-12 col-xs-12"> <div class="col-12 col-xs-12">
{%if form_title%}<h2>{{form_title}}</h2>{%endif%} {%if form_title%}<h2>{{form_title}}</h2>{%endif%}
{% block form %}
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{%if form%} {%if form%}
...@@ -43,5 +44,6 @@ ...@@ -43,5 +44,6 @@
<button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button> <button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button>
</div> </div>
</form> </form>
{% endblock form %}
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
...@@ -22,6 +22,7 @@ ...@@ -22,6 +22,7 @@
{%endif%} {%endif%}
<div class="col-12 col-xs-12 {%if custom_css_width %}{{custom_css_width}}{%else%}{%if not medium_width%}col-sm-10 col-sm-offset-1 offset-sm-1 col-md-8 col-md-offset-2 offset-md-2 col-lg-6 col-lg-offset-3 offset-lg-3 col-xl-4 col-xl-offset-4 offset-xl-4 col-xxl-2 col-xxl-offset-5{%endif%}{%if medium_width%}col-md-10 col-md-offset-1 offset-md-1 col-lg-8 col-lg-offset-2 offset-lg-2 col-xl-6 col-xl-offset-3 offset-xl-3 col-xxl-4 col-xxl-offset-4 col-xxxl-2 col-xxxl-offset-5{%endif%}{%endif%}"> <div class="col-12 col-xs-12 {%if custom_css_width %}{{custom_css_width}}{%else%}{%if not medium_width%}col-sm-10 col-sm-offset-1 offset-sm-1 col-md-8 col-md-offset-2 offset-md-2 col-lg-6 col-lg-offset-3 offset-lg-3 col-xl-4 col-xl-offset-4 offset-xl-4 col-xxl-2 col-xxl-offset-5{%endif%}{%if medium_width%}col-md-10 col-md-offset-1 offset-md-1 col-lg-8 col-lg-offset-2 offset-lg-2 col-xl-6 col-xl-offset-3 offset-xl-3 col-xxl-4 col-xxl-offset-4 col-xxxl-2 col-xxxl-offset-5{%endif%}{%endif%}">
{%if form_title%}<h2>{{form_title}}</h2>{%endif%} {%if form_title%}<h2>{{form_title}}</h2>{%endif%}
{% block form %}
<form method="post" enctype="multipart/form-data"> <form method="post" enctype="multipart/form-data">
{% csrf_token %} {% csrf_token %}
{%if form%}{{ form|crispy }}{%endif%} {%if form%}{{ form|crispy }}{%endif%}
...@@ -30,5 +31,6 @@ ...@@ -30,5 +31,6 @@
<button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button> <button class="{{btn_classes|default:'btn btn-primary'}}" type="submit">{{ submit_text|default:"OK" }}</button>
</div> </div>
</form> </form>
{% endblock form %}
</div> </div>
{% endblock %} {% endblock %}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment