You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
1.1 KiB
26 lines
1.1 KiB
{% extends "layout.html" %}
|
|
{% from "_macros.html" import render_field_with_label, render_field %}
|
|
|
|
{% block title %}Update Support Ticket - packetcrypt{% endblock %}
|
|
{% block flash %}
|
|
{% for field in form.errors %}
|
|
{% for error in form.errors[field] %}
|
|
<div class="uk-alert uk-alert-danger" data-uk-alert><a href="" class="uk-alert-close uk-close"></a>{{ field }}: {{ error }}</div>
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div id="form-container" class="uk-width-1-2 uk-panel uk-panel-box uk-container-center">
|
|
<form action="{{ url_for('editticket', tid=ticket.id) }}" method="POST" name="form" class="uk-form" style="width:100%">
|
|
{{ form.hidden_tag() }}
|
|
{{ render_field_with_label(form.subject) }}
|
|
{{ render_field_with_label(form.body) }}
|
|
<div class="uk-form-row">
|
|
<button class="uk-button uk-button-success" type="submit">Update Ticket</button>
|
|
<a href="{{url_for('dashboard')}}" class="uk-button uk-button-primary">Close</a>
|
|
<a href="{{url_for('deleteticket', tid=ticket.id)}}" class="uk-button uk-button-danger">Delete Ticket</a>
|
|
</div>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|