_request-template-form.html 860 Bytes
Newer Older
Kálmán Viktor committed
1 2 3 4 5 6 7 8
{% load i18n %}
{% load crispy_forms_tags %}

<form action="{% url "request.views.request-template" %}" method="POST">
  {% include "display-form-errors.html" %}
  {% csrf_token %}
  {{ form.template|as_crispy_field }}

9
  <div style="font-weight: bold;">{% trans "Level" %}*</div>
Kálmán Viktor committed
10 11 12 13 14 15
  {% for radio in form.level %}
  <div class="myradio" style="display: inline-block; padding-left: 20px;">
    <label>
      {{ radio }}
      <div class="text-muted" style="padding-left: 16px; font-weight: normal;">
        {% if forloop.last %}
16
          {% trans "For users who want to share the template with others." %}
Kálmán Viktor committed
17
        {% else %}
18
          {% trans "For users who want to start a virtual machine." %}
Kálmán Viktor committed
19 20 21 22 23
        {% endif %}
      </div>
    </label>
  </div>
  {% endfor %}
24
  {{ form.message|as_crispy_field }}
Kálmán Viktor committed
25 26
  <input type="submit" class="btn btn-primary"/>
</form>