template-edit.html 856 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
{% extends "dashboard/base.html" %}
{% load i18n %}
{% load crispy_forms_tags %} 
{% block content %}

<div class="row">
  <div class="col-md-12">
    <div class="panel panel-default">
      <div class="panel-heading">
        <a class="pull-right btn btn-default btn-xs" href="{% url "dashboard.views.template-list" %}">Back</a>
        <h3 class="no-margin"><i class="icon-desktop"></i> Edit template</h3>
      </div>
      <div class="panel-body">
14 15 16
        {% with form=form %}
          {% include "display-form-errors.html" %}
        {% endwith %}
17 18 19 20 21 22
        {% crispy form %}
      </div>
    </div>
  </div>
</div>

23 24 25 26 27 28 29 30 31 32 33 34 35 36
<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>

37
{% endblock %}