2025-02-09 20:04:45 +00:00
|
|
|
<h1 class="title">Create Ticket Form</h1>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<form action="/ticket/create" method="POST">
|
|
|
|
|
|
2025-02-16 22:09:52 +00:00
|
|
|
<bulma type="H_FIELD_INPUT" label="Title:" name="title" value=""></bulma>
|
2025-03-24 11:14:13 +00:00
|
|
|
<bulma type="H_FIELD_INPUT" label="Created At:" name="created_at" value=""></bulma>
|
2025-02-16 22:09:52 +00:00
|
|
|
<bulma type="H_FIELD_TEXTAREA" label="Description:" name="description" value=""></bulma>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-03-24 11:14:13 +00:00
|
|
|
<!-- TODO implement priority and status -->
|
2025-03-24 02:39:20 +00:00
|
|
|
<bulma type="H_FIELD_SELECT" label="Priority:" name="priority" options="['Low', 'Medium', 'High']" selected="Medium"></bulma>
|
|
|
|
|
<bulma type="H_FIELD_SELECT" label="Status:" name="status" options="['New', 'In Progress', 'On Hold', 'Completed']" selected="New"></bulma>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-02-16 22:09:52 +00:00
|
|
|
<!-- custom fields -->
|
|
|
|
|
<hr>
|
|
|
|
|
<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="meta_key[]" placeholder="eg. Department">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Value:</label>
|
|
|
|
|
<input class="input" type="text" name="meta_value[]" placeholder="eg. Finance">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field is-grouped is-grouped-right">
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Key:</label>
|
|
|
|
|
<input class="input" type="text" name="meta_key[]" placeholder="eg. Category">
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<label class="label">Value:</label>
|
|
|
|
|
<input class="input" type="text" name="meta_value[]" placeholder="eg. Urgent">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2025-02-11 09:26:33 +00:00
|
|
|
<div class="field is-grouped is-grouped-right">
|
|
|
|
|
<div class="control">
|
|
|
|
|
<a class="button is-secondary" href="/tickets">Cancel</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<button class="button is-primary" type="submit">Create Ticket</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-09 20:04:45 +00:00
|
|
|
</div>
|
|
|
|
|
</form>
|