Skip to content

Commit

Permalink
https://github.com/OCA/helpdesk/pull/495
Browse files Browse the repository at this point in the history
  • Loading branch information
tarteo committed Aug 29, 2023
1 parent f3a5efa commit c16e2fe
Showing 1 changed file with 22 additions and 29 deletions.
51 changes: 22 additions & 29 deletions helpdesk_mgmt/views/helpdesk_ticket_templates.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,19 +36,7 @@
<t t-set="url" t-value="'/my/tickets'" />
<t t-set="placeholder_count" t-value="'ticket_count'" />
</t>
<form method="POST" t-attf-action="/new/ticket">
<input
type="hidden"
name="csrf_token"
t-att-value="request.csrf_token()"
/>
<button
name="create_new_ticket"
type="action"
class="btn btn-primary"
style="float: right; margin-right: 0px; margin-bottom: 5px;"
>New Ticket</button>
</form>

</xpath>
</template>

Expand All @@ -59,20 +47,22 @@
<t t-call="portal.portal_searchbar">
<t t-set="title">Tickets</t>
</t>
<div class="border border-top-0">
<form method="POST" t-attf-action="/new/ticket">
<button
name="create_new_ticket"
type="action"
class="btn btn-primary"
style="margin-bottom: 5px;"
>New Ticket</button>
<input
type="hidden"
name="csrf_token"
t-att-value="request.csrf_token()"
/>
</form>

<form method="POST" t-attf-action="/new/ticket">
<button
name="create_new_ticket"
type="action"
class="btn btn-primary"
style="float: right; margin-right: 0px; margin-bottom: 5px;"
>New Ticket</button>
<input
type="hidden"
name="csrf_token"
t-att-value="request.csrf_token()"
/>
</form>
</div>

<t t-if="not grouped_tickets">
<div class="alert alert-warning mt8" role="alert">
Expand Down Expand Up @@ -421,7 +411,7 @@
class="col-md-12"
>
<h1
class="text-center"
class="text-left"
>Send a new ticket</h1>
</div>
</div>
Expand Down Expand Up @@ -523,7 +513,7 @@
class="col-md-7 col-sm-8"
>
<div
class="btn btn-default btn-file col-md-12"
class="btn-default btn-file col-md-12"
>
<input
class="form-control o_website_form_input"
Expand Down Expand Up @@ -551,7 +541,10 @@
/>
</div>
</div>
<div class="form-group">
<div
class="form-group"
style="margin-top: 5px;"
>
<div
class="col-md-offset-3 col-sm-offset-4 col-sm-8 col-md-7"
>
Expand Down

0 comments on commit c16e2fe

Please sign in to comment.