{% extends 'admin/master.html' %}
{% import 'lib.html' as lib with context %}
{% import 'admin/static.html' as admin_static with context %}
{% macro extra(hash="") %}
{% set id = request.args.get('id') %}
{%- if allow_startrek_action and allow_startrek_action(project=project, key_name=id) -%}
Open
icket
{%- endif -%}
{% endmacro %}
{% block body %}
{% call lib.form_tag(form) %}
{% if not read_only %}
{{ lib.render_form_buttons(return_url, extra())|safe }}
{% else %}
cancel
{% endif %}
{{ lib.render_form_fields(form, form_opts=form_opts) }}
{% if not read_only %}
{{ lib.render_form_buttons(return_url, extra(hash='btm'))|safe}}
{% else %}
cancel
{% endif %}
{% endcall %}
{% endblock %}