forked from mozilla/zamboni
/
reply.html
44 lines (37 loc) · 1.37 KB
/
reply.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends "impala/base.html" %}
{% from 'includes/forms.html' import pretty_field %}
{% set title = _('Reply to review by {0}')|f(review.user.name) %}
{% block bodyclass %}reviews gutter{% endblock %}
{% block title %}{{ page_title(title) }}{% endblock %}
{% block content %}
{{ impala_breadcrumbs([(addon.type_url(), amo.ADDON_TYPES[addon.type]),
(addon.get_url_path(), addon.name),
(addon.reviews_url, _('Reviews')),
(None, _('Reply'))]) }}
<h1>{{ title }}</h1>
<div class="secondary">
{{ addon|sidebar_listing }}
</div>
<div class="primary island hero" id="reviews">
{% include "reviews/impala/review.html" %}
<form method="post" class="prettyform c"
action="{{ url('i_reviews.reply', addon.slug, review.id) }}">
{{ csrf() }}
<fieldset>
<h2>{{ _('Write a Reply') }}</h2>
<ul>
{{ pretty_field(form.title, label=_('Title')) }}
{{ pretty_field(form.body, label=_('Reply')) }}
</ul>
</fieldset>
<footer>
<button type="submit">{{ _('Submit review') }}</button>
{# L10n: this string is following a <button>. #}
{% trans url=addon.reviews_url %}
or <a href="{{ url }}">Cancel</a>
{% endtrans %}
</footer>
</form>
</div>
{{ report_review_popup() }}
{% endblock %}