Summary: Facelift IPR add comment page
- Legacy-Id: 8915
This commit is contained in:
parent
eb4c5e642a
commit
86b97c7573
|
@ -46,8 +46,8 @@ class MessageModelChoiceField(forms.ModelChoiceField):
|
|||
# Forms
|
||||
# ----------------------------------------------------------------
|
||||
class AddCommentForm(forms.Form):
|
||||
private = forms.BooleanField(required=False,help_text="If this box is checked the comment will not appear in the disclosure's public history view.")
|
||||
comment = forms.CharField(required=True, widget=forms.Textarea)
|
||||
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.")
|
||||
|
||||
class AddEmailForm(forms.Form):
|
||||
direction = forms.ChoiceField(choices=(("incoming", "Incoming"), ("outgoing", "Outgoing")),
|
||||
|
|
|
@ -1,26 +1,24 @@
|
|||
{% extends "base.html" %}
|
||||
{% extends "ietf.html" %}
|
||||
|
||||
{% load bootstrap3 %}
|
||||
|
||||
{% block title %}Add comment on {{ ipr.title }}{% endblock %}
|
||||
|
||||
{% block pagehead %}
|
||||
<link rel="stylesheet" type="text/css" href="/css/ipr.css"></link>
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>Add comment on {{ ipr }}</h1>
|
||||
<h1>Add comment<br><small>{{ ipr }}</small></h1>
|
||||
|
||||
<p>The comment will be added to the history trail.</p>
|
||||
<p>The comment will be added to the history trail of the disclosure.</p>
|
||||
|
||||
<form class="add-comment" action="" method="post">{% csrf_token %}
|
||||
<table>
|
||||
{{ form.as_table }}
|
||||
<tr>
|
||||
<td></td>
|
||||
<td class="actions">
|
||||
<a href="{% url "ipr_history" id=ipr.id %}">Back</a>
|
||||
<input type="submit" value="Add comment"/>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
{% bootstrap_messages %}
|
||||
|
||||
<form class="add-comment" method="post">
|
||||
{% csrf_token %}
|
||||
|
||||
{% bootstrap_form form %}
|
||||
|
||||
{% buttons %}
|
||||
<button type="submit" class="btn btn-primary">Add Comment</button>
|
||||
<a class="btn btn-default pull-right" href="{% url "ipr_history" id=ipr.id %}">Back</a>
|
||||
{% endbuttons %}
|
||||
</form>
|
||||
{% endblock %}
|
||||
|
|
Loading…
Reference in a new issue