appirits/comable

View on GitHub
backend/app/views/comable/admin/shipment_methods/_form.slim

Summary

Maintainability
Test Coverage
= error_messages_for @shipment_method

= form_for [comable, :admin, @shipment_method] do |f|
  .hidden
    = f.submit

  fieldset
    .col-md-3
      legend
        = Comable.t('admin.general')

    .col-md-9
      .form-group
        = f.label :name
        = f.text_field :name

      .form-group
        = f.label :fee
        = f.text_field :fee

      .form-group
        = f.label :traking_url
        = f.text_field :traking_url, placeholder: 'http://'

      .form-group
        .checkbox
          = f.label :activated_flag do
            = f.check_box :activated_flag
            = f.object.class.human_attribute_name(:activated_flag)