-
Notifications
You must be signed in to change notification settings - Fork 642
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add rudimentary CC: functionality on tickets, controlled by staff users. CC's can be e-mail addresses or users, who will receive copies of all emails sent to the Submitter. This is a work in progress.
- Loading branch information
Showing
11 changed files
with
245 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
2009-09-09 r138 Issue #104 Add a CHANGELOG file | ||
|
||
2009-09-09 r139 Issue #102 Add Ticket CC's | ||
Add rudimentary CC: functionality on tickets, controlled by staff users. CC's | ||
can be e-mail addresses or users, who will receive copies of all emails sent | ||
to the Submitter. This is a work in progress. |
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
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,25 @@ | ||
{% extends "helpdesk/base.html" %}{% load i18n %} | ||
|
||
{% block helpdesk_title %}{% trans "Add Ticket CC" %}{% endblock %} | ||
|
||
{% block helpdesk_body %}{% blocktrans %} | ||
<h2>Add Ticket CC</h2> | ||
|
||
<p>To automatically send an email to a user or e-mail address when this ticket is updated, select the user or enter an e-mail address below.</p>{% endblocktrans %} | ||
|
||
<form method='post' action='./'> | ||
|
||
<fieldset> | ||
<dl>{% for field in form %} | ||
<dt><label for='id_{{ field.name }}'>{{ field.label }}</label></dt> | ||
<dd>{{ field }}</dd> | ||
{% if field.errors %}<dd class='error'>{{ field.errors }}</dd>{% endif %} | ||
{% if field.help_text %}<dd class='form_help_text'>{{ field.help_text }}</dd>{% endif %} | ||
{% endfor %}</dl> | ||
</fieldset> | ||
|
||
<input type='submit' value='{% trans "Save Ticket CC" %}' /> | ||
|
||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{% extends "helpdesk/base.html" %}{% load i18n %} | ||
|
||
{% block helpdesk_title %}{% trans "Delete Ticket CC" %}{% endblock %} | ||
|
||
{% block helpdesk_body %}{% blocktrans with cc.email_address as email_address %} | ||
<h2>Delete Ticket CC</h2> | ||
|
||
<p>Are you sure you wish to delete this email address (<em>{{ email_address }}</em>) from the CC list for this ticket? They will stop receiving updates.</p> | ||
{% endblocktrans %} | ||
|
||
{% blocktrans %}<p><a href='../../'>Don't Delete</a></p> | ||
|
||
<form method='post' action='./'><input type='submit' value='Yes, Delete' /></form> | ||
{% endblocktrans %}{% 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{% extends "helpdesk/base.html" %}{% load i18n %} | ||
|
||
{% block helpdesk_title %}{% trans "Ticket CC Settings" %}{% endblock %} | ||
|
||
{% block helpdesk_body %}{% blocktrans with ticket.title as ticket_title and ticket.id as ticket_id %} | ||
<h2>Ticket CC Settings</h2> | ||
|
||
<p>The following people will receive an e-mail whenever <em><a href='../'>{{ ticket_title }}</a></em> is updated. Some people can also view or edit the ticket via the public ticket views.</p> | ||
|
||
<p>You can <a href='add/'>add a new e-mail address to the list</a> or delete any of the items below as required.</p>{% endblocktrans %} | ||
|
||
<table width='100%'> | ||
<thead> | ||
<tr class='row_tablehead'><td colspan='4'>{% trans "Ticket CC List" %}</td></tr> | ||
<tr class='row_columnheads'><th>{% trans "E-Mail Address" %}</th><th>{% trans "View?" %}</th><th>{% trans "Update?" %}</th><th>{% trans "Delete" %}</th></tr> | ||
</thead> | ||
<tbody> | ||
{% for person in copies_to %} | ||
<tr class='row_{% cycle odd,even %}'> | ||
<td>{{ person.display }}</td> | ||
<td>{{ person.can_view }}</td> | ||
<td>{{ person.can_update }}</td> | ||
<td><a href='{% url helpdesk_ticket_cc_del ticket.id person.id %}'>{% trans "Delete" %}</a></td> | ||
</tr> | ||
{% endfor %} | ||
</tbody> | ||
</table> | ||
|
||
<p><a href='{% url helpdesk_view ticket.id %}'>{% blocktrans with ticket.title as ticket_title %}Return to <em>{{ ticket_title }}</em>{% endblocktrans %}</a></p> | ||
|
||
{% 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
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