mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 11:39:18 +00:00
[major] upgrade to bootstrap 3
This commit is contained in:
@@ -56,12 +56,12 @@ var blog = {
|
||||
b.page_name = encodeURIComponent(b.page_name);
|
||||
|
||||
$(repl('<div class="row">\
|
||||
<div class="col col-lg-1">\
|
||||
<div class="col-md-1">\
|
||||
<div class="avatar avatar-medium" style="margin-top: 6px;">\
|
||||
<img src="%(avatar)s" />\
|
||||
</div>\
|
||||
</div>\
|
||||
<div class="col col-lg-11">\
|
||||
<div class="col-md-11">\
|
||||
<h4><a href="%(page_name)s">%(title)s</a></h4>\
|
||||
<p>%(content)s</p>\
|
||||
<p style="color: #aaa; font-size: 90%">\
|
||||
@@ -77,7 +77,7 @@ var blog = {
|
||||
.parent().append("<div class='text-muted'>Nothing more to show.</div>");
|
||||
} else {
|
||||
$("#next-page").toggle(false)
|
||||
.parent().append("<div class='alert'>No blogs written yet.</div>");
|
||||
.parent().append("<div class='alert alert-warning'>No blogs written yet.</div>");
|
||||
}
|
||||
} else {
|
||||
$("#next-page").toggle(true);
|
||||
|
||||
@@ -11,7 +11,7 @@ $(document).ready(function() {
|
||||
}
|
||||
if(n_comments > 50) {
|
||||
$(".add-comment").toggle(false)
|
||||
.parent().append("<div class='alert'>Comments are closed.</div>")
|
||||
.parent().append("<div class='alert alert-warning'>Comments are closed.</div>")
|
||||
}
|
||||
$(".add-comment").click(function() {
|
||||
$("#comment-form").toggle();
|
||||
@@ -54,7 +54,7 @@ $(document).ready(function() {
|
||||
$(".no_comment").toggle(false);
|
||||
$(".add-comment").toggle(false);
|
||||
$("#comment-form")
|
||||
.replaceWith("<div class='alert'>Thank you for your comment!</div>")
|
||||
.replaceWith("<div class='alert alert-success'>Thank you for your comment!</div>")
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -133,16 +133,16 @@ $.extend(wn.cart, {
|
||||
if(doc.description === doc.item_name) doc.description = "";
|
||||
|
||||
$(repl('<div class="row">\
|
||||
<div class="col col-lg-9 col-sm-9">\
|
||||
<div class="col-md-9 col-sm-9">\
|
||||
<div class="row">\
|
||||
<div class="col col-lg-3">%(image_html)s</div>\
|
||||
<div class="col col-lg-9">\
|
||||
<div class="col-md-3">%(image_html)s</div>\
|
||||
<div class="col-md-9">\
|
||||
<h4><a href="%(page_name)s">%(item_name)s</a></h4>\
|
||||
<p>%(description)s</p>\
|
||||
</div>\
|
||||
</div>\
|
||||
</div>\
|
||||
<div class="col col-lg-3 col-sm-3 text-right">\
|
||||
<div class="col-md-3 col-sm-3 text-right">\
|
||||
<div class="input-group item-update-cart">\
|
||||
<input type="text" placeholder="Qty" value="%(qty)s" \
|
||||
data-item-code="%(item_code)s" class="text-right">\
|
||||
@@ -166,14 +166,14 @@ $.extend(wn.cart, {
|
||||
}
|
||||
|
||||
var $tax_row = $(repl('<div class="row">\
|
||||
<div class="col col-lg-9 col-sm-9">\
|
||||
<div class="col-md-9 col-sm-9">\
|
||||
<div class="row">\
|
||||
<div class="col col-lg-9 col-offset-3">' +
|
||||
<div class="col-md-9 col-md-offset-3">' +
|
||||
(shipping_selector || '<p>%(description)s</p>') +
|
||||
'</div>\
|
||||
</div>\
|
||||
</div>\
|
||||
<div class="col col-lg-3 col-sm-3 text-right">\
|
||||
<div class="col-md-3 col-sm-3 text-right">\
|
||||
<p' + (shipping_selector ? ' style="margin-top: 5px;"' : "") + '>%(formatted_tax_amount)s</p>\
|
||||
</div>\
|
||||
</div>', doc)).appendTo($cart_taxes);
|
||||
@@ -209,9 +209,9 @@ $.extend(wn.cart, {
|
||||
$(repl('<div class="accordion-group"> \
|
||||
<div class="accordion-heading"> \
|
||||
<div class="row"> \
|
||||
<div class="col col-lg-10 address-title" \
|
||||
<div class="col-md-10 address-title" \
|
||||
data-address-name="%(name)s"><strong>%(name)s</strong></div> \
|
||||
<div class="col col-lg-2"><input type="checkbox" \
|
||||
<div class="col-md-2"><input type="checkbox" \
|
||||
data-address-name="%(name)s"></div> \
|
||||
</div> \
|
||||
</div> \
|
||||
|
||||
@@ -40,7 +40,7 @@ window.render_product_list = function(data) {
|
||||
if(data.length < 10) {
|
||||
if(!table) {
|
||||
$(".more-btn")
|
||||
.replaceWith("<div class='alert'>No products found.</div>");
|
||||
.replaceWith("<div class='alert alert-warning'>No products found.</div>");
|
||||
} else {
|
||||
$(".more-btn")
|
||||
.replaceWith("<div class='text-muted'>Nothing more to show.</div>");
|
||||
|
||||
Reference in New Issue
Block a user