Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%= simple_form_for @project, html: { class: 'saveable-form' } do |f| %>
- <%= f.error_notification %>
- <div class="constrained opened">
- <div class="form-inputs">
- <%= f.input :name %>
- <%= f.input :description, as: :ckeditor %>
- <%= f.input :reasons, as: :ckeditor %>
- <%= f.input :challenge, as: :ckeditor %>
- <%= f.input :category_id, as: :hidden %>
- <% Category.all.each do |cat| %>
- <div class="clickable category <%= @project.category_id == cat.id ? 'active' : 'inactive' %>"><%= cat.name %></div>
- <% end %>
- <%= f.input :start_date %>
- <%= f.input :end_date %>
- <%= f.input :target_amount %>
- <%= f.input :video %>
- </div>
- </div>
- <div class="constrained closed">
- <%= f.simple_fields_for :rewards do |reward| %>
- <%= render 'reward_fields', f: reward %>
- <% end %>
- <div class="links">
- <%= link_to_add_association 'add reward', f, :rewards %>
- </div>
- </div>
- <div class="constrained closed">
- <%= f.simple_fields_for :user do |user| %>
- <%= render 'user_fields', f: user %>
- <% end %>
- </div>
- <div class="form-actions">
- <%= f.button :submit %>
- </div>
- <% end %>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement