infusionvlc/ConexionFelina

View on GitHub
app/views/task_user_wizard/new.html.erb

Summary

Maintainability
Test Coverage
<h1>Assig Task to a User</h1>
<%= form_tag("/task_user_wizard/create", method: "post") do %>
  <h4>Select a Colony</h4>
  <%= select_tag "colony_id", options_from_collection_for_select(@colonies, "id", "name"), { :prompt => "Select a Colony"} %>
  </br></br>

  <%= hidden_field_tag :task_id, params[:task_id] %>

  <h4>Select a User</h4>
  <%= select_tag "user_id", options_from_collection_for_select(@users, "id", "username"), { :prompt => "Select a User"} %></br>
  </br>

  <h4>Make a turn </h4>
  Start Date
  <%= date_field(:turn, :start_date) %></br>
  End Date
  <%= date_field(:turn, :end_date) %></br>
  
  <%= submit_tag("Register a Task for a User") %>
<% end %>