Skip to content

Commit 9c527cc

Browse files
committed
Apply styles to form error.
See ietf-tools#904 ietf-tools#905 - Legacy-Id: 5096
1 parent bcdeaf3 commit 9c527cc

4 files changed

Lines changed: 7 additions & 10 deletions

File tree

ietf/templates/nomcom/edit_chair.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<h1>Edit {{ state.group.acronym }} chair</h1>
77

8-
{% if form.errors %}<h3>Please correct the following errors</h3>{% endif %}
8+
{% if form.errors %}<div class="info-message-error">Please correct the following errors</div>{% endif %}
99

1010
<form action="" method="post">{% csrf_token %}
1111
<table>

ietf/templates/nomcom/edit_members.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{% block content %}
66
<h1>Edit {{ state.group.acronym }} members</h1>
77

8-
{% if form.errors %}<h3>Please correct the following errors</h3>{% endif %}
8+
{% if form.errors %}<div class="info-message-error">Please correct the following errors</div>{% endif %}
99

1010
<form action="" method="post">{% csrf_token %}
1111
<table>

ietf/templates/nomcom/edit_publickey.html

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,21 +2,14 @@
22

33
{% block title %}Edit {{ group.acronym }} public key{% endblock %}
44

5-
{% block morecss %}
6-
div.info-message-success { border: 1px solid green; background-color: #eeffbb; padding: 5px 10px; margin: 1em 0px; color: green; }
7-
div.info-message-warning { border: 1px dashed red; background-color: #ffeeaa; padding: 1em 2em; margin: 1em 0px; }
8-
9-
{% endblock morecss %}
10-
11-
125
{% block content %}
136
<h1>Edit {{ group.acronym }} public key</h1>
147

158
{% if message %}
169
<div class="info-message-{{ message.0 }}">{{ message.1 }}</div>
1710
{% endif %}
1811

19-
{% if form.errors %}<h3>Please correct the following errors</h3>{% endif %}
12+
{% if form.errors %}<div class="info-message-error">Please correct the following errors</div>{% endif %}
2013

2114
<form enctype="multipart/form-data" action="" method="post">{% csrf_token %}
2215
<table>

static/css/base2.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,3 +194,7 @@ form table .help {
194194

195195
.ballot-content h2.ad-ballot-comment { background: #2647A0; color: #fff; padding: 2px 4px; font-size: 108%; margin-top: 0;}
196196

197+
/* Message types */
198+
div.info-message-success { border: 1px solid green; background-color: #eeffbb; padding: 5px 10px; margin: 1em 0px; color: green; }
199+
div.info-message-warning { border: 1px dashed red; background-color: #ffeeaa; padding: 1em 2em; margin: 1em 0px; }
200+
div.info-message-error { border: 1px solid red; background-color: #ffeebb; padding: 5px 10px; margin: 1em 0px; color: red; }

0 commit comments

Comments
 (0)