-
Notifications
You must be signed in to change notification settings - Fork 110
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
support ticket features #4055
Comments
For more complex requirements, you can override the template used to render the support ticket form: support_ticket:
ui_template: "my_custom_template" The default location for the override is: And use the current implementation as a reference: |
@abujeda thanks. any idea how to include the default template (i am no erb expert). i only need to append some javascript to it, no other changes required |
You should be able to by adding a render partial to the custom template: # /etc/ood/config/apps/dashboard/views/support_ticket/my_custom_template.html.erb
<%= javascript_tag nonce: true do -%>
const my_custom_js_here = true
<% end %>
<%= render partial: 'support_ticket/email_service_template' %> Do let us know if this works for you as we haven't try this option before. |
@abujeda thanks |
@abujeda hmm, the partial render looks for file prefixed with |
Ahh yes. |
Try updating partial to file: # /etc/ood/config/apps/dashboard/views/support_ticket/my_custom_template.html.erb
<%= javascript_tag nonce: true do -%>
const my_custom_js_here = true
<% end %>
<%= render file: 'support_ticket/email_service_template' %> |
|
i symlinked the |
Sorry for the back and forth, I should have tried myself before making the comment. <%= javascript_tag nonce: true do -%>
const my_custom_js_here = true
<% end %>
<%= render template: 'support_ticket/email_service_template' %> |
@abujeda awesome. thanks for helping out |
@abujeda i added supporting html tags in the description. maybe you know some other magic to achieve the same without having to touch the original email_service_template ;) |
You can redefine any partial following these instructions. This new file you provide in https://osc.github.io/ood-documentation/latest/customizations.html?#overriding-pages |
@johrstrom yes, @abujeda mentioned how to do this. but i only want to add some javascript like the apps forms do, not sure that is so unique to my case (and the description not being considered html safe is probably a bug anyway). anyway, i'll manage. thanks again for all the work that went into it |
I am trying out the ticket support and have some feature requests:
.html_safe
(like<%= support_ticket_description_text.html_safe %>
)Anyway, i am probably discovering this pretty late, but this could be a great addition to our site. Nice work!
The text was updated successfully, but these errors were encountered: