<%= render partial: 'teachers/shared/scorebook_tabs' %>

<%= render partial: 'teachers/classrooms/subnav' %>

<%= javascript_include_tag 'jquery.js' %>
<%= javascript_include_tag 'create_a_class.js' %>


<div class="container">

  <section class="no-border create-a-class">
    <h1 class="section-header">Create Your Class</h1>

    <%= form_for [:teachers, @classroom] do |f| %>
      <div class='row'>
        <div class='col-xs-12'>
          <%= f.text_field :name, class: 'big-input', placeholder: 'Class Name' %>
        </div>
      </div>
      <div class='row'>
        <div class='col-xs-12 grade-select-column'>
          <%= f.select :grade, Classroom::GRADES, {prompt: 'Grade'}, class: 'grade-select' %>
        </div>
      </div>
      <div class='row'>
        <div class='col-xs-12'>
          <%= f.label :code, "Class Code" %>
          <%= f.text_field :code, class: 'inactive class-code' %>
          <span class='generate-code'>Generate a New Code</span>
        </div>
      </div>

      
      
      <%= f.button 'Create Class', class: 'button-green' %>
    <% end %>

  </section>

</div>

<%= render partial: 'teachers/shared/scorebook_tabs' %>

<%= render partial: 'teachers/classrooms/subnav' %>

<%= javascript_include_tag 'jquery.js' %>
<%= javascript_include_tag 'scorebook/create_a_class.js' %>


<div class="container">

  <section class="no-border create-a-class">
    <h1 class="section-header">Create Your Class</h1>

    <%= form_for [:teachers, @classroom] do |f| %>
      <div class='row'>
        <div class='col-xs-12'>
          <%= f.text_field :name, class: 'big-input', placeholder: 'Class Name' %>
        </div>
      </div>
      <div class='row'>
        <div class='col-xs-12 grade-select-column'>
          <%= f.select :grade, Classroom::GRADES, {prompt: 'Grade'}, class: 'grade-select' %>
        </div>
      </div>
      <div class='row'>
        <div class='col-xs-12'>
          <%= f.label :code, "Class Code" %>
          <%= f.text_field :code, class: 'inactive class-code' %>
          <span class='generate-code'>Generate a New Code</span>
        </div>
      </div>

      
      
      <%= f.button 'Create Class', class: 'button-green' %>
    <% end %>

  </section>

</div>

Fix view's path to create_a_class.js
Fix view's path to create_a_class.js

a5c773d moved/renamed create_a_class.js into .../scorebook/,
but didn't update the view using it.

If this caused any problems or errors in `development` or `production`,
they apparently weren't visible and/or troublesome enough to get any
attention.

`spec/features/sign_up_spec.rb`, however, triggered

    Failure/Error: Unable to find matching line from backtrace
    ActionController::InvalidCrossOriginRequest:
      Security warning: an embedded <script> tag on another site requested
                        protected JavaScript.  If you know what you're doing,
                        go ahead and disable forgery protection on this action
                        to permit cross-origin JavaScript embedding.

Tracking it down was as educational as it was time-consuming...

cf https://github.com/bobmazanec/til/commit/db070f23357ee426058e52ea389447beeac31dc5
