Skip to content

Commit 288b937

Browse files
committed
django_bootstrap5 removed button/endbutton tags
- Legacy-Id: 19609
1 parent 726b29b commit 288b937

171 files changed

Lines changed: 693 additions & 349 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ietf/dbtemplate/templates/dbtemplate/template_edit.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,10 @@ <h2>Edit template content</h2>
3737

3838
{% bootstrap_form form %}
3939

40-
{% buttons %}
40+
41+
4142
<button class="btn btn-default" type="submit">Save changes</button>
42-
{% endbuttons %}
43+
44+
4345
</form>
4446
{% endblock content %}

ietf/templates/community/manage_list.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,9 +120,11 @@ <h3>Add a new rule</h3>
120120
{% endif %}
121121
</div>
122122

123-
{% buttons %}
123+
124+
124125
<button type="submit" class="btn btn-primary" name="action" value="add_rule">Add rule</button>
125-
{% endbuttons %}
126+
127+
126128
</form>
127129

128130
<div class="empty-forms hide">

ietf/templates/community/subscription.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,13 @@ <h2>Add new subscription</h2>
4444
{% csrf_token %}
4545
{% bootstrap_form form %}
4646

47-
{% buttons %}
47+
48+
4849
<a class="btn btn-primary" href="{{ clist.get_absolute_url }}">Back to list</a>
4950

5051
<button type="submit" name="action" value="subscribe" class="btn btn-primary">Subscribe</button>
51-
{% endbuttons %}
52+
53+
5254
</form>
5355
{% else %}
5456
<div class="alert alert-danger">You do not have any active email addresses registered with your account. Go to <a href="{% url "ietf.ietfauth.views.profile" %}">your profile and add or activate one</a>.</div>

ietf/templates/community/track_document.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
{% csrf_token %}
1111
<p>Add {{ name }} to the list?</p>
1212

13-
{% buttons %}
13+
14+
1415
<input type="submit" class="btn btn-primary" value="Track document">
15-
{% endbuttons %}
16+
17+
1618
</form>

ietf/templates/community/untrack_document.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
{% csrf_token %}
1111
<p>Remove {{ name }} from the list?</p>
1212

13-
{% buttons %}
13+
14+
1415
<input type="submit" class="btn btn-primary" value="Remove tracking of document">
15-
{% endbuttons %}
16+
17+
1618
</form>

ietf/templates/doc/add_comment.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ <h1>Add comment<br><small>{{ doc }}</small></h1>
1515
{% bootstrap_form form %}
1616
<p class="help-block">The comment will be added to the history trail.</p>
1717

18-
{% buttons %}
18+
19+
1920
<button type="submit" class="btn btn-primary">Submit</button>
2021
<a class="btn btn-primary pull-right" href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">Back</a>
21-
{% endbuttons %}
22+
23+
2224
</form>
2325

2426
{% endblock %}

ietf/templates/doc/add_sessionpresentation.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,12 @@ <h1>Add document to session<br><small>{{doc.name}}<br>{{doc.title}}</small></h1>
1616
{% bootstrap_form session_form %}
1717
{% bootstrap_form version_form %}
1818

19-
{% buttons %}
19+
20+
2021
<button class="btn btn-primary" type="submit" name="save">Save</button>
2122
<a class="btn btn-primary" href="{% url 'ietf.doc.views_doc.all_presentations' name=doc.name %}">Cancel</a>
22-
{% endbuttons %}
23+
24+
2325

2426
</form>
2527
{% endblock content %}

ietf/templates/doc/ballot/approvaltext.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ <h1>Approval announcement writeup<br><small><a href="{% url "ietf.doc.views_doc.
1515
{% csrf_token %}
1616
{% bootstrap_form approval_text_form %}
1717

18-
{% buttons %}
18+
19+
1920
<button type="submit" class="btn btn-primary" name="save_approval_text" value="Save text">Save text</button>
2021
<button type="submit" class="btn btn-warning" name="regenerate_approval_text" value="Regenerate text">Regenerate text</button>
2122
{% if user|has_role:"Secretariat" and can_announce %}
2223
<a class="btn btn-primary" href="{% url 'ietf.doc.views_ballot.approve_ballot' name=doc.name %}">Approve ballot</a>
2324
{% endif %}
24-
{% endbuttons %}
25+
26+
2527
</form>
2628

2729
{% endblock%}

ietf/templates/doc/ballot/approve_ballot.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,16 @@ <h1>Approve ballot<br><small><a href="{% url "ietf.doc.views_doc.document_main"
1414
{% csrf_token %}
1515
<pre>{{ announcement }}</pre>
1616

17-
{% buttons %}
17+
18+
1819
{% if action == "to_announcement_list" %}
1920
<button class="btn btn-primary" type="submit">Notify RFC Editor, send announcement & close ballot</button>
2021
{% elif action == "to_rfc_editor" %}
2122
<button class="btn btn-primary" type="submit">Email RFC Editor & close ballot</button>
2223
{% elif action == "do_not_publish" %}
2324
<button class="btn btn-primary" type="submit">Email RFC Editor (DNP) & close ballot"/>
2425
{% endif %}
25-
{% endbuttons %}
26+
27+
2628
</form>
2729
{% endblock %}

ietf/templates/doc/ballot/approve_downrefs.html

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,14 @@ <h1>Approve downward references<br><small>The ballot for <a href="{% url "ietf.d
2222
<form action="" method="post">
2323
{% csrf_token %}
2424
{% bootstrap_form approve_downrefs_form %}
25-
{% buttons %}
25+
26+
2627
<p>
2728
<a class="btn btn-primary" href="{% url "ietf.doc.views_doc.document_main" name=doc.canonical_name %}">Add no downref entries</a>
2829
<button type="submit" class="btn btn-warning" value="Save checked downrefs">Add checked downref entries</button>
2930
</p>
30-
{% endbuttons %}
31+
32+
3133
</form>
3234
{% endif %}
3335

0 commit comments

Comments
 (0)