2025-02-09 20:04:45 +00:00
|
|
|
<h1 class="title">Edit Ticket Form</h1>
|
|
|
|
|
|
|
|
|
|
<form action="/ticket/{{ @PARAMS.id }}/update" method="POST">
|
|
|
|
|
|
2025-02-16 22:09:52 +00:00
|
|
|
<bulma type="H_FIELD_INPUT" label="Title:" name="title" value="{{@ticket.title}}"></bulma>
|
2025-03-24 11:14:13 +00:00
|
|
|
<bulma type="H_FIELD_INPUT" label="Created At:" name="created_at" value="{{@ticket.created_at}}"></bulma>
|
2025-02-16 22:09:52 +00:00
|
|
|
<bulma type="H_FIELD_TEXTAREA" label="Description:" name="description" value="{{@ticket.description}}"></bulma>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-03-24 02:39:20 +00:00
|
|
|
|
|
|
|
|
<bulma type="H_FIELD_SELECT" label="Priority:" name="priority" options="['Low', 'Medium', 'High']" selected="{{@ticket.priority}}"></bulma>
|
|
|
|
|
<bulma type="H_FIELD_SELECT" label="Status:" name="status" options="['New', 'In Progress', 'On Hold', 'Completed']" selected="{{@ticket.status}}"></bulma>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-03-24 11:14:13 +00:00
|
|
|
<include href="/ui/parts/clipboard.html"></include>
|
2025-02-16 22:09:52 +00:00
|
|
|
|
|
|
|
|
<div class="block">
|
|
|
|
|
<h3 class="title is-5">Custom Fields</h3>
|
|
|
|
|
<!-- existing fields-->
|
|
|
|
|
<div class="block">
|
|
|
|
|
<repeat group="{{ @ticket_meta }}" value="{{ @m }}">
|
|
|
|
|
<div class="field is-grouped is-grouped-right">
|
|
|
|
|
<input type="hidden" name="meta_id[]" value=" {{ @m.id }}">
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Key:</label>
|
|
|
|
|
<input class="input" type="text" name="meta_key[]" value="{{ @m.meta_key }}"
|
|
|
|
|
placeholder="eg. Department">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Value:</label>
|
|
|
|
|
<input class="input" type="text" name="meta_value[]" value="{{ @m.meta_value }}"
|
|
|
|
|
placeholder="eg. Finance">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</repeat>
|
|
|
|
|
</div>
|
|
|
|
|
<hr>
|
|
|
|
|
<!-- adding new custom meta -->
|
|
|
|
|
<div class="block">
|
|
|
|
|
<div class="field is-grouped is-grouped-right">
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Key:</label>
|
2025-03-24 01:19:31 +00:00
|
|
|
<input class="input" type="text" name="meta_key[]"
|
2025-02-16 22:09:52 +00:00
|
|
|
placeholder="eg. Department">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Value:</label>
|
2025-03-24 01:19:31 +00:00
|
|
|
<input class="input" type="text" name="meta_value[]"
|
2025-02-16 22:09:52 +00:00
|
|
|
placeholder="eg. Finance">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<button class="button is-primary" type="submit">Save Ticket</button>
|
2025-02-09 20:04:45 +00:00
|
|
|
</div>
|
|
|
|
|
</form>
|