Commit Graph

80 Commits

Author SHA1 Message Date
04bbb27b24 Fix mistake in if chaining 2023-12-03 00:34:29 +00:00
5d190c30ab re-protect public views 2023-11-23 22:52:45 +01:00
b92c83de39 Implement My Tickets view in public helpdesk
Note: This is a breaking change as it forces pagination on the API endoints.
This should have been done from the start as the API without pagination is
useless when there are large numbers of tickets.
2023-11-23 21:50:44 +01:00
4481795c7f search_for_ticket → class based view 2023-11-23 20:52:27 +01:00
e128cc0d5c view_ticket → class based view 2023-11-23 20:48:50 +01:00
b0ef6a5484 Fix #1138 by calling update_ticket directly from non-update views 2023-11-14 21:47:12 +01:00
ade4c3115e Move update ticket logic out of staff.py 2023-11-14 21:17:37 +01:00
25542f929e Initial isort configuration
Will fail build if imports are not sorted correctly
2022-07-22 03:26:41 +02:00
aa876f8016 pycodestyle formatting 2022-07-12 12:34:19 +02:00
358080926c Added Django 4 support. 2022-03-16 22:29:09 -04:00
c90811418a chore(pep8): Fix bad imports, unused variables, pep8 warnings and some possible bugs 2021-03-05 09:37:21 +01:00
1713a86870 feat(forms): Ability to provide custom public ticket form 2021-03-02 12:06:21 +01:00
bbe
4ee74e6667 Better public create ticket form with the initialization of the datepicker for due date as a media.
Reformat code to improve readability.
Add an include to get an alert when there are errors in a form.
2020-10-23 16:23:47 +02:00
cf98b4a8e9 fix(public): Fix the public ticket creation by passing user or None to the form.save() method 2020-07-20 16:43:55 +02:00
0e9358e61b Merge pull request #803 from auto-mat/teams
Add Teams functionality, using pinax-teams
2020-03-04 01:02:40 -05:00
354debb618 fix<public>: Public ticket creation form improvements
Update forms.py and views/public.py to physically delete form fields
instead of just hiding them if default values for queue, date and priority are provided.

+ some bugfixes
+ code and stale imports removal
+ fix pep8 errors
2020-02-06 10:10:07 +01:00
5b0d44ec3a Assign KBItems to teams
This allows you to only show on the dashboard those tickets which belong to a
given user's team.
2020-01-27 19:45:15 +01:00
ecbb91b861 Private kb categories 2020-01-27 17:37:59 +01:00
df94b56b07 Fix success view 2020-01-20 13:23:32 +01:00
cd019d1128 Improvements to iframe workflow 2020-01-20 13:23:32 +01:00
07a42e07f8 Made iframe ticket submit view CSRF exempt. Hopefully this is secure! 2020-01-20 13:23:31 +01:00
4c1fda5991 Fix iframe views so they actually can be displayed 2020-01-20 13:23:31 +01:00
6579ac0e6f Associate tickets with KB items 2020-01-20 13:23:31 +01:00
7fe6444f8f Redo KB categories as accordion view 2020-01-20 13:23:17 +01:00
5f29bb632e Associate queues with KB categories 2020-01-20 13:22:45 +01:00
606098d947 Fix field hiding and setting code for ticket submition qargs 2020-01-20 13:22:45 +01:00
fbae218281 Add ability to autoset custom fields in public ticket form 2020-01-20 13:22:45 +01:00
aadfe08504 Add iframe supporting view for submitting tickets 2020-01-20 13:07:46 +01:00
24b8e45f66 Add ability to hide fields in public ticket submission form using kwargs 2020-01-20 13:07:45 +01:00
3b5a7fe49a Django <2 is no longer supported 2020-01-20 13:03:44 +01:00
2e58798fe1 fixes #758 : enables adding comments to public tickets 2019-05-23 09:55:08 +02:00
1c24d88680 Enable better ticket form pre-filling 2018-12-27 16:39:31 +01:00
3f6ae1aefe Transform UserSettings into a normal django model 2018-10-25 17:54:37 +02:00
b4aafb0b54 Fix knowledge base categories display on public homepage 2018-09-12 15:29:36 +02:00
c1750a7461 Require a secret key for viewing tickets unless HELPDESK_VIEW_A_TICKET_PUBLIC is set
Fixes #629, #639
2018-09-08 21:29:59 +02:00
ffc97338c9 Submit ticket link should work for non-logged in users 2018-09-07 19:10:57 +02:00
54a6b1d21b Merge 0.2.7 bugfixes 2018-03-04 04:01:48 -05:00
3c456873a5 Fixes for Python 3 and Django 2.0 2018-03-04 01:52:58 -05:00
2852e7ba28 Merge pull request #586 from aesdev/master
Fix for Email Issue while pulling CC and ValueError for public homepage
2018-01-12 13:55:01 -05:00
cf85c3d9ab Fixe for Email Issue while pulling CC and ValueError for public homepage 2018-01-11 14:49:21 -05:00
ed0596e430 Merge branch 'master' into feature-public-ticket-defaults 2018-01-10 13:18:29 -05:00
f3e52a2f12 Adds pre-defined values for public tickets
This commit adds three new settings that allow the operator to
pre-define the `queue`, `priority` and `due_date` fields for public
tickets. If one of these settings are present the corresponding input
field is hidden from the form.

The settings are the following:

    HELPDESK_PUBLIC_TICKET_QUEUE = 'website'
    HELPDESK_PUBLIC_TICKET_PRIORITY = 2
    HELPDESK_PUBLIC_TICKET_DUE_DATE = ''

If the due date is set to the empty string, no due date is saved in the
ticket (analogously to the form). The other settings should be
self-explanatory.
2018-01-09 14:53:05 +01:00
3ccd6c8dc8 Merge 0.2.6 Django 2.0 updates 2017-12-28 09:16:01 -05:00
d18ce1f1d5 Bump version to 0.2.6 to fix remaining Django 2.0 warnings 2017-12-28 09:11:34 -05:00
523329eab5 Merge 0.2.5 bugfixes and Django 2.0 changes 2017-12-28 07:43:10 -05:00
5112f0dfd0 Address deprecation warnings to be compatible with Django 2.0 2017-12-28 07:23:51 -05:00
142c291afb Merge 0.2.4 bugfixes 2017-12-18 00:45:36 -05:00
03599f462b Catch exception when someone enters a non-integer text into the public ticket view form, #576 2017-12-15 20:28:39 -05:00
3a1bd76e75 Merge custom staff filter, PR #239 2017-10-30 03:17:40 -04:00
7b022fa1e0 If HELPDESK_ANON_ACCESS_RAISES_404 is True, it raises a 404 to anon users. It's like the helpdesk was invisible 2017-10-04 03:43:32 +02:00