Sha256: 4d9c64dfc248ca6eb93bb6d84e457c28729f4c29e0ceefd63961d7be8b9f26d9

Contents?: true

Size: 679 Bytes

Versions: 7

Compression:

Stored size: 679 Bytes

Contents

<%= simple_form_for(@story, url: @story.new_record? ? stories_path : story_path(@story), as: :story, html: {class: 'form-vertical'}) do |f| %>
  <%= render partial: 'shared/form/error_messages', locals: { resource: @story } %>
  
  <% unless @story.new_record? %>
  <div class="form-actions">
    <%= f.button :submit %>
  </div>
  <% end %>
  
  <div class="form-inputs">
    <%= @story.project ? f.hidden_field(:project_id) : f.input(:project_id, collection: Project.all) %> 
    <%= f.input :name %>  
    <%= f.input :text, as: :text, input_html: {style: 'width:500px; height:100px;'} %>
  </div>
  
  <div class="form-actions">
    <%= f.button :submit %>
  </div>
<% end %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
voluntary-0.4.0 app/views/stories/_form.html.erb
voluntary-0.3.0 app/views/stories/_form.html.erb
voluntary-0.2.4 app/views/stories/_form.html.erb
voluntary-0.2.3 app/views/stories/_form.html.erb
voluntary-0.2.2 app/views/stories/_form.html.erb
voluntary-0.2.1 app/views/stories/_form.html.erb
voluntary-0.2.0 app/views/stories/_form.html.erb