about summary refs log tree commit diff stats
path: root/app/views/admin/quotes/_form.html.haml
blob: 920835bc4129a7077500ec45b935e84000a467f0 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
%fieldset#content
  %h2 Quote ##{f.object.id}
  .halfbody-field
    = f.label :content
    = f.text_area :content
  %h3 Notes
  .halfbody-field
    = f.label :notes
    = f.text_area :notes
%fieldset#details
  - if f.object.errors.any?
    #errors.details-module
      %h3 Error!
      %ul
        - f.object.errors.full_messages.each do |error|
          %li= error
  - unless f.object.new_record?
    #entry-preview-link.details-module= link_to "View quote", quote_url(f.object.id), target: "entry-preview"
  .details-module
    .tags-field
      = f.label :tag_list, "Tags"
      = f.text_field :tag_list, type: :tags, value: f.object.tag_list.join(",")
  .details-module
    .published-field
      = f.label :state
      = f.select :state, Quote.state.options
  .details-module= f.submit