52 lines
2.0 KiB
Plaintext
52 lines
2.0 KiB
Plaintext
<h1 class="title">Create Ticket Form</h1>
|
|
|
|
<form action="/ticket/create" method="POST">
|
|
|
|
<bulma type="H_FIELD_INPUT" label="Title:" name="title" value=""></bulma>
|
|
<bulma type="H_FIELD_INPUT" label="Created At:" name="created_at" value=""></bulma>
|
|
<bulma type="H_FIELD_TEXTAREA" label="Description:" name="description" value=""></bulma>
|
|
|
|
<!-- priority and status -->
|
|
<bulma type="H_FIELD_SELECT_NEW" label="Priority:" name="priority_id"
|
|
options="priorities" option_value="id" option_name="name"
|
|
selected="2"></bulma>
|
|
|
|
<bulma type="H_FIELD_SELECT_NEW" label="Status:" name="status_id"
|
|
options="statuses" option_value="id" option_name="name"
|
|
selected="1"></bulma>
|
|
|
|
<!-- 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>
|
|
|
|
<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>
|
|
</div>
|
|
</form> |