29 lines
987 B
HTML
29 lines
987 B
HTML
{% extends "base.html" %}
|
|
{% block title %}{{ _('Admin · Plans') }}{% endblock %}
|
|
{% block content %}
|
|
{% include "admin/_nav.html" %}
|
|
<div class="card">
|
|
<h2>{{ _('Plans') }}</h2>
|
|
<table class="list">
|
|
<thead><tr>
|
|
<th>{{ _('Slug') }}</th>
|
|
<th>{{ _('Name') }}</th>
|
|
<th>{{ _('Price / mo') }}</th>
|
|
<th>{{ _('Stripe price ID') }}</th>
|
|
<th>{{ _('Active') }}</th>
|
|
<th></th>
|
|
</tr></thead>
|
|
{% for plan in plans %}
|
|
<tr>
|
|
<td><code>{{ plan.slug }}</code></td>
|
|
<td>{{ plan.name }}</td>
|
|
<td>${{ '%.2f'|format(plan.price_monthly_cents / 100) }}</td>
|
|
<td class="muted small">{{ plan.stripe_price_id or '—' }}</td>
|
|
<td><span class="badge {{ 'ok' if plan.is_active else 'warn' }}">{{ _('yes') if plan.is_active else _('no') }}</span></td>
|
|
<td><a class="btn ghost tiny" href="{{ url_for('admin.plan_edit', plan_id=plan.id) }}">{{ _('Edit') }}</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</table>
|
|
</div>
|
|
{% endblock %}
|