Advertisement
Guest User

View Project Management

a guest
Jun 17th, 2010
416
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rails 0.60 KB | None | 0 0
  1. <% form_for @project do |f| %>
  2.  
  3.     <p>
  4.     <%= f.label :name, "Project Name: " %>
  5.     <%= f.text_field :name %>
  6.     </p>
  7.  
  8.     <p>
  9.       <%= f.label :duration, "Duration: (In Weeks) " %>
  10.       <%= f.text_field :duration %>
  11.     </p>
  12.  
  13.     <p>Select all the clients for this project: </p>
  14.         <% for client in Client.find(:all, :order => :name)  %>
  15.             <%= check_box_tag "clients[project_ids]", client.id, @project.clients.include? (client) %>
  16.             <br/>
  17.             <%= client.name %>
  18.         <% end  %>
  19.  
  20.     <%= f.submit "Submit", :disable_with => 'Creating...'  %>
  21.    
  22. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement