Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <% form_for @project do |f| %>
- <p>
- <%= f.label :name, "Project Name: " %>
- <%= f.text_field :name %>
- </p>
- <p>
- <%= f.label :duration, "Duration: (In Weeks) " %>
- <%= f.text_field :duration %>
- </p>
- <p>Select all the clients for this project: </p>
- <% for client in Client.find(:all, :order => :name) %>
- <%= check_box_tag "clients[project_ids]", client.id, @project.clients.include? (client) %>
- <br/>
- <%= client.name %>
- <% end %>
- <%= f.submit "Submit", :disable_with => 'Creating...' %>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement