151 lines
5.6 KiB
HTML
151 lines
5.6 KiB
HTML
<!-- Ticket - Edit -->
|
|
<!-- made to look more in line with view-->
|
|
<form action="/ticket/{{ @PARAMS.id }}/update" method="POST">
|
|
{{ \CSRFHelper::field() | raw }}
|
|
<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">
|
|
<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>
|
|
|
|
<hr>
|
|
<div class="block">
|
|
|
|
<div class="columns">
|
|
<div class="column is-two-thirds">
|
|
|
|
<div class="block">
|
|
<bulma type="FIELD_INPUT" label="Created At:" name="created_at" value="{{@ticket.created_at}}"></bulma>
|
|
</div>
|
|
|
|
<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>
|
|
|
|
<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">
|
|
<div class="block">
|
|
<!-- priority and status -->
|
|
<bulma type="FIELD_SELECT" label="Priority:" name="priority_id"
|
|
options="{{@priorities}}" option_value="id" option_name="name"
|
|
selected="{{@ticket.priority_id}}"></bulma>
|
|
|
|
<bulma type="FIELD_SELECT" label="Status:" name="status_id"
|
|
options="{{@statuses}}" option_value="id" option_name="name"
|
|
selected="{{@ticket.status_id}}"></bulma>
|
|
|
|
<bulma type="FIELD_SELECT" label="Assigned User:" name="assigned_to"
|
|
options="{{@users}}" option_value="id" option_name="display_name"
|
|
selected="{{@ticket.assigned_to}}"></bulma>
|
|
|
|
|
|
</div>
|
|
<!-- additional data -->
|
|
<div class="block">
|
|
</div>
|
|
<!-- 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>
|
|
</div>
|
|
</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>
|
|
</div>
|
|
</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>
|
|
*/ ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
<hr>
|
|
|
|
<div>
|
|
|
|
|
|
<exclude>
|
|
<include href="views/attachment/index.html"></include>
|
|
<include href="views/comments/view.html"></include>
|
|
</exclude>
|
|
|
|
|
|
<!--
|
|
<div class="block" id="attachments"></div>
|
|
<div class="block" id="comments"></div>
|
|
-->
|
|
|
|
</div>
|