Sha256: 9021b29224484441626bb23529617e66bda15b79bc3c2fbbce8bbb465e1d972e

Contents?: true

Size: 1.68 KB

Versions: 5

Compression:

Stored size: 1.68 KB

Contents

<%= form_for(form_object, :html => {:id => 'edit_folder_form', :class => 'form-horizontal'}) do |f| %>
    <p class="form_intro_text">Add a title and description for your folder. If the visibility is set to "public," other users will be able to view the items in the folder. (Items can only be added or removed by you.)</p>
    <%= render 'shared/error_messages', :object => f.object %>
    <div class="form-group">
      <%= label_tag(:title,
                    content_tag(:span, '*', :class => 'required_field_indicator') + ' Title',
                    :class => 'control-label col-sm-2') %>
      <div class="col-sm-4">
        <%= f.text_field :title, :class => 'form-control' %>
      </div>
    </div>
    <div class="form-group">
      <%= label_tag(:visibility,
                    content_tag(:span, '*', :class => 'required_field_indicator') + ' Visibility',
                    :class => 'control-label col-sm-2') %>
      <div class="col-sm-2">
        <%= f.select(:visibility, %w(private public), {}, {:class => 'form-control'}) %>
      </div>
    </div>
    <div class="form-group">
      <%= f.label :description, :class => 'control-label col-sm-2' %>
      <div class="col-sm-4">
        <%= f.text_area :description, :class => 'form-control', :size => '24x4' %>
      </div>
    </div>
    <div class="form-group">
      <div class="col-sm-offset-2 col-sm-4">
        <%= f.submit submit_button_text, :class => 'btn btn-primary' %>
        <% if @folder.id %>
            <%= link_to 'Cancel', folder_path(@folder.id), :class=>'btn btn-default' %>
        <% else %>
            <%= link_to 'Cancel', folders_path, :class=>'btn btn-default' %>
        <% end %>
      </div>
    </div>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
commonwealth-vlr-engine-0.0.7 app/views/folders/_new_edit_form_fields.html.erb
commonwealth-vlr-engine-0.0.4 app/views/folders/_new_edit_form_fields.html.erb
commonwealth-vlr-engine-0.0.3 app/views/folders/_new_edit_form_fields.html.erb
commonwealth-vlr-engine-0.0.2 app/views/folders/_new_edit_form_fields.html.erb
commonwealth-vlr-engine-0.0.1 app/views/folders/_new_edit_form_fields.html.erb