Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (38 sloc) 1.06 KB
<%= form_for(@article) do |f| %>
<%= f.error_messages %>
<p class="required">
<%= f.label :name %>
<%= f.text_field :name %>
</p>
<p class="required">
<%= f.label :text %>
<%= f.rte_field :text, :toolbar => 'basic', :rows => 8, :cols => 60 %>
</p>
<p class="required">
<%= f.label :published_at %>
<%= f.calendar_field :published_at, :hide_on_pick => true %>
</p>
<p class="required">
<%= f.label :category_name %>
<%= f.autocomplete_field :category_name, :url => categories_path(:format => :js) %>
</p>
<p class="required">
<%= f.label :marker_color %>
<%= f.colorpicker_field :marker_color %>
</p>
<p>
<%= f.label :rating %>
<%= f.rater :rating %>
</p>
<p>
<%= f.label :completeness %>
<%= f.slider :completeness, :update => 'slider-display' %><span id="slider-display"></span>%
</p>
<p>
<%= f.label :tags_string, "Tags" %>
<%= f.tags_field :tags_string, :tags => Tag.names %>
</p>
<p class="buttons">
<%= f.submit f.object.new_record? ? 'Create' : 'Update' %>
</p>
<% end -%>