Sha256: eadca3813aa4a88529e913825970ee4131413708bff80896e1e01c02cf196914

Contents?: true

Size: 1.74 KB

Versions: 6

Compression:

Stored size: 1.74 KB

Contents

- @page_title = t('tienda.tax_rates.tax_rates')

.row
  .col-md-12
    %h1.page-header
      = t('tienda.tax_rates.tax_rates')
      -# %small Lorem ipsum dolor
/ /. ROW
.row
  .col-md-12
    %p.pull-right
      = link_to t('tienda.tax_rates.back_to_tax_rates'), :tax_rates, class: 'btn btn-default'

.panel.panel-default
  .panel-body
    = form_for @tax_rate do |f|
      = f.error_messages
      = field_set_tag t('tienda.tax_rates.rate_details') do
        .row
          .col-md-6
            .form-group
              = f.label :name, t('tienda.tax_rates.name')
              = f.text_field :name, class: 'focus form-control'
          .col-md-6
            .form-group
              = f.label :rate, t('tienda.tax_rates.rate')
              = f.text_field :rate, class: 'form-control'

      = field_set_tag t('tienda.tax_rates.country_restriction') do
        .row
          .col-md-12
            .form-group
              = f.select :address_type, Tienda::TaxRate::ADDRESS_TYPES.map { |a| [t('tienda.tax_rates.address_type_option', address: t("tienda.tax_rates.#{a}")).html_safe, a]}, {}, class: 'form-control'
        .row
          .col-md-12
            .form-group
              = f.collection_select :country_ids, Tienda::Country.ordered, :id, :name, {}, {class: 'form-control', multiple: true, data: {placeholder: t('tienda.tax_rates.all_countries') }}
      .row
        .col-md-12
          .form-group
            - unless @tax_rate.new_record?
              %span.pull-right= link_to t('tienda.delete'), @tax_rate, class: 'btn btn-danger', method: :delete, data: {confirm: t('tienda.tax_rates.delete_confirmation') }
            = f.submit t('tienda.submit'), class: 'btn btn-primary'
            = link_to t('tienda.cancel'), :tax_rates, class: 'btn btn-default'

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
tienda-2.1.3 app/views/tienda/tax_rates/form.html.haml
tienda-2.1.2 app/views/tienda/tax_rates/form.html.haml
tienda-2.1.1 app/views/tienda/tax_rates/form.html.haml
tienda-2.1.0 app/views/tienda/tax_rates/form.html.haml
tienda-2.0.2 app/views/tienda/tax_rates/form.html.haml
tienda-2.0.1 app/views/tienda/tax_rates/form.html.haml