Skip to content

Commit

Permalink
add the default form for support tickets
Browse files Browse the repository at this point in the history
  • Loading branch information
johrstrom committed Dec 1, 2023
1 parent 7de9df8 commit b9b7020
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions source/customizations/support-ticket.inc
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,50 @@ Custom fields can be added, but they will require a custom email template to mak
Override the default email template with your own by dropping a file named ``_email.text.erb`` into the folder
``/etc/ood/config/apps/dashboard/views/support_ticket/email/``

This is the default form for submitting support tickets. You can use this YAML as a starting
place for removing and/or adding fields.

.. code-block:: yaml

support_ticket:
email: must supplied by you

attributes:
username:
value: "<%= CurrentUser.name %>"
readonly: true
email:
widget: email_field
required: true
cc:
widget: email_field
subject:
required: true
session_id:
widget: hidden_field
session_description:
hide_when_empty: true
disabled: true
attachments:
widget: file_attachments
description:
widget: text_area
required: true
rows: 10
queue:
widget: hidden_field

form:
- username
- email
- cc
- subject
- session_id
- session_description
- attachments
- description
- queue

The example below shows a custom form configuration with 3 fields and how to use them in the template to generate the email body.

.. code-block:: yaml
Expand Down

0 comments on commit b9b7020

Please sign in to comment.