06/15 Phase 4 + 5 codes
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{% extends "base.html" %}
|
||||
{% block title %}{{ _('Boost listing') }}{% endblock %}
|
||||
{% block content %}
|
||||
<div class="card narrow">
|
||||
<h2>{{ _('Boost listing') }}</h2>
|
||||
<p class="muted">{{ listing.title[:60] }}</p>
|
||||
<form method="post" novalidate>
|
||||
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}">
|
||||
<div class="boost-options">
|
||||
{% for btype, info in boost_types.items() %}
|
||||
<label class="boost-option {{ 'active-boost' if btype in active_boosts }}">
|
||||
<input type="radio" name="boost_type" value="{{ btype }}"
|
||||
{{ 'checked' if loop.first }} {{ 'disabled' if btype in active_boosts }}>
|
||||
<div class="boost-info">
|
||||
<div class="boost-label">{{ info.label }}
|
||||
{% if btype in active_boosts %}<span class="badge ok">{{ _('Active') }}</span>{% endif %}
|
||||
</div>
|
||||
<div class="muted small">{{ info.days }} {{ _('days') }}</div>
|
||||
</div>
|
||||
<div class="boost-price">${{ "%.2f"|format(info.cents / 100) }}</div>
|
||||
</label>
|
||||
{% endfor %}
|
||||
</div>
|
||||
{% if stripe_enabled %}
|
||||
<button class="btn" type="submit">{{ _('Continue to payment') }}</button>
|
||||
{% else %}
|
||||
<p class="muted">{{ _('Payments not configured yet.') }}</p>
|
||||
{% endif %}
|
||||
</form>
|
||||
<p class="muted small" style="margin-top:12px">
|
||||
<a href="{{ url_for('listings.detail', listing_id=listing.id) }}">← {{ _('Back to listing') }}</a>
|
||||
</p>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user