Sha256: fc889f48daaec8e416ef7fd62f15c4a3ea872b9d8e1bb0bedd3fa809c5dc30fa

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

= form_for(@store, url: comable.admin_store_path(@store)) do |f|
  - if @store.errors.any?
    #error_explanation
      h2
        = pluralize(@store.errors.count, "error")
        | prohibited this store from being saved:

      ul
        - @store.errors.full_messages.each do |message|
          li = message

  .name
    = f.label :name do
      span = @store.class.human_attribute_name(:name)
      span = f.text_field :name

  .meta_keyword
    = f.label :meta_keyword do
      span = @store.class.human_attribute_name(:meta_keyword)
      span = f.text_field :meta_keyword

  .meta_description
    = f.label :meta_description do
      span = @store.class.human_attribute_name(:meta_description)
      span = f.text_field :meta_description

  .email_sender
    = f.label :email_sender do
      span = @store.class.human_attribute_name(:email_sender)
      span = f.email_field :email_sender

  .email_activate_flag
    = f.label :email_activate_flag do
      span = f.check_box :email_activate_flag
      span = @store.class.human_attribute_name(:email_activate_flag)

  .actions
    = f.submit

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comable_backend-0.2.3 app/views/comable/admin/store/_form.slim
comable_backend-0.2.2 app/views/comable/admin/store/_form.slim
comable_backend-0.2.1 app/views/comable/admin/store/_form.slim
comable_backend-0.2.0 app/views/comable/admin/store/_form.slim