From a4a48dc4fee954a4f66996a43c2266e0d3b2d2b7 Mon Sep 17 00:00:00 2001 From: Benjamin Meichsner Date: Sun, 18 Oct 2009 14:19:02 +0200 Subject: [PATCH] Css fixes. --- app/views/ordering/order.rhtml | 80 +++++++++++++++---------------- public/stylesheets/main.css | 2 + public/stylesheets/print.css | 2 + public/stylesheets/sass/main.sass | 2 + 4 files changed, 46 insertions(+), 40 deletions(-) diff --git a/app/views/ordering/order.rhtml b/app/views/ordering/order.rhtml index fbec762b..f0fadd43 100644 --- a/app/views/ordering/order.rhtml +++ b/app/views/ordering/order.rhtml @@ -1,7 +1,7 @@ <%= render :partial => 'order_head' %> -
- <% form_tag(:action => 'saveOrder', :id => @order) do %> +<% form_tag(:action => 'saveOrder', :id => @order) do %> +

Artikel

@@ -38,8 +38,8 @@ end total += article_total -%> - + <%= order_article.article.name %> <%=h order_article.article.origin %> <%= @order.stockit? ? order_article.article.quantity_available : @unit[i] %> * <%=h order_article.article.unit %> @@ -65,46 +65,46 @@ <%= number_to_currency(article_total, :unit => "") %> € - - <%- i = i + 1 - end - end -%> + + <%- i = i + 1 + end + end -%>
+
+ + +<% end %> \ No newline at end of file diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index 5eb4f562..7974d43c 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -426,6 +426,8 @@ table#order { #order-footer #total-sum #order-button input, .article-info #total-sum #order-button input { background-color: #78B74E; color: #fff; } + #order-footer #total-sum #order-button input:disabled, .article-info #total-sum #order-button input:disabled { + background-color: red; } .article-info { z-index: 2; diff --git a/public/stylesheets/print.css b/public/stylesheets/print.css index f16a4a79..20f24d7f 100644 --- a/public/stylesheets/print.css +++ b/public/stylesheets/print.css @@ -426,6 +426,8 @@ table#order { #order-footer #total-sum #order-button input, .article-info #total-sum #order-button input { background-color: #78B74E; color: #fff; } + #order-footer #total-sum #order-button input:disabled, .article-info #total-sum #order-button input:disabled { + background-color: red; } .article-info { z-index: 2; diff --git a/public/stylesheets/sass/main.sass b/public/stylesheets/sass/main.sass index 4a8e955a..c8f70c0c 100644 --- a/public/stylesheets/sass/main.sass +++ b/public/stylesheets/sass/main.sass @@ -467,6 +467,8 @@ table#order input background-color: #78B74E color: #fff + input:disabled + background-color: red .article-info z-index: 2 width: 30em