alert changes for bootstrap 2
This commit is contained in:
@@ -45,7 +45,7 @@ function do_search (event, tab) {
|
|||||||
|
|
||||||
// in case of slow data load, let the user know
|
// in case of slow data load, let the user know
|
||||||
$(target).html(
|
$(target).html(
|
||||||
'<div class="span3 alert-message notice"><p>Waiting for results...</p></div>'
|
'<div class="span3 alert"><p>Waiting for results...</p></div>'
|
||||||
);
|
);
|
||||||
|
|
||||||
// submit the query and put results into the tab pane
|
// submit the query and put results into the tab pane
|
||||||
@@ -53,14 +53,14 @@ function do_search (event, tab) {
|
|||||||
function(response, status, xhr) {
|
function(response, status, xhr) {
|
||||||
if (status !== "success") {
|
if (status !== "success") {
|
||||||
$(target).html(
|
$(target).html(
|
||||||
'<div class="span6 alert-message error">' +
|
'<div class="span6 alert alert-error">' +
|
||||||
'<p>Search failed! Please contact your site administrator.</p></div>'
|
'<p>Search failed! Please contact your site administrator.</p></div>'
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (response === "") {
|
if (response === "") {
|
||||||
$(target).html(
|
$(target).html(
|
||||||
'<div class="span3 alert-message info"><p>No matching records.</p></div>'
|
'<div class="span3 alert alert-info"><p>No matching records.</p></div>'
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,40 +1,40 @@
|
|||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row nd_herorow">
|
<div class="row nd_herorow">
|
||||||
<div class="span10 offset3">
|
<div class="span8 offset2">
|
||||||
[% IF params.failed %]
|
[% IF params.failed %]
|
||||||
<div class="alert-message error fade in" data-alert="on">
|
<div class="alert alert-error fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>Incorrect username or password, please try again.</p>
|
Incorrect username or password, please try again.
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF params.logout %]
|
[% IF params.logout %]
|
||||||
<div class="alert-message notice fade in" data-alert="on">
|
<div class="alert fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>You are now logged out.</p>
|
You are now logged out.
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF params.nosuchdevice %]
|
[% IF params.nosuchdevice %]
|
||||||
<div class="alert-message notice fade in" data-alert="on">
|
<div class="alert fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>Sorry, no such device is known.</p>
|
Sorry, no such device is known.
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF vars.notfound %]
|
[% IF vars.notfound %]
|
||||||
<div class="alert-message notice fade in" data-alert="on">
|
<div class="alert fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>Sorry, page not found.
|
Sorry, page not found.
|
||||||
<a href="http://sourceforge.net/tracker/?group_id=80033&atid=558508" target="_blank">Report a Bug?</a></p>
|
<a href="http://sourceforge.net/tracker/?group_id=80033&atid=558508" target="_blank">Report a Bug?</a>
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
[% IF NOT session.user %]
|
[% IF NOT session.user %]
|
||||||
<div class="alert-message success fade in" data-alert="on">
|
<div class="alert alert-success fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>Log in to the Demo with username "demo" and password "demo".</p>
|
Log in to the Demo with username "demo" and password "demo".
|
||||||
</div>
|
</div>
|
||||||
[% ELSE %]
|
[% ELSE %]
|
||||||
<div class="alert-message success fade in" data-alert="on">
|
<div class="alert alert-success fade in">
|
||||||
<a class="close" href="#">×</a>
|
<a class="close" data-dismiss="alert">×</a>
|
||||||
<p>Hit <strong>Enter</strong> in the Search box to view the current Inventory (<em>temporary feature</em>).</p>
|
Hit <strong>Enter</strong> in the Search box to view the current Inventory (<em>temporary feature</em>).
|
||||||
</div>
|
</div>
|
||||||
[% END %]
|
[% END %]
|
||||||
<div class="hero-unit">
|
<div class="hero-unit">
|
||||||
|
|||||||
Reference in New Issue
Block a user