Define modal header and submit in views instead of template

Change-Id: I3f400e6e7b89a21f38fde14e77164fa78e631445
This commit is contained in:
jing.liuqing
2016-10-07 22:47:44 +08:00
parent 3884b4799c
commit 35338b920e
14 changed files with 51 additions and 76 deletions

View File

@@ -1,14 +1,7 @@
{% extends "horizon/common/_modal_form.html" %}
{% load i18n %}
{% block modal-header %}{% trans "Update Node" %}{% endblock %}
{% block modal-body-right %}
<h3>{% trans "Description:" %}</h3>
<p>{% trans "You may update the editable properties of your node here." %}</p>
{% endblock %}
{% block modal-footer %}
<a href="{% url 'horizon:cluster:nodes:index' %}" class="btn btn-default cancel">{% trans "Cancel" %}</a>
<input class="btn btn-primary" type="submit" value="{% trans "Update Node" %}" />
{% endblock %}