2025-03-29 04:27:36 +00:00
|
|
|
<!-- Ticket - Edit -->
|
|
|
|
|
<!-- made to look more in line with view-->
|
2025-02-09 20:04:45 +00:00
|
|
|
<form action="/ticket/{{ @PARAMS.id }}/update" method="POST">
|
2025-03-29 04:27:36 +00:00
|
|
|
<div class="is-flex">
|
|
|
|
|
<div class="is-flex-grow-1">
|
|
|
|
|
<bulma type="FIELD_INPUT" name="title" value="{{@ticket.title}}" class="mr-3"></bulma>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field is-grouped">
|
|
|
|
|
<!-- <p class="control"><a class="button" href="/ticket/{{ @ticket.id}}/edit">edit ticket</a></p>
|
|
|
|
|
<p class="control"><a class="button is-primary" href="/ticket/create">new ticket</a></p>-->
|
|
|
|
|
<div class="control">
|
|
|
|
|
<a class="button is-secondary" href="/ticket/{{ @ticket.id }}">Cancel</a>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<button class="button is-primary" type="submit">Save</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-03-29 04:27:36 +00:00
|
|
|
<hr>
|
|
|
|
|
<div class="block">
|
2025-03-24 02:39:20 +00:00
|
|
|
|
2025-03-29 04:27:36 +00:00
|
|
|
<div class="columns">
|
|
|
|
|
<div class="column is-two-thirds">
|
2025-03-25 09:15:44 +00:00
|
|
|
|
2025-03-29 04:27:36 +00:00
|
|
|
<div class="block">
|
|
|
|
|
<bulma type="FIELD_INPUT" label="Created At:" name="created_at" value="{{@ticket.created_at}}"></bulma>
|
|
|
|
|
</div>
|
2025-02-09 20:04:45 +00:00
|
|
|
|
2025-03-29 04:27:36 +00:00
|
|
|
<div class="tabs">
|
|
|
|
|
<ul>
|
|
|
|
|
<li class="is-active">
|
|
|
|
|
<a data-tab="write"><span class="icon is-small">
|
|
|
|
|
<i class="fas fa-pen" aria-hidden="true"></i></span><span>Write</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
<li>
|
|
|
|
|
<a data-tab="preview"><span class="icon is-small">
|
|
|
|
|
<i class="fas fa-magnifying-glass" aria-hidden="true"></i></span><span>Preview</span>
|
|
|
|
|
</a>
|
|
|
|
|
</li>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
2025-02-16 22:09:52 +00:00
|
|
|
|
2025-03-29 04:27:36 +00:00
|
|
|
<div id="tab-write" class="tab-content block">
|
|
|
|
|
<bulma type="FIELD_TEXTAREA" name="description" value="{{@ticket.description}}" rows="20"></bulma>
|
|
|
|
|
</div>
|
|
|
|
|
<div id="tab-preview" class="tab-content content">
|
|
|
|
|
<div id="preview-output"></div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="column">
|
|
|
|
|
<!-- meta data -->
|
|
|
|
|
<div class="block">
|
|
|
|
|
<table class="table is-bordered is-fullwidth">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr><th class="has-width-100">Property</th><th>Value</th></tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody>
|
|
|
|
|
<repeat group="{{ @ticket }}" key="{{ @key }}" value="{{ @value }}">
|
|
|
|
|
<check if="{{ @key !== 'description'}}">
|
|
|
|
|
<tr><td>{{@key}}</td> <td>{{@value}}</td></tr>
|
|
|
|
|
</check>
|
|
|
|
|
</repeat>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|
|
|
|
|
<!-- form to add child ticket relationships -->
|
|
|
|
|
<div class="box">
|
|
|
|
|
<h4 class="title is-4">Linked Tickets</h4>
|
|
|
|
|
<!-- parent -->
|
|
|
|
|
<?php
|
|
|
|
|
/*
|
|
|
|
|
<check if="{{ @parent_tickets }}">
|
|
|
|
|
<div class="block">
|
|
|
|
|
<h4 class="title">Parent Tickets</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<repeat group="{{ @parent_tickets }}" value="{{ @p }}">
|
|
|
|
|
<li><a href="/ticket/{{ @p.id }}">{{ @p.title }}</a></li>
|
|
|
|
|
</repeat>
|
|
|
|
|
</ul>
|
2025-02-16 22:09:52 +00:00
|
|
|
</div>
|
2025-03-29 04:27:36 +00:00
|
|
|
</check>
|
|
|
|
|
<!-- child tickets -->
|
|
|
|
|
<check if="{{ @child_tickets }}">
|
|
|
|
|
<div class="block">
|
|
|
|
|
<h4 class="title">Child Tickets</h4>
|
|
|
|
|
<ul>
|
|
|
|
|
<repeat group="{{ @child_tickets }}" value="{{ @c }}">
|
|
|
|
|
<li><a href="/ticket/{{ @c.id }}">{{ @c.title }}</a></li>
|
|
|
|
|
</repeat>
|
2025-02-16 22:09:52 +00:00
|
|
|
</div>
|
2025-03-29 04:27:36 +00:00
|
|
|
</check>
|
|
|
|
|
|
|
|
|
|
<form action="/ticket/{{ @ticket.id }}/add-subtask" method="POST">
|
|
|
|
|
<div class="field">
|
|
|
|
|
<label class="label">Add existing ticket as child ticket (ID):</label>
|
|
|
|
|
<div class="control">
|
|
|
|
|
<input class="input" type="number" placeholder="Child Ticket ID" required
|
|
|
|
|
name="child_ticket_id">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="field">
|
|
|
|
|
<div class="control">
|
|
|
|
|
<button class="button is-link" type="submit">Link</button>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
*/ ?>
|
2025-02-16 22:09:52 +00:00
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2025-03-29 04:27:36 +00:00
|
|
|
</div>
|
|
|
|
|
</form>
|
|
|
|
|
<hr>
|
|
|
|
|
|
|
|
|
|
<div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<include href="../ui/views/attachment/index.html">
|
|
|
|
|
<include href="../ui/views/comments/view.html">
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<!--
|
|
|
|
|
<div class="block" id="attachments"></div>
|
|
|
|
|
<div class="block" id="comments"></div>
|
|
|
|
|
-->
|
2025-02-16 22:09:52 +00:00
|
|
|
|
2025-02-09 20:04:45 +00:00
|
|
|
</div>
|