_template-create.html 630 Bytes
Newer Older
1
{% load i18n %}
2
{% load crispy_forms_tags %}
3

4 5
{% if leases < 1 %}
  <div class="alert alert-warning">
Kálmán Viktor committed
6
    {% trans "You haven't created any leases yet, but you need one to create a template!" %}
7 8 9 10
    <a href="{% url "dashboard.views.lease-create" %}">{% trans "Create a new lease now." %}</a>
  </div>
{% endif %}

11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
{% with form=form %}
  {% include "display-form-errors.html" %}
{% endwith %}
{% crispy form %}

<style>
  fieldset {
    margin-top: 40px;
  }
  fieldset legend {
    font-weight: bold;
  }
</style>
<script>
  $(function() {
    $("#hint_id_num_cores, #hint_id_priority, #hint_id_ram_size").hide();
  });
</script>