{{ define "content" }}

<div class="container">
  <form id="form-teachers-classes-add" action="/teachers/{{.Teacher.ID}}/classes/add" method="POST" role="form">
    <div class="form-group">
      <label for="">Materia</label>
      <select name="Classes_Ids" class="form-control selectpicker" id="class_name" placeholder="Nome della classe" data-live-search="true" form="form-teachers-classes-add" multiple>
	{{range $class := .Classes}}
	<option value="{{$class.ID}}">{{$class.Name}}</option>
	{{end}}
      </select>
    </div>
      <button type="submit" class="btn btn-default">Aggiungi</button>
      <a href="/teachers/{{.Teacher.ID}}" class="btn btn-default">Annulla</a>
  </form>
</div>

{{ end }}
