Sha256: 953860f41d47ec2debd973be7f9fb6311889a974866f1a1c7a11730c4b5b5752

Contents?: true

Size: 1.39 KB

Versions: 2

Compression:

Stored size: 1.39 KB

Contents

<div class="panel panel-default">
    <div class="panel-heading ui-draggable-handle">
        <h4><span class="fa fa-cogs"></span> <%= t('plugin.ecommerce.e_commerce_settings') %></h4>
    </div>
    <%= form_tag(action: :saved, :method => "post", :class => "validate-settings") do %>
        <div class="panel-body">

            <div class="form-group col-md-6">
                <label><%= t('plugin.ecommerce.table.currency_unit') %></label><br>
                <%= select_tag( "setting[current_unit]", options_for_select(e_get_currency_units.collect{|k, x| ["#{x['name']} (#{x['symbol']})", x['code']]}, @setting[:current_unit] || 'USD'), class: "form-control required") %>
            </div>

            <div class="form-group col-md-6">
                <label><%= t('plugin.ecommerce.table.currency_weight') %></label><br>
                <%= select_tag( "setting[current_weight]",  options_for_select(e_get_currency_weight.collect{|k,x| ["#{x['name']} (#{x['code']})", x['code']]}, @setting[:current_weight] || 'kg'), class: "form-control required") %>
            </div>

        </div>
        <div class="panel-footer">
            <a class="btn btn-default" href="<%= url_for action: :index %>" role="back"><%= t('camaleon_cms.admin.button.back')%></a>
            <button class="btn btn-primary pull-right" type="submit"><%= t('camaleon_cms.admin.button.submit')%></button>
        </div>
    <% end %>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
camaleon_ecommerce-1.2 app/views/plugins/ecommerce/admin/settings/index.html.erb
camaleon_ecommerce-1.1 app/views/plugins/ecommerce/admin/settings/index.html.erb