ITSM/templates/kb_detail.html

28 lines
1.1 KiB
HTML
Executable File

{% extends "base.html" %}
{% block content %}
<h1 class="page-title">{{ titel }}</h1>
<div class="sz" style="margin-bottom:14px">
{{ kategorie }} · <span class="pill {{ status_class }}">{{ status }}</span> · {{ autor }} · aktualisiert {{ updated }}
</div>
<div class="panel prewrap">{{ inhalt }}</div>
<div style="margin-bottom:14px">
{% for t in tags %}<span class="pill agent tagpill">{{ t }}</span>{% endfor %}
</div>
{% if ctx.operative %}
<a class="btn ghost" href="/wissen/{{ id }}/edit">Bearbeiten</a>
{% endif %}
{% if can_release %}
<form method="post" action="/wissen/{{ id }}/status" class="inline-form">
<input type="hidden" name="_csrf" value="{{ ctx.csrf }}">
{% if status == "Freigegeben" %}
<input type="hidden" name="status" value="Entwurf">
<button class="btn ghost" type="submit">Freigabe zurueckziehen</button>
{% else %}
<input type="hidden" name="status" value="Freigegeben">
<button class="btn" type="submit">Freigeben</button>
{% endif %}
</form>
{% endif %}
<a class="btn ghost" href="/wissen">Zurueck zur Uebersicht</a>
{% endblock %}