Skip to content

Commit 2c72d33

Browse files
committed
Added class 'bg-danger' to submission error messages. The big 'Meta-Data errors found' pane on red background is so noticeable that class 'text-danger' which gives bold text is insufficient to stand out clearly. Adding 'bg-danger' gives the specific error messages red background, too.
- Legacy-Id: 16736
1 parent 44f42cd commit 2c72d33

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

ietf/templates/submit/submission_status.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ <h2>Meta-data from the submission</h2>
152152
{% show_submission_files submission %}
153153

154154
{% if errors.files %}
155-
<p class="text-danger"><b>{{ errors.files|safe }}</b></p>
155+
<p class="text-danger bg-danger"><b>{{ errors.files|safe }}</b></p>
156156
{% endif %}
157157
</td>
158158
</tr>
@@ -164,7 +164,7 @@ <h2>Meta-data from the submission</h2>
164164

165165
{% if errors.rev %}
166166
<button class="btn btn-default btn-xs pull-right" data-toggle="modal" data-target="#twopages">View errors in document</button>
167-
<p class="text-danger"><b>{{ errors.rev }}</b></p>
167+
<p class="text-danger bg-danger"><b>{{ errors.rev }}</b></p>
168168
{% endif %}
169169
</td>
170170
</tr>
@@ -174,7 +174,7 @@ <h2>Meta-data from the submission</h2>
174174
<td>
175175
{{ submission.group|default:"Individual Submission" }}
176176
{% if errors.group %}
177-
<p class="text-danger"><b>{{ errors.group }}</b></p>
177+
<p class="text-danger bg-danger"><b>{{ errors.group }}</b></p>
178178
{% endif %}
179179
</td>
180180
</tr>
@@ -184,7 +184,7 @@ <h2>Meta-data from the submission</h2>
184184
<td>
185185
{{ submission.document_date }}
186186
{% if errors.document_date %}
187-
<p class="text-danger"><b>{{ errors.document_date }}</b></p>
187+
<p class="text-danger bg-danger"><b>{{ errors.document_date }}</b></p>
188188
{% endif %}
189189
</td>
190190
</tr>
@@ -198,15 +198,15 @@ <h2>Meta-data from the submission</h2>
198198
<th>Title</th>
199199
<td>
200200
{{ submission.title|default:"" }}
201-
{% if errors.title %}<p class="text-danger"><b>{{ errors.title }}</b></p>{% endif %}
201+
{% if errors.title %}<p class="text-danger bg-danger"><b>{{ errors.title }}</b></p>{% endif %}
202202
</td>
203203
</tr>
204204

205205
<tr>
206206
<th>Authors</th>
207207
<td>
208208
{{ submission.authors|length }} author{{ submission.authors|pluralize }}
209-
{% if errors.authors %}<p class="text-danger"><b>{{ errors.authors|safe }}</b></p>{% endif %}
209+
{% if errors.authors %}<p class="text-danger bg-danger"><b>{{ errors.authors|safe }}</b></p>{% endif %}
210210
</td>
211211
</tr>
212212

@@ -244,15 +244,15 @@ <h2>Meta-data from the submission</h2>
244244
<th>Abstract</th>
245245
<td>
246246
{{ submission.abstract|linebreaksbr }}
247-
{% if errors.abstract %}<p class="text-danger"><b>{{ errors.abstract }}</b></p>{% endif %}
247+
{% if errors.abstract %}<p class="text-danger bg-danger"><b>{{ errors.abstract }}</b></p>{% endif %}
248248
</td>
249249
</tr>
250250

251251
<tr>
252252
<th>Pages</th>
253253
<td>
254254
{{ submission.pages }}
255-
{% if errors.pages %}<p class="text-danger"><b>{{ errors.pages }}</b></p>{% endif %}
255+
{% if errors.pages %}<p class="text-danger bg-danger"><b>{{ errors.pages }}</b></p>{% endif %}
256256
</td>
257257
</tr>
258258

@@ -265,7 +265,7 @@ <h2>Meta-data from the submission</h2>
265265
<th>Formal languages used</th>
266266
<td>
267267
{% for l in submission.formal_languages.all %}{{ l.name }}{% if not forloop.last %}, {% endif %}{% empty %}None recognized{% endfor %}
268-
{% if errors.formal_languages %}<p class="text-danger"><b>{{ errors.formal_languages }}</b></p>{% endif %}
268+
{% if errors.formal_languages %}<p class="text-danger bg-danger"><b>{{ errors.formal_languages }}</b></p>{% endif %}
269269
</td>
270270
</tr>
271271
</table>

0 commit comments

Comments
 (0)