fixing error
This commit is contained in:
parent
4448b6b28f
commit
8ab7beb0be
10 changed files with 12 additions and 13 deletions
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Update Billing Setting" %}{% endblock %}
|
{% block title %}{% trans "Update Billing Setting" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/billing_setting/_form_setting.html" %}
|
{% include "yuyu_demo/billing_setting_demo/_form_setting.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -27,8 +27,8 @@
|
||||||
<div class="panel-heading">Status: Billing Disabled</div>
|
<div class="panel-heading">Status: Billing Disabled</div>
|
||||||
<div class="panel-body">
|
<div class="panel-body">
|
||||||
<p>Please make sure all price is already configured before enable billing</p>
|
<p>Please make sure all price is already configured before enable billing</p>
|
||||||
<a href="{% url 'horizon:admin:billing_setting:enable_billing' %}" class="btn btn-primary {% if missing_price.has_missing or missing_setting.has_missing %} disabled {% endif %}">Enable</a>
|
<a href="{% url 'horizon:yuyu_demo:billing_setting_demo:enable_billing' %}" class="btn btn-primary {% if missing_price.has_missing or missing_setting.has_missing %} disabled {% endif %}">Enable</a>
|
||||||
<a href="{% url 'horizon:admin:billing_setting:reset_billing' %}" class="btn btn-danger">Reset Billing Data</a>
|
<a href="{% url 'horizon:yuyu_demo:billing_setting_demo:reset_billing' %}" class="btn btn-danger">Reset Billing Data</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
|
@ -20,7 +20,6 @@ class IndexView(views.IndexView):
|
||||||
|
|
||||||
class UpdateSettingView(views.UpdateSettingView):
|
class UpdateSettingView(views.UpdateSettingView):
|
||||||
form_class = forms.SettingForm
|
form_class = forms.SettingForm
|
||||||
|
|
||||||
submit_url = ''
|
submit_url = ''
|
||||||
success_url = ''
|
success_url = ''
|
||||||
template_name = 'yuyu_demo/billing_setting_demo/form_setting.html'
|
template_name = 'yuyu_demo/billing_setting_demo/form_setting.html'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
from django.utils.translation import ugettext_lazy as _
|
from django.utils.translation import ugettext_lazy as _, ungettext_lazy
|
||||||
|
|
||||||
from horizon import tables
|
from horizon import tables
|
||||||
from ....yuyu.cases.flavor_price_use_case import FlavorPriceUseCase
|
from ....yuyu.cases.flavor_price_use_case import FlavorPriceUseCase
|
||||||
|
@ -17,14 +17,14 @@ class BaseDeletePrice(tables.DeleteAction):
|
||||||
plural_action_label = None
|
plural_action_label = None
|
||||||
|
|
||||||
def action_present(self, count):
|
def action_present(self, count):
|
||||||
return _(
|
return ungettext_lazy(
|
||||||
"Delete " + self.single_action_label,
|
"Delete " + self.single_action_label,
|
||||||
"Delete " + self.plural_action_label,
|
"Delete " + self.plural_action_label,
|
||||||
count
|
count
|
||||||
)
|
)
|
||||||
|
|
||||||
def action_past(self, count):
|
def action_past(self, count):
|
||||||
return _(
|
return ungettext_lazy(
|
||||||
"Deleted " + self.single_action_label,
|
"Deleted " + self.single_action_label,
|
||||||
"Deleted " + self.plural_action_label,
|
"Deleted " + self.plural_action_label,
|
||||||
count
|
count
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Flavor Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Flavor Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_flavor.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_flavor.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Floating IP Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Floating IP Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_floating_ip.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_floating_ip.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Image Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Image Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_image.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_image.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Router Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Router Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_router.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_router.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Snapshot Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Snapshot Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_snapshot.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_snapshot.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
|
@ -4,5 +4,5 @@
|
||||||
{% block title %}{% trans "Create/Update Volume Price" %}{% endblock %}
|
{% block title %}{% trans "Create/Update Volume Price" %}{% endblock %}
|
||||||
|
|
||||||
{% block main %}
|
{% block main %}
|
||||||
{% include "admin/price_configuration/_create_volume.html" %}
|
{% include "yuyu_demo/price_configuration_demo/_create_volume.html" %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
Loading…
Add table
Reference in a new issue