about summary refs log tree commit diff stats
path: root/test/integration/.keep
blob: e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 (plain) (blame)

#22bb22; background-color: #f0fff0 } /* Literal.String.Other */ .highlight .sr { color: #008800; background-color: #fff0ff } /* Literal.String.Regex */ .highlight .s1 { color: #dd2200; background-color: #fff0f0 } /* Literal.String.Single */ .highlight .ss { color: #aa6600; background-color: #fff0f0 } /* Literal.String.Symbol */ .highlight .bp { color: #003388 } /* Name.Builtin.Pseudo */ .highlight .fm { color: #0066bb; font-weight: bold } /* Name.Function.Magic */ .highlight .vc { color: #336699 } /* Name.Variable.Class */ .highlight .vg { color: #dd7700 } /* Name.Variable.Global */ .highlight .vi { color: #3333bb } /* Name.Variable.Instance */ .highlight .vm { color: #336699 } /* Name.Variable.Magic */ .highlight .il { color: #0000DD; font-weight: bold } /* Literal.Number.Integer.Long */
%fieldset#content
  .title-field
    = f.label :title
    = f.text_field :title, placeholder: "Title"
  .slug-field
    = f.label :slug, "https://feffernoo.se/thinks/"
    = f.text_field :slug, placeholder: "insert-slug-here"
  .body-field
    = f.label :body
    = f.cktext_area :body
%fieldset#details
  - if f.object.errors.any?
    #errors.details-module
      %h3 Error!
      %ul
        - f.object.errors.full_messages.each do |error|
          %li= error
  .details-module
    .tags-field
      = f.label :tag_list, "Tags"
      = f.text_field :tag_list, type: :tags, value: f.object.tag_list.join(",")
  .details-module
    = f.fields_for :records, Record.new do |builder|
      .should-create-record-field
        = builder.check_box :_destroy, {checked: false}, "0", "1"
        = builder.label :_destroy, "Create record?"
      .record-description-field
        = builder.text_area :description, placeholder: "record text"
  .details-module= f.submit