doctype html
html lang="en"
  head
    meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1"
    meta name="viewport" content="width=device-width, initial-scale=1.0"
    title= content_for?(:title) ? yield(:title) : application_title
    = csrf_meta_tags

    /! Le HTML5 shim, for IE6-8 support of HTML elements
    /[if lt IE 9]
      = javascript_include_tag "http://html5shim.googlecode.com/svn/trunk/html5.js"
    = stylesheet_link_tag "supplier/foundation1/application", media: "all"
    link href="/favicon.ico" rel="shortcut icon"
    = render 'suppliers/application/head'
    = javascript_include_tag "supplier/foundation1/application"
    = yield :head
    /= javascript_include_tag "https://maps.googleapis.com/maps/api/js?v=3.exp&sensor=false&libraries=places&language=#{I18n.locale}"

  body
    = render 'suppliers/application/top_menu'
    main.main-section
      .container
        .content.main-content
          .general-alerts
            - if flash[:alert].present?
              .alert-box.warning
                div= flash[:alert]
                a.close data-dismiss="alert" &#215;
            - if flash[:notice].present?
              .alert-box
                div= flash[:notice]
                a.close data-dismiss="alert" &#215;
          - if current_supplier.closed?
            .supplier-is-closed
              span data-t="supplier.you_are_currently_closed_alert"
              = form_tag supplier_mark_as_open_path do
                / = submit_tag t('supplier.mark_as_open_button'), class: ['open-supplier-button']
                a.supplier-open-shop href="javascript:void(0)" onclick="$(this).parents('form').submit()"
                  span data-t="supplier.open_for_orders"
              a.close{data-dismiss="alert"} &times;
          .row
            .span12
              = content_for?(:content) ? yield(:content) : yield
          - if content_for?(:row)
            .row= yield :row
          .row
            .large-12.columns
              #ember-app-container
      = yield :footer
      javascript:
        jQuery(function(){#{onload_javascript}});
