Skip to content

Commit 77f555b

Browse files
committed
More HTML fixes. Commit ready for merge.
- Legacy-Id: 9766
1 parent 9b4e610 commit 77f555b

27 files changed

Lines changed: 74 additions & 105 deletions

ietf/settings.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,6 @@ def skip_unreadable_post(record):
207207
'form_utils',
208208
'tastypie',
209209
'widget_tweaks',
210-
'django_bleach',
211210
# IETF apps
212211
'ietf.api',
213212
'ietf.community',

ietf/submit/templatetags/submit_tags.py

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,7 @@ def two_pages_decorated_with_errors(submission, errors):
3030
return mark_safe('<pre>%s</pre>' % escape(pages))
3131
result = '<pre>\n'
3232
for line in pages.split('\n'):
33-
if line.find('%s-%s' % (submission.name, submission.rev)) > -1:
34-
result += '<div class="bg-danger"><b>'
35-
result += escape(line)
36-
result += '\n'
37-
result += '</b></div>\n'
38-
else:
39-
result += escape(line)
40-
result += '\n'
33+
result += escape(line)
34+
result += '\n'
4135
result += '</pre>pre>\n'
4236
return mark_safe(result)

ietf/templates/admin/group/group/send_sdo_reminder.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ <h1>Send a reminder to {% if sdo %}{{ sdo }} SDO Liaison Manager{% else %}all SD
3838
<p>By clicking the 'Send' button you will send a request to <b>all</b> the SDO Liaison Managers. In order to send the request to one SDO Liaison Manager go to the SDO edit page.</p>
3939
{% endif %}
4040

41-
<form action="" method="post">{% csrf_token %}
41+
<form method="post">{% csrf_token %}
4242
<input type="submit" name="send" value="Send reminder" />
4343
</form>
4444
{% endif %}
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
<div>{% for item in help_text_and_errors %} {{ item }}<br/> {% endfor %}</div>
2-
1+
{% for item in help_text_and_errors %} {{ item }}<br> {% endfor %}

ietf/templates/doc/ballot/edit_position.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ <h1>Change position for {{ ad.plain_name }}<br><small>{{ doc }}</small></h1>
2626
{% if field.name == "discuss" %}<div id="div_id_discuss">{% endif %}
2727
{% bootstrap_field field %}
2828
{% if field.name == "discuss" and old_pos and old_pos.discuss_time %}
29-
<span class="help-block">Last edited {{ old_pos.discuss_time }}</span>
29+
<div class="help-block">Last edited {{ old_pos.discuss_time }}</div>
3030
{% elif field.name == "comment" and old_pos and old_pos.comment_time %}
31-
<span class="help-block">Last edited {{ old_pos.comment_time }}</span>
31+
<div class="help-block">Last edited {{ old_pos.comment_time }}</div>
3232
{% endif %}
3333
{% if field.name == "discuss" %}</div>{% endif %}
3434
{% endfor %}
@@ -60,7 +60,7 @@ <h1>Change position for {{ ad.plain_name }}<br><small>{{ doc }}</small></h1>
6060
$("#div_id_discuss").hide();
6161
}
6262
}
63-
63+
6464
$("input[name=position]").click(function () {
6565
discussToggle($(this).val());
6666
});

ietf/templates/doc/ballot/lastcalltext.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ <h1>Last call text<br><small>{{ doc }}</small></h1>
1818
{% bootstrap_form last_call_form %}
1919

2020
{% if can_request_last_call and need_intended_status %}
21-
<span class="help-block">
21+
<div class="help-block">
2222
You need to select intended status of {{ need_intended_status }} and regenerate last call text to request last call.
23-
</span>
23+
</div>
2424
{% endif %}
2525

2626
{% buttons %}

ietf/templates/doc/ballot/send_ballot_comment.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ <h1>Send ballot position for {{ ad }}</h1>
2828
<div class="form-group">
2929
<label>Cc</label>
3030
<input class="form-control" type="email" name="cc">
31-
<span class="help-block">Separate email addresses with commas.</span>
31+
<div class="help-block">Separate email addresses with commas.</div>
3232
</div>
3333

3434
{% if doc.notify %}

ietf/templates/doc/ballot/writeupnotes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ <h1>Ballot writeup and notes<br><small>{{ doc }}</small></h1>
1717
{% csrf_token %}
1818
{% bootstrap_form ballot_writeup_form %}
1919

20-
<span class="help-block">
20+
<div class="help-block">
2121
Technical summary, Working Group summary, document quality, personnel, RFC Editor note, IRTF note, IESG note, IANA note. This text will be appended to all announcements and messages to the IRTF or RFC Editor.
22-
</span>
22+
</div>
2323

2424
{% buttons %}
2525
<button type="submit" class="btn btn-primary" name="save_ballot_writeup" value="Save Ballot Writeup">Save</button>

ietf/templates/doc/charter/ballot_writeupnotes.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ <h1>Ballot writeup and notes<br><small>{{ charter.chartered_group }}</small></h1
1717
{% csrf_token %}
1818
{% bootstrap_form ballot_writeup_form %}
1919

20-
<span class="help-block">
20+
<div class="help-block">
2121
Working group summary, personnel, IAB note, IESG note, IANA note.
22-
</span>
22+
</div>
2323

2424
{% buttons %}
2525
<button type="submit" class="btn btn-primary" name="save_ballot_writeup" value="Save Ballot Writeup">Save</button>

ietf/templates/doc/charter/change_state.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ <h1>{{ title }}</h1>
5050
<h3>Or revert to previous state</h3>
5151

5252
<div class="prev-state">
53-
<form action="" method="post">{% csrf_token %}
53+
<form method="post">{% csrf_token %}
5454
<input type="hidden" name="charter_state" value="{{ prev_charter_state.pk }}" />
5555
<input type="hidden" name="state" value="{{ prev_state.slug }}" />
5656
<input type="submit" value="Back to {{ prev_charter_state.name }}" />

0 commit comments

Comments
 (0)