new.html 2.45 KB
Newer Older
1 2 3
{% extends 'layouts/base.html' %}

{% block title %}
Daniel W Bond's avatar
Daniel W Bond committed
4
New | MySchool Advisor
5 6 7 8
{% endblock %}

{% block content %}

Daniel W Bond's avatar
Daniel W Bond committed
9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-md-12 text-center">
      <h1><strong>New Trajectory</strong></h1>
      <p class="lead">Pick the programs you'd like to visualize completing your degree.</p>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-offset-1 col-md-10 well">
    <form class="form-horizontal" action="" method="post" role="form" enctype="multipart/form-data">
      {% csrf_token %}
      <fieldset>

      <legend>Select your program(s).</legend>
      <div class="form-group{% if starttrajectoryform.name.errors %} has-error {% endif %}">
        <label for "{{ starttrajectoryform.name.id_for_label}}" class="col-sm-2">
	{{ starttrajectoryform.name.id_for_label }}</label>
28
        <div class="col-sm-8">
Daniel W Bond's avatar
Daniel W Bond committed
29 30 31 32 33 34
	    {{ starttrajectoryform.name }}
	    {% for error in starttrajectoryform.name.errors %}
	        <span class="help-block">{{ error }}</span>
	    {% endfor %}
	    <!-- autocompletion would be awesome -->
        </div>
35
         <div class="col-sm-offset-1 col-sm-1">
Daniel W Bond's avatar
Daniel W Bond committed
36 37 38 39 40 41 42 43
          <button type="button" class="btn btn-primary">+</button>
        </div>
      </div>

      <!-- Javascript for adding an additional field -->
      <!-- Ensure no more than two majors -->

      <legend>Select your minor(s).</legend>
Ben Waters's avatar
Ben Waters committed
44
      <div method="post" action="{% url 'build-me' %}" class="form-group{% if starttrajectoryform.name.errors %} has-error {% endif %}">
Daniel W Bond's avatar
Daniel W Bond committed
45 46
        <label for "{{ starttrajectoryform.name.id_for_label }}" class="col-sm-2">
	{{ starttrajectoryform.name.id_for_label }}</label>
47
        <div class="col-sm-8">
Daniel W Bond's avatar
Daniel W Bond committed
48 49 50 51 52 53
	    {{ starttrajectoryform.name }}
	    {% for error in starttrajectoryform.name.errors %}
	        <span class="help-block">{{ error }}</span>
	    {% endfor %}
	    <!-- autocompletion would be awesome -->
        </div>
54
         <div class="col-sm-offset-1 col-sm-1">
Daniel W Bond's avatar
Daniel W Bond committed
55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73
          <button type="button" class="btn btn-primary">+</button>
        </div>
      </div>

      <!-- Javascript for adding an additional field -->
      <!-- ensure no more than three minors -->

      <div class="form-group">
        <div class="col-sm-offset-10 col-sm-2">
          <button type="submit" class="btn btn-primary btn-block" value="Submit">Submit</button>
          <!-- find the bar across the top loading js -->

        </div>
      </div>
    </fieldset>
    </form>
  </div>
</div>

74
{% endblock %}