Sha256: 294d06fbd5d3b0ecaefd6f3f9d8572ac5ed3ff7f295073982c9e3a80be8a31b4

Contents?: true

Size: 1.39 KB

Versions: 3

Compression:

Stored size: 1.39 KB

Contents

- 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

= form_for @store, url: comable.admin_store_path, method: :patch do |f|
  .panel.panel-inverse
    .panel-heading
      .panel-title
        = Comable.t('admin.nav.stores.edit')

    .panel-body
      .form-horizontal
        .form-group
          .col-sm-3.control-label
            = f.label :name
          .col-sm-6
            = f.text_field :name, placeholder: f.object.class.default_name

        .form-group
          .col-sm-3.control-label
            = f.label :meta_keywords
          .col-sm-6
            = f.text_field :meta_keywords

        .form-group
          .col-sm-3.control-label
            = f.label :meta_description
          .col-sm-6
            = f.text_field :meta_description

        .form-group
          .col-sm-3.control-label
            = f.label :email_sender
          .col-sm-6
            = f.email_field :email_sender

        .form-group
          .col-sm-offset-3.col-sm-6
            .checkbox
              = f.label :email_activate_flag do
                = f.check_box :email_activate_flag
                = f.object.class.human_attribute_name(:email_activate_flag)

    .panel-footer.text-right
      = f.submit Comable.t('admin.actions.update')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable_backend-0.3.2 app/views/comable/admin/store/_form.slim
comable_backend-0.3.1 app/views/comable/admin/store/_form.slim
comable_backend-0.3.0 app/views/comable/admin/store/_form.slim