2017-02-14 14:58:16 +01:00
|
|
|
<h2 translate>{{ 'pricing.list_of_the_subscription_plans' }}</h2>
|
2016-08-04 12:08:33 +02:00
|
|
|
|
|
|
|
<div ng-show="fablabWithoutPlans" class="alert alert-warning m-t">
|
2017-02-14 14:58:16 +01:00
|
|
|
{{ 'pricing.beware_the_subscriptions_are_disabled_on_this_application' | translate }}
|
|
|
|
{{ 'pricing.you_can_create_some_but_they_wont_be_available_until_the_project_is_redeployed_by_the_server_manager' | translate }}
|
|
|
|
<br>{{ 'pricing.for_safety_reasons_please_dont_create_subscriptions_if_you_dont_want_intend_to_use_them_later' | translate }}
|
2016-08-04 12:08:33 +02:00
|
|
|
</div>
|
|
|
|
|
2017-10-05 15:32:20 +02:00
|
|
|
<div class="m-t-lg">
|
|
|
|
<button type="button" class="btn btn-warning" ui-sref="app.admin.plans.new">
|
|
|
|
<i class="fa fa-plus m-r"></i>
|
|
|
|
<span translate>{{ 'pricing.add_a_new_subscription_plan' }}</span>
|
|
|
|
</button>
|
|
|
|
<div class="form-group pull-right">
|
|
|
|
<div class="input-group">
|
|
|
|
<span class="input-group-addon"><i class="fa fa-filter"></i></span>
|
|
|
|
<select ng-model="planFiltering" class="form-control">
|
|
|
|
<option ng-repeat="status in filterDisabled" value="{{status}}" translate>{{ 'pricing.status_'+status }}</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-10-05 17:12:22 +02:00
|
|
|
|
2016-08-04 12:08:33 +02:00
|
|
|
<table class="table">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
2017-02-14 14:58:16 +01:00
|
|
|
<th><a href="" ng-click="setOrderPlans('type')">{{ 'pricing.type' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderPlans=='type', 'fa fa-sort-alpha-desc': orderPlans=='-type', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
|
|
|
<th><a href="" ng-click="setOrderPlans('name')">{{ 'pricing.name' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderPlans=='name', 'fa fa-sort-alpha-desc': orderPlans=='-name', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
|
|
|
<th><a href="" ng-click="setOrderPlans('interval')">{{ 'pricing.duration' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-amount-asc': orderPlans=='interval', 'fa fa-sort-amount-desc': orderPlans=='-interval', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
|
|
|
<th><a href="" ng-click="setOrderPlans('group_id')">{{ 'pricing.group' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-alpha-asc': orderPlans=='group_id', 'fa fa-sort-alpha-desc': orderPlans=='-group_id', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
|
|
|
<th class="hidden-xs"><a href="" ng-click="setOrderPlans('pricing.ui_weight')">{{ 'pricing.prominence' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderPlans=='ui_weight', 'fa fa-sort-numeric-desc': orderPlans=='-ui_weight', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
|
|
|
<th><a href="" ng-click="setOrderPlans('amount')">{{ 'pricing.price' | translate }} <i class="fa fa-arrows-v" ng-class="{'fa fa-sort-numeric-asc': orderPlans=='amount', 'fa fa-sort-numeric-desc': orderPlans=='-amount', 'fa fa-arrows-v': orderPlans }"></i></a></th>
|
2016-08-04 12:08:33 +02:00
|
|
|
<th></th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
2017-10-05 17:54:44 +02:00
|
|
|
<tr ng-repeat="plan in plans | filterDisabled:planFiltering | orderBy:orderPlans"
|
|
|
|
ng-class="{'disabled-line' : plan.disabled && planFiltering === 'all'}"
|
|
|
|
ng-init="group = getGroupFromId(groups, plan.group_id)"
|
|
|
|
ng-hide="group.disabled">
|
2016-08-04 12:08:33 +02:00
|
|
|
<td>{{getPlanType(plan.type)}}</td>
|
|
|
|
<td>{{plan.base_name}}</td>
|
|
|
|
<td>{{ plan.interval | planIntervalFilter:plan.interval_count }}</td>
|
2017-10-05 17:54:44 +02:00
|
|
|
<td>{{group.name}}</td>
|
2016-09-27 09:55:24 +02:00
|
|
|
<td class="hidden-xs">{{plan.ui_weight}}</td>
|
2016-08-04 12:08:33 +02:00
|
|
|
<td>{{plan.amount | currency}}</td>
|
|
|
|
<td><button type="button" class="btn btn-default" ui-sref="app.admin.plans.edit({id:plan.id})"><i class="fa fa-pencil-square-o"></i></button> <button type="button" class="btn btn-danger" ng-click="deletePlan(plans, plan.id)"><i class="fa fa-trash"></i></button></td>
|
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|