clairelee/directable

View on GitHub
app/views/notes/home.html.erb

Summary

Maintainability
Test Coverage
<br><br><br><br><br>

  <div class="container">
    <div class="row">
      <div class="col-lg-12">

      <h1>Search Notes</h1>
      
      <p id="notice"><font color="red"><%= notice %></p></font>
        
        <br>

        
        <%= form_for :note, :url => notes_search_path, :html => { :method => :post }  do |f| %>
          
          <p>
            <%= f.label :name, :class => "wide-text"%>
            <%= f.text_field :name, :id => "text-field", :placeholder => 'Enter Name Here', data: { autocomplete: autocomplete_profile_name_notes_path }, :class => "ui-autocomplete" %> 
          </p>
          <br>
          <p>
            <%= f.label :production_id, :class => "wide-text" %>
              <%= f.collection_select :production_id, @unique_productions, :id, :name, {:include_blank => 'Choose A Production'}, :style => "width: 250px" %> 
          </p>
          <br>
          <p>
            <%= f.label :role, :class => "wide-text" %>
              <%= f.select :role, [['Musician','Musician'],['Actor/Actress','Actor/Actress']], {:include_blank => 'Choose A Role'}, :style => "width: 250px" %>
          </p>
          <br>
          <p>
            <%= f.label :instrument, :class => "wide-text" %> <br>
            <% @instruments.each do |instrument| %>
              <%= check_box_tag "instruments[]", instrument.id %>
              <%= instrument.name %> <br>
            <% end %>
          </p>
        
          <br>
        
          <p>
            <%= f.submit "Search", :id => "buttons-centered"%>
          </p>
          <br><br>
          </div>
         
        <% end %>
      

    </div>
  </div>