Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
73 lines (70 sloc) 2.95 KB
{% extends "saas/base_dashboard.html" %}
{% block saas_title %}{% trans %}Plans{% endtrans %}{% endblock %}
{% block saas_content %}
<div id="plan-list-container">
<div class="row my-3">
{% include "saas/_filter.html" %}
<div class="col-2 text-right">
<a class="btn btn-sm btn-primary" id="plan-new" href="{{urls.provider.plan_new}}" title="{% trans %}Create plan{% endtrans %}">{% trans %}New Plan{% endtrans %} ...</a>
</div>
</div>
<div class="table-responsive">
<table id="coupon-list" class="table table table-sm table-striped" infinite-wrapper>
<thead>
<tr>
<th>{% trans %}Title{% endtrans %}
<a href="#" class="btn-sort"
@click.prevent="sortBy('title')">
<i :class="sortIcon('title')"></i>
</a>
</th>
<th>{% trans %}Status{% endtrans %}
<a href="#" class="btn-sort"
@click.prevent="sortBy('is_active')">
<i :class="sortIcon('is_active')"></i>
</a>
</th>
<th>{% trans %}Period price{% endtrans %}
<a href="#" class="btn-sort"
@click.prevent="sortBy('period_amount')">
<i :class="sortIcon('period_amount')"></i>
</a>
</th>
<th>{% trans %}Created at{% endtrans %}
<a href="#" class="btn-sort"
@click.prevent="sortBy('created_at')">
<i :class="sortIcon('created_at')"></i>
</a>
</th>
<th></th>
</tr>
</thead>
<tr v-show="!itemsLoaded">
<td colspan="3">
<h3 class="text-center"><i class="fa fa-refresh fa-spin fa-2x"></i></h3>
</td>
</tr>
<tr v-show="itemsLoaded && items.results.length === 0" v-cloak>
<td colspan="3">
<h4 class="text-center"><em>{% trans %}No Plans{% endtrans %}<span v-show="params.q"> [[params.q]]</span></em></h4>
</td>
</tr>
<tr :id="item.slug" v-for="(item, index) in items.results" v-show="itemsLoaded && items.results.length > 0" v-cloak>
<td>
<a :href="'{{urls.provider.plans}}' + item.slug + '/'">[[item.title]]</a>
</td>
<td>[[item.is_active ? '{% trans %}active{% endtrans %}' : '{% trans %}disabled{% endtrans %}']]</td>
<td>[[item.period_amount]]</td>
<td class="date">[[item.created_at | formatDate]]</td>
</tr>
</table>
{% include "_pagination.html" %}
</div>
<div class="row mt-3">
<div class="col text-right">
<a id="download" class="btn btn-secondary btn-sm mr-1" role="button"
:href="'{{download_url}}' + getQueryString(['page'])"><i class="fa fa-cloud-download"></i> {% trans %}CSV Download{% endtrans %}</a>
</div>
</div>
</div>
{% endblock %}
You can’t perform that action at this time.