{{ define "content" }}

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

{{ end }}
