-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #893 from ciudadanointeligente/bring-back-advanced…
…-form Split up admin pages
- Loading branch information
Showing
12 changed files
with
502 additions
and
151 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
35 changes: 35 additions & 0 deletions
35
nuntium/templates/nuntium/writeitinstance_answernotification_form.html
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,35 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'Answer Notification' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
If you turn on “Answer Notification”, you will receive copies of all | ||
responses to messages to your email address. | ||
{% endblocktrans %}</p> | ||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.notify_owner_when_new_answer.label_tag}} | ||
{{form.notify_owner_when_new_answer}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
36 changes: 36 additions & 0 deletions
36
nuntium/templates/nuntium/writeitinstance_autoconfirm_form.html
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,36 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'API Autoconfirm' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
If you turn on “API Autoconfirm”, any messages created through the | ||
API will be automatically Confirmed. If you do this, please ensure | ||
that you confirm the sender's contact details in your application. | ||
{% endblocktrans %}</p> | ||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.autoconfirm_api_messages.label_tag}} | ||
{{form.autoconfirm_api_messages}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
42 changes: 42 additions & 0 deletions
42
nuntium/templates/nuntium/writeitinstance_max_recipients_form.html
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,42 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'Maximum Recipients' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
Select the maximum number of recipients any individual message can | ||
be sent to. | ||
{% endblocktrans %}</p> | ||
|
||
<p>{% blocktrans %} | ||
This is limited to a maximum of ten recipients per message. If you | ||
want to enable sending messages to more people at once, please | ||
contact us. | ||
{% endblocktrans %}</p> | ||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.maximum_recipients.errors}} | ||
{{form.maximum_recipients.label_tag}} | ||
{{form.maximum_recipients}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
36 changes: 36 additions & 0 deletions
36
nuntium/templates/nuntium/writeitinstance_moderation_form.html
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,36 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'Moderation' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
If you turn on “Moderation” for the site, messages will be sent | ||
to you for approval, before being sent to the intended | ||
Recipient(s). | ||
{% endblocktrans %}</p> | ||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.moderation_needed_in_all_messages.label_tag}} | ||
{{form.moderation_needed_in_all_messages}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
40 changes: 40 additions & 0 deletions
40
nuntium/templates/nuntium/writeitinstance_ratelimiter_form.html
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,40 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'Rate Limiting' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
If you set a “rate limit” for your site, no-one will be able to | ||
send more messages than that per day. | ||
{% endblocktrans %}</p> | ||
|
||
<p>{% blocktrans %} | ||
Set this to zero for to allow unlimited messages. | ||
{% endblocktrans %}</p> | ||
|
||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.rate_limiter.label_tag}} | ||
{{form.rate_limiter}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
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
35 changes: 35 additions & 0 deletions
35
nuntium/templates/nuntium/writeitinstance_web_based_form.html
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,35 @@ | ||
{% extends "base_manager.html" %} | ||
{% load i18n %} | ||
{% load subdomainurls %} | ||
{% load staticfiles %} | ||
|
||
|
||
{% block header %} | ||
{% include 'nuntium/profiles/per_instance_top_menu.html' with section='writeitinstance_advanced_update' %} | ||
{% endblock header %} | ||
|
||
{% block content %} | ||
|
||
<div class="page-header"> | ||
<h2>{% trans 'Allow Form?' %}</h2> | ||
</div> | ||
|
||
<p>{% blocktrans %} | ||
If this is turned off, messages cannot be created via the web-based | ||
form. | ||
{% endblocktrans %}</p> | ||
|
||
<form role="form" action="" method="post"> | ||
|
||
<div class="form-group"> | ||
{{form.allow_messages_using_form.label_tag}} | ||
{{form.allow_messages_using_form}} | ||
</div> | ||
|
||
<div class="save-bar"> | ||
<input type="submit" class='btn btn-primary' value="{% trans 'Save changes' %}" /> | ||
</div> | ||
{% csrf_token %} | ||
</form> | ||
|
||
{% endblock content %} |
Oops, something went wrong.