euscan-ng/euscanwww/djeuscan/templates/euscan/problem.html
Corentin Chary a12e2c42ea djeuscan: move problem to another page, use an icon, restrict to registered
We may move it back to the package page later.

Signed-off-by: Corentin Chary <corentin.chary@gmail.com>
2012-07-25 16:53:17 +02:00

58 lines
1.7 KiB
HTML

{% extends "euscan/_datatable.html" %}
{% load sub %}
{% load djeuscan_helpers %}
{% load url from future %}
{% block title %}
{{ block.super }} - Report Problem: {{ package.category }}/{{ package.name }}
{% endblock %}
{% block content %}
{% if thanks_for_reporting %}
<div class="alert alert-success">
<strong>Thanks!</strong> Your report has been sent to admins
</div>
{% endif %}
<h2>
Report Problem: {{ package.category }}/{{ package.name }}
</h2>
{% include "euscan/_package_details.html" %}
<hr/>
<div class="report-problems">
<form action="{% url "problem" package.category package.name %}" method="post" class="form-horizontal">
<div class="control-group {% if form.version.errors %}error{% endif %}">
<label class="control-label" for="version">{{ form.version.label }}</label>
<div class="controls">
{{ form.version }}
<span class="help-inline">{{ form.version.errors.as_text }}</span>
</div>
</div>
<div class="control-group {% if form.subject.errors %}error{% endif %}">
<label class="control-label" for="subject">{{ form.subject.label }}</label>
<div class="controls">
{{ form.subject }}
<span class="help-inline">{{ form.subject.errors.as_text }}</span>
</div>
</div>
<div class="control-group {% if form.message.errors %}error{% endif %}">
<label class="control-label" for="message">{{ form.message.label }}</label>
<div class="controls">
{{ form.message }}
<span class="help-inline">{{ form.message.errors.as_text }}</span>
</div>
</div>
<div class="control-group">
<div class="controls">
<input class="btn" type="submit" value="Submit" />
</div>
</div>
</form>
</div>
{% endblock %}