Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing the title of a charter document
Fixes #1334 Commit ready for merge - Legacy-Id: 8609
- Loading branch information
Timothy B. Terriberry
committed
Nov 9, 2014
1 parent
b74d4e7
commit 63d919e
Showing
4 changed files
with
110 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
{% extends "base.html" %} | ||
|
||
{% block title %}{{ title }}{% endblock %} | ||
|
||
{% block morecss %} | ||
form.change-title select { | ||
width: 22em; | ||
} | ||
|
||
#id_charter_title, #id_message, #id_comment { | ||
width: 40em; | ||
} | ||
|
||
form.change-title .actions { | ||
text-align: right; | ||
padding-top: 10px; | ||
} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<h1>{{ title }}</h1> | ||
|
||
<form class="change-title" action="" method="post">{% csrf_token %} | ||
<table> | ||
{% for field in form.visible_fields %} | ||
<tr> | ||
<th>{{ field.label_tag }}</th> | ||
<td>{{ field }} | ||
{% if field.help_text %}<div class="help">{{ field.help_text }}</div>{% endif %} | ||
|
||
{{ field.errors }} | ||
</td> | ||
</tr> | ||
{% endfor %} | ||
<tr> | ||
<td colspan="2" class="actions"> | ||
<a href="{% url "doc_view" name=doc.name %}">Back</a> | ||
<input type="submit" value="Save and (possibly) notify Secretariat"/> | ||
</td> | ||
</tr> | ||
</table> | ||
</form> | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters