Skip to content

Commit d7b4ef6

Browse files
committed
Summary: Facelift change charter title page
- Legacy-Id: 8932
1 parent b920641 commit d7b4ef6

2 files changed

Lines changed: 10 additions & 35 deletions

File tree

ietf/doc/views_charter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ def state_pk(slug):
226226

227227
class ChangeTitleForm(forms.Form):
228228
charter_title = forms.CharField(widget=forms.TextInput, label="Charter title", help_text="Enter new charter title", required=True)
229-
message = forms.CharField(widget=forms.Textarea, help_text="Leave blank to change the title without notifying the Secretariat", required=False, label=mark_safe("Message to<br> Secretariat"))
229+
message = forms.CharField(widget=forms.Textarea, help_text="Leave blank to change the title without notifying the Secretariat", required=False, label=mark_safe("Message to Secretariat"))
230230
comment = forms.CharField(widget=forms.Textarea, help_text="Optional comment for the charter history", required=False)
231231
def __init__(self, *args, **kwargs):
232232
charter = kwargs.pop('charter')
Lines changed: 9 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,19 @@
1-
{% extends "base.html" %}
1+
{% extends "ietf.html" %}
22

3-
{% block title %}{{ title }}{% endblock %}
4-
5-
{% block morecss %}
6-
form.change-title select {
7-
width: 22em;
8-
}
9-
10-
#id_charter_title, #id_message, #id_comment {
11-
width: 40em;
12-
}
3+
{% load bootstrap3 %}
134

14-
form.change-title .actions {
15-
text-align: right;
16-
padding-top: 10px;
17-
}
18-
{% endblock %}
5+
{% block title %}{{ title }}{% endblock %}
196

207
{% block content %}
218
<h1>{{ title }}</h1>
229

23-
<form class="change-title" action="" method="post">{% csrf_token %}
24-
<table>
25-
{% for field in form.visible_fields %}
26-
<tr>
27-
<th>{{ field.label_tag }}</th>
28-
<td>{{ field }}
29-
{% if field.help_text %}<div class="help">{{ field.help_text }}</div>{% endif %}
10+
<form class="change-title" method="post">{% csrf_token %}
11+
{% bootstrap_form form %}
3012

31-
{{ field.errors }}
32-
</td>
33-
</tr>
34-
{% endfor %}
35-
<tr>
36-
<td colspan="2" class="actions">
37-
<a href="{% url "doc_view" name=doc.name %}">Back</a>
38-
<input type="submit" value="Save and (possibly) notify Secretariat"/>
39-
</td>
40-
</tr>
41-
</table>
13+
{% buttons %}
14+
<a class="btn btn-default pull-right" href="{% url "doc_view" name=doc.name %}">Back</a>
15+
<button class="btn btn-primary" type="submit">Save and (possibly) notify Secretariat</button>
16+
{% endbuttons %}
4217
</form>
4318

4419
{% endblock %}

0 commit comments

Comments
 (0)