52 lines
1.9 KiB
Plaintext
52 lines
1.9 KiB
Plaintext
doctype html
|
|
html lang="en"
|
|
head
|
|
meta charset="utf-8"
|
|
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
|
|
|
|
body
|
|
= render 'suppliers/application/top_menu'
|
|
main.main-section
|
|
.container
|
|
.content.main-content
|
|
- if flash[:alert].present?
|
|
.alert.alert-error
|
|
a.close data-dismiss="alert" ×
|
|
div= flash[:alert]
|
|
- if flash[:notice].present?
|
|
.alert.alert-success
|
|
a.close data-dismiss="alert" ×
|
|
div= flash[:notice]
|
|
- if current_supplier.closed?
|
|
.row.supplier-is-closed
|
|
.span12
|
|
.alert.alert-block
|
|
button.close{data-dismiss="alert"} x
|
|
p = t('supplier.you_are_currently_closed_alert')
|
|
= form_tag supplier_mark_as_open_path do
|
|
= submit_tag t('supplier.mark_as_open_button'), class: [:btn, 'btn-primary']
|
|
.row
|
|
.span12
|
|
= content_for?(:content) ? yield(:content) : yield
|
|
- if content_for?(:row)
|
|
.row= yield :row
|
|
.row
|
|
.span12
|
|
#ember-app-container
|
|
script#alert-template[type="text/html"]= mustache_template 'supplier/alert'
|
|
= yield :footer
|
|
javascript:
|
|
jQuery(function(){#{onload_javascript}});
|