Skip to content

Commit

Permalink
Merge pull request #970 from auto-mat/kb-base-iframe
Browse files Browse the repository at this point in the history
Kb base iframe - fix query param syntax and wording.
  • Loading branch information
gwasser committed Sep 14, 2021
2 parents 00edddb + 650665b commit fe17124
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion helpdesk/templates/helpdesk/kb_category_base.html
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,11 @@ <h5 class="mb-0">

{% endif %}
<a href='{% if iframe %}{% url 'helpdesk:submit_iframe' %}{% else %}{% url 'helpdesk:submit' %}{%endif%}?{% if category.queue %}queue={{category.queue.pk}}&_readonly_fields_=queue&{%endif%}kbitem={{item.id}}&{{query_param_string}}' class="col-sm">
{% if iframe %}
<div class="btn btn-success btn-circle btn-xl float-right"><i class="fa fa-envelope fa-lg"></i> {% trans 'Contact a human' %}</div>
{% else %}
<div class="btn btn-success btn-circle btn-xl float-right"><i class="fa fa-plus-circle fa-lg"></i> {% trans 'Create New Ticket' %}{% trans " Queue: " %}{{item}}</div>
{% endif %}
</a>
</div>
<div>
Expand All @@ -55,9 +59,13 @@ <h5 class="mb-0">
{% block footer %}
{% endblock %}
{% if category.queue %}
<a href='{% if iframe %}{% url 'helpdesk:submit_iframe' %}{% else %}{% url 'helpdesk:submit' %}{%endif%}?queue={{category.queue.pk}};_readonly_fields_=queue;{{query_param_string}}'>
<a href='{% if iframe %}{% url 'helpdesk:submit_iframe' %}{% else %}{% url 'helpdesk:submit' %}{%endif%}?queue={{category.queue.pk}}&_readonly_fields_=queue&{{query_param_string}}'>
{% block submit_button %}
{% if iframe %}
<div class="btn btn-danger btn-circle btn-xl float-right"><i class="fa fa-envelope fa-lg"></i> {% trans 'Contact a human' %}</div>
{% else %}
<div class="btn btn-danger btn-circle btn-xl float-right"><i class="fa fa-plus-circle fa-lg"></i> {% trans 'Create New Ticket' %}{% if category.queue %}{% trans " Queue: " %}{{category.queue}}{% endif %}</div>
{% endif %}
{% endblock %}
</a>
{% endif %}

0 comments on commit fe17124

Please sign in to comment.