_vm-renew.html 963 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
{% extends "dashboard/operate.html" %}

{% load i18n %}
{% load crispy_forms_tags %}

{% block formbuttons %}
<div class="pull-right">
  <a class="btn btn-default" href="{{object.get_absolute_url}}" data-dismiss="modal">
    {% trans "Cancel" %}
  </a>
11
  {% if lease_types and not request.token_user %}
12 13 14 15 16
  <a class="btn btn-primary" id="vm-renew-request-lease-button"
   href="{% url "request.views.request-lease" vm_pk=object.pk %}">
    <i class="fa fa-forward"></i>
    {% trans "Request longer lease" %}
  </a>
17
  {% endif %}
18 19 20 21 22 23 24 25 26 27 28 29 30
  <button class="btn btn-{{ opview.effect }} btn-op-form-send" type="submit" id="op-form-send">
    {% if opview.icon %}<i class="fa fa-fw fa-{{opview.icon}}"></i> {% endif %}{{ op.name|capfirst }}
  </button>
</div>
{% endblock %}

{% block extra %}
<div class="clearfix"></div>
<div id="vm-renew-request-lease">
  <hr />
  {% include "request/_request-lease-form.html" with form=lease_request_form vm=object %}
</div>
{% endblock %}