NDOJ/templates/ticket/new.html

41 lines
976 B
HTML
Raw Normal View History

2020-01-21 06:35:58 +00:00
{% extends "base.html" %}
{% block media %}
2023-01-27 23:11:10 +00:00
{{ form.media.css }}
<style>
form#ticket-form {
display: block;
margin: 0 auto;
width: 100%;
max-width: 750px;
padding-top: 1em;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
#id_title {
width: 100%;
}
2020-01-21 06:35:58 +00:00
2023-01-27 23:11:10 +00:00
form#ticket-form .submit {
margin: 10px 0 0 auto;
}
</style>
2020-01-21 06:35:58 +00:00
{% endblock %}
{% block js_media %}{{ form.media.js }}{% endblock %}
{% block body %}
2023-01-27 23:11:10 +00:00
<form id="ticket-form" action="" method="POST" class="form-area">
{% block guideline_message %}{% endblock %}
{% csrf_token %}
<div class="title-block{% if form.title.errors %} error{% endif %}">{{ form.title }}</div>
{% if form.title.errors or form.body.errors %}
<div class="form-errors">
{{ form.title.errors }}
{{ form.body.errors }}
</div>
{% endif %}
<div class="body-block">{{ form.body }}</div>
<button type="submit" class="submit">{{ _('Create') }}</button>
</form>
2020-01-21 06:35:58 +00:00
{% endblock %}