Advertisement
Guest User

Untitled

a guest
Apr 19th, 2019
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. <%= simple_nested_form_for @project, :html => { :class => 'form-horizontal' } do |project_form| %>
  2. <div class="row">
  3. <div class="small-7 columns">
  4. <fieldset>
  5. <legend><%= controller.action_name.capitalize %> Project</legend>
  6. <%= render "project_fields", :f => project_form %>
  7. </fieldset>
  8. </div>
  9. <div class="small-5 columns">
  10. <legend>Add some tasks to this project</legend>
  11. <div id="project_tasks">
  12.  
  13. <%= project_form.simple_fields_for :tasks do |task_form| %>
  14. <%= render "task_fields", :f => task_form %>
  15. <% end %> <!-- end of one tasks form -->
  16.  
  17.  
  18. </div> <!-- end of project_tasks div -->
  19. </div>
  20. </div>
  21. <div class="form-actions">
  22. <%= project_form.submit nil, class: 'button radius' %>
  23. <%= link_to 'Cancel', projects_path, class: 'button alert radius' %>
  24. </div>
  25. <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement