Skip to content

Commit 942352c

Browse files
committed
Merged in [9766] from lars@netapp.com:
More HTML fixes. - Legacy-Id: 9787 Note: SVN reference [9766] has been migrated to Git commit 77f555b
1 parent 8612ce9 commit 942352c

25 files changed

Lines changed: 74 additions & 103 deletions

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 }}" />

ietf/templates/doc/document_ballot_content.html

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,7 @@
66
<h4><span class="label label-{{ n|pos_to_label }}"> {{ n.name }}</span></h4>
77
{% for p in positions|dictsort:"ad.last_name" %}
88
<div>
9-
{% if p.old_ad %}<span class="text-muted">({% endif %}
10-
{% if p.comment or p.discuss %}
11-
<a href="#{{ p.ad.plain_name|slugify }}">
12-
{% endif %}
13-
{{ p.ad.plain_name }}
14-
{% if p.comment or p.discuss %}
15-
</a>
16-
{% endif %}
17-
{% if user|has_role:"Secretariat" %}</a>{% endif %}
18-
{% if p.old_ad %})</span>{% endif %}
9+
{% if p.old_ad %}<span class="text-muted">({% endif %}{% if p.comment or p.discuss %}<a href="#{{ p.ad.plain_name|slugify }}">{% endif %}{{ p.ad.plain_name }}{% if p.comment or p.discuss %}</a>{% endif %}{% if p.old_ad %})</span>{% endif %}
1910
</div>
2011
{% empty %}
2112
(None)
@@ -77,9 +68,7 @@ <h4><span class="label label-{{ n|pos_to_label }}"> {{ n.name }}</span></h4>
7768
{% for n, positions in position_groups %}
7869
{% for p in positions|dictsort:"ad.last_name" %}
7970
<h4 class="anchor-target" id="{{ p.ad.plain_name|slugify }}">
80-
{% if p.old_ad %}<span class="text-muted">({% endif %}
81-
{{ p.ad.plain_name }}
82-
{% if p.old_ad %})</span>{% endif %}
71+
{% if p.old_ad %}<span class="text-muted">({% endif %}{{ p.ad.plain_name }}{% if p.old_ad %})</span>{% endif %}
8372
<span class="pull-right">
8473
{% if p.old_positions %}
8574
<span class="text-muted small">(was {{ p.old_positions|join:", " }})</span>

0 commit comments

Comments
 (0)