33 lines
1.1 KiB
HTML
33 lines
1.1 KiB
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ _('Leave a review') }} — {{ listing.title }}{% endblock %}
|
|
{% block content %}
|
|
<div class="card narrow">
|
|
<h2>{{ _('Leave a review for "%(t)s"', t=listing.title) }}</h2>
|
|
<p class="muted">{{ _('Sold by %(name)s', name=listing.user.display_name) }}</p>
|
|
|
|
<form method="post">
|
|
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
|
|
|
<div class="field">
|
|
<label>{{ _('Rating') }}</label>
|
|
<div class="rating-picker">
|
|
{% for v in [5, 4, 3, 2, 1] %}
|
|
<label>
|
|
<input type="radio" name="rating" value="{{ v }}" required>
|
|
{{ '★' * v }}{{ '☆' * (5 - v) }}
|
|
</label>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
|
|
<div class="field">
|
|
<label>{{ _('Comment (optional)') }}</label>
|
|
<textarea class="input" name="body" rows="4" maxlength="1000"></textarea>
|
|
</div>
|
|
|
|
<button class="btn" type="submit">{{ _('Submit review') }}</button>
|
|
<a class="btn ghost" href="{{ url_for('listings.detail', listing_id=listing.id) }}">{{ _('Cancel') }}</a>
|
|
</form>
|
|
</div>
|
|
{% endblock %}
|