Skip to content

Commit 34dae91

Browse files
committed
Summary: Facelift IPR change state page
- Legacy-Id: 8911
1 parent 2ac9694 commit 34dae91

2 files changed

Lines changed: 14 additions & 20 deletions

File tree

ietf/ipr/forms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -289,5 +289,5 @@ class SearchForm(forms.Form):
289289

290290
class StateForm(forms.Form):
291291
state = forms.ModelChoiceField(queryset=IprDisclosureStateName.objects,label="New State",empty_label=None)
292-
private = forms.BooleanField(required=False,help_text="If this box is checked the comment will not appear in the disclosure's public history view.")
293-
comment = forms.CharField(required=False, widget=forms.Textarea)
292+
comment = forms.CharField(required=False, widget=forms.Textarea, help_text="You may add a comment to be included in the disclosure history.")
293+
private = forms.BooleanField(label="Private comment", required=False, help_text="If this box is checked the comment will not appear in the disclosure's public history view.")

ietf/templates/ipr/state.html

Lines changed: 12 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
1-
{% extends "base.html" %}
1+
{% extends "ietf.html" %}
22

3-
{% block title %}Change State of {{ ipr.title }}{% endblock %}
3+
{% load bootstrap3 %}
44

5-
{% block pagehead %}
6-
<link rel="stylesheet" type="text/css" href="/css/ipr.css"></link>
7-
{% endblock %}
5+
{% block title %}Change State of {{ ipr.title }}{% endblock %}
86

97
{% block content %}
10-
<h1>Change State of {{ ipr }}</h1>
8+
<h1>Change State<br><small>{{ ipr }}</small></h1>
9+
10+
{% bootstrap_messages %}
1111

12-
<p>You may add a comment to be included in the disclosure history.</p>
12+
<form role="form" class="add-comment" method="post">{% csrf_token %}
13+
{% bootstrap_form form %}
1314

14-
<form class="add-comment" action="" method="post">{% csrf_token %}
15-
<table>
16-
{{ form.as_table }}
17-
<tr>
18-
<td></td>
19-
<td class="actions">
20-
<a href="{% url "ipr_show" id=ipr.id %}">Back</a>
21-
<input type="submit" value="Submit"/>
22-
</td>
23-
</tr>
24-
</table>
15+
{% buttons %}
16+
<button type="submit" class="btn btn-primary">Save</button>
17+
<a class="btn btn-default pull-right" href="{% url "ipr_show" id=ipr.id %}">Back</a>
18+
{% endbuttons %}
2519
</form>
2620
{% endblock %}

0 commit comments

Comments
 (0)