Sha256: 7c2195766f4b2fce4da566fc6f3a9b17733176aa6a221d63179ac8fec07ac918

Contents?: true

Size: 1.51 KB

Versions: 19

Compression:

Stored size: 1.51 KB

Contents

- content_for :scripts do
  :javascript
    $(function() {
      if ($("#settings_flat_rate_shipping_true").is(":checked")) {
        $(".canada-post").hide();
      }
      $('#tabs').tabs({selected: #{@tab}});
      clearUIClasses();
      $(".flat-rate-toggle input:radio").change( function() {
        if ($("#settings_flat_rate_shipping_true").is(":checked")) {
          $(".canada-post").fadeOut(100);
        } else {
          $(".canada-post").fadeIn(100);
        }
      });
    });

%h1 Customize Forge: Site Settings
%p.info You can update general site settings on this page.  Exercise caution, changing some of these settings could cause unintended consequences.

= form_tag({:action => :update}, :method => "PUT") do
  #tabs
    %ul.tabbed
      %li= link_to "General Settings", '#general'
      - if Forge.config.mobile_layout
        %li= link_to "Mobile Settings", '#mobile'
      - if @menu_items.include?("video_feeds")
        %li= link_to "Video Feed Settings", '#video'
      - if @menu_items.include?("products")
        %li= link_to "eCommerce Settings", '#ecommerce'
    .spacer

    #general= render :partial => "general"
    - if Forge.config.mobile_layout
      #mobile= render :partial => "mobile"
    - if @menu_items.include?("video_feeds")
      #video= render :partial => "video_feed"

    - if @menu_items.include?("products")
      #ecommerce= render :partial => "ecommerce"


  #item-list-bottom
    .float-right
      Everything look good?
      = button_link "Save", "javascript:;", :class => "submit button"

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
forge-cli-0.1.10 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.9 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.8 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.7 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.6 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.5 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.4 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.3 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.2 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.1 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.1.0 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.18 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.17 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.16 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.15 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.14 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.13 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.12 lib/forge/app/views/forge/settings/show.html.haml
forge-cli-0.0.11 lib/forge/app/views/forge/settings/show.html.haml