spree_zone_pricing 0.1.54 → 0.1.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
| @@ -6,30 +6,7 @@ Spree::Admin::VariantsController.class_eval do | |
| 6 6 |  | 
| 7 7 | 
             
            		def update_zone_prices
         | 
| 8 8 |  | 
| 9 | 
            -
            			 | 
| 10 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 11 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 12 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 13 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 14 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 15 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 16 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 17 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 18 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 19 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 20 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 21 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 22 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 23 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 24 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 25 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 26 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 27 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 28 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 29 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 30 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 31 | 
            -
            			Rails.logger.info ">>>>>>>>>>>>>>>>>>>>>>"
         | 
| 32 | 
            -
            			Rails.logger.info "<<<<<<<<<<<<<<<<<<<<<<"
         | 
| 9 | 
            +
            			#Here should update the zone/currency prices
         | 
| 33 10 |  | 
| 34 11 | 
             
            		end
         | 
| 35 12 |  | 
| @@ -0,0 +1,6 @@ | |
| 1 | 
            +
            <div class="box" data-hook="admin_zone_currencies_options_index_search">
         | 
| 2 | 
            +
            	<h3>Options</h3>
         | 
| 3 | 
            +
            	<ul class="sidebar" data-hook="admin_configurations_sidebar_menu">
         | 
| 4 | 
            +
            	  <li<% if selected == "zone_currencies" %> class="active"<% end %>><a href="<%= admin_zone_currencies_path %>">Zone Currencies</a></li>
         | 
| 5 | 
            +
            	  <li<% if selected == "currency_prices" %> class="active"<% end %>><a href="<%= admin_currency_prices_path %>">Currency Prices</a></li>
         | 
| 6 | 
            +
            </div>
         | 
| @@ -1 +1,31 @@ | |
| 1 | 
            +
            <h1>Listing Zone Currencies</h1>
         | 
| 1 2 |  | 
| 3 | 
            +
            <table class="index" id="listing_orders" data-hook>
         | 
| 4 | 
            +
              <thead>
         | 
| 5 | 
            +
                <tr data-hook="admin_orders_index_headers">
         | 
| 6 | 
            +
                  <th><%= t(:zones) %></th>
         | 
| 7 | 
            +
                  <th><%= t(:order) %></th>
         | 
| 8 | 
            +
                  <th data-hook="admin_zone_currencies_index_header_actions"></th>
         | 
| 9 | 
            +
                </tr>
         | 
| 10 | 
            +
              </thead>
         | 
| 11 | 
            +
              <tbody>
         | 
| 12 | 
            +
              <% @zone_currencies.each do |zone_currency| %>
         | 
| 13 | 
            +
                <tr data-hook="admin_zone_currencies_index_rows">
         | 
| 14 | 
            +
                  <%
         | 
| 15 | 
            +
                  zone = Zone.find(zone_currency.zone_id)
         | 
| 16 | 
            +
                  %>
         | 
| 17 | 
            +
                  <td><%= link_to zone.name, edit_admin_zone_currency_path(zone_currency) %></td>
         | 
| 18 | 
            +
                  <td><%= zone_currency.order_id %></td>
         | 
| 19 | 
            +
                  <td class='actions' data-hook="admin_zone_currencies_index_row_actions">
         | 
| 20 | 
            +
                    <%= link_to_edit_url edit_admin_zone_currency_path(zone_currency), :title => "admin_edit_#{dom_id(zone_currency)}" %>
         | 
| 21 | 
            +
                  </td>
         | 
| 22 | 
            +
                </tr>
         | 
| 23 | 
            +
              <% end %>
         | 
| 24 | 
            +
              </tbody>
         | 
| 25 | 
            +
            </table>
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            <%= paginate @zone_currencies %>
         | 
| 28 | 
            +
             | 
| 29 | 
            +
            <% content_for :sidebar do %>
         | 
| 30 | 
            +
              <%= render :partial => 'spree/admin/shared/sidebar_zone_currencies', :locals => { :selected => "zone_currencies" } %>
         | 
| 31 | 
            +
            <% end %>
         | 
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: spree_zone_pricing
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0.1. | 
| 4 | 
            +
              version: 0.1.55
         | 
| 5 5 | 
             
              prerelease: 
         | 
| 6 6 | 
             
            platform: ruby
         | 
| 7 7 | 
             
            authors:
         | 
| @@ -28,6 +28,7 @@ files: | |
| 28 28 | 
             
            - app/views/spree/admin/currency_prices/edit.html.erb
         | 
| 29 29 | 
             
            - app/views/spree/admin/currency_prices/index.html.erb
         | 
| 30 30 | 
             
            - app/views/spree/admin/currency_prices/new.html.erb
         | 
| 31 | 
            +
            - app/views/spree/admin/shared/_sidebar_zone_currencies.html.erb
         | 
| 31 32 | 
             
            - app/views/spree/admin/zone_currencies/_form.html.erb
         | 
| 32 33 | 
             
            - app/views/spree/admin/zone_currencies/edit.html.erb
         | 
| 33 34 | 
             
            - app/views/spree/admin/zone_currencies/index.html.erb
         |