Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
80 lines (77 sloc) 3.46 KB
{% extends "saas/base_dashboard-2col.html" %}
{% block saas_title %}
{% if title %}
{% trans title=form.instance.title %}{{title}} Plan{% endtrans %}
{% else %}
{% trans %}New Plan ...{% endtrans %}
{% endif %}
{% endblock %}
{% block saas_page_layout %}
<section id="plan-container">
{% if urls.plan_subscribers %}
<div class="btn-actions text-right">
<a href="{{urls.plan_subscribers}}">{% trans %}Plan Subscribers{% endtrans %}</a>
<button id="activate-plan"
class="activate btn btn-primary"
value="{% if form.instance.is_active %}1{% else %}0{% endif %}"
data-trip-index="2"
data-trip-position="s"
data-trip-content="<p>{% trans %}Toggle this plan between available for subscription or not.{% endtrans %}</p>"
@click="togglePlanStatus"
v-bind:class="{activated: isActive}"
v-text="isActive ? '{% trans %}Deactivate{% endtrans %}' : '{% trans %}Activate{% endtrans %}'"></button>
</div>
{% endif %}
<div class="row">
<div class="col-sm-6">
{% block saas_content %}
<div data-trip data-trip-index="1" data-trip-content="<h2>{% trans %}Plan{% endtrans %}</h2><p>{% trans %}Set the title, description and price of a plan.{% endtrans %}</p><em>{% trans %}Use keyboard navigation or click 'Next' to move forward.{% endtrans %}</em>" data-trip-position="screen-center">
{% include "saas/profile/plans/_form.html" %}
</div>
{% endblock %}
{% if show_delete %}
<div class="card border-danger mt-3">
<div class="card-header">
{% trans %}Danger Zone{% endtrans %}
</div>
<div class="card-body text-danger">
<button id="delete-plan-confirm" class="btn btn-danger" data-toggle="modal" data-target="#delete-plan-modal">{% trans %}Delete{% endtrans %}</button> {% trans %}This operation cannot be reversed.{% endtrans %}
</div>
<div id="delete-plan-modal"
class="modal fade" tabindex="-1" role="dialog"
aria-labelledby="{% trans %}Delete Plan{% endtrans %} ..." aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
{% trans %}Delete Plan{% endtrans %} ...
</div>
<div class="modal-body">
{% trans %}Please confirm you want to delete this plan.{% endtrans %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary"
data-dismiss="modal">{% trans %}Cancel{% endtrans %}</button>
<a id="delete-plan"
class="btn btn-danger btn-ok delete"
data-dismiss="modal"
@click="deletePlan">{% trans %}Delete{% endtrans %}</a>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
<div class="col-sm-6">
<p class="lead">
{% block saas_lead_help %}{% endblock %}
</p>
{% block saas_help %}
<p>
{% trans %}Users can only subscribe to active plans.{% endtrans %}
</p>
{% endblock %}
</div>
</div>
</section>
{% endblock %}
You can’t perform that action at this time.