lease-type-form.html 1.29 KB
Newer Older
Kálmán Viktor committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %}
{% load render_table from django_tables2 %}

{% block title-page %}
{% if form.instance.pk %}{{ form.instance.name }}{% else %}{% trans "Create" %}{% endif %}
| {% trans "lease type" %}
{% endblock %}

{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
17 18 19 20 21 22 23 24 25 26 27
        <div class="pull-right">
          {% if object.pk %}
            <a class="btn btn-xs btn-danger"
              href="{% url "request.views.lease-type-delete" pk=object.pk %}">
              <i class="fa fa-times"></i> {% trans "Delete" %}
          </a>
          {% endif %}
          <a class="btn btn-xs btn-default" href="{% url "request.views.type-list" %}">
            {% trans "Back" %}
          </a>
        </div>
Kálmán Viktor committed
28 29 30 31 32
        <h3 class="no-margin">
          <i class="fa fa-clock-o"></i>
          {% if form.instance.pk %}
            {{ form.instance.name }}
          {% else %}
33
            {% trans "New lease type" %}
Kálmán Viktor committed
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
          {% endif %}
        </h3>
      </div>
      <div class="panel-body">
        <div class="row">
          <div class="col-md-8">
            {% crispy form %}
          </div>
        </div>
      </div>
    </div>
  </div>
</div>

{% endblock %}