52 lines
2.2 KiB
HTML
52 lines
2.2 KiB
HTML
<h1 class="title">Edit Ticket Form</h1>
|
|
|
|
<form action="/ticket/{{ @PARAMS.id }}/update" method="POST">
|
|
|
|
<bulma type="H_FIELD_INPUT" label="Title:" name="title" value="{{@ticket.title}}"></bulma>
|
|
<bulma type="H_FIELD_TEXTAREA" label="Description:" name="description" value="{{@ticket.description}}"></bulma>
|
|
|
|
{{ BulmaForm::horizontal_field_select('Priority:', 'priority', ['Low', 'Medium', 'High'])}}
|
|
{{ BulmaForm::horizontal_field_select('Status:', 'status', ['New', 'In Progress', 'On Hold', 'Completed'])}}
|
|
|
|
|
|
<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>
|
|
<input class="input" type="text" name="new_meta_key[]"
|
|
placeholder="eg. Department">
|
|
</div>
|
|
<div class="control">
|
|
<label class="label">Value:</label>
|
|
<input class="input" type="text" name="new_meta_value[]"
|
|
placeholder="eg. Finance">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<button class="button is-primary" type="submit">Save Ticket</button>
|
|
</div>
|
|
</form> |