{% include "root_header_begin.html" %}
{% include "film/header_jquery.html" %}
{% include "root_header_end.html" %}
{% include "film/sidebar_start.html" %}
{% include "film/sidebar_film_selected.html" %}
{% include "film/sidebar_end.html" %}
<!-- !PAGE CONTENT! -->
<div class="w3-main" style="margin-left:300px;margin-top:43px;">

  <!-- Header -->
  <header class="w3-container" style="padding-top:22px">
    <h5><b>{{ film_title }} - Genres</b></h5>
  </header>
  <div class="w3-container">
          <div class="w3-quarter">
              <h5>Film Genres</h5>
                  <select id="film_genre_select" multiple="multiple" size="10">
                      {% for genre in film_genres %}
                          <option value="{{ genre.id }}">{{ genre.name }}</option>
                      {% endfor %}
                  </select>
              <br/>
              <button id="film_genre_button" type="button">
                  Remove genre(s) from film!</button>
          </div>
          <div class="w3-quarter">
              <h5>Genres available to add</h5>
              <select id="genre_select" multiple="multiple" size="10">
                  {% for genre in genres %}
                      <option value="{{ genre.id }}">{{ genre.name }}</option>
                  {% endfor %}
              </select>
              <br/>
              <button id="genre_button" type="button" >Add genre(s) to film</button>
          </div>
  </div>
  <div class="w3-container">
          <div class="w3-quarter">
              <form action="" method="post" enctype="multipart/form-data" id="form">
                  <input type="hidden" value="" id="film_genre_list" name="film_genre_list">
              </form>
                <br>
              <button id="formsubmit" type="button">Apply</button>
          </div>
  </div>
  <br/>

{% include "root_footer.html" %}