mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
mujma: BUGFIX: Switched divs to tables, added namespaces, solved ticket http://support.silverstripe.com/gsoc/ticket/110 (merged from gsoc branch, r42792)
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@42985 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
c7231c6935
commit
4d9e93460d
@ -72,3 +72,48 @@ form fieldset {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Pagination */
|
||||||
|
|
||||||
|
ComplexTableField_Pagination {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination a {
|
||||||
|
font-size: 14px;
|
||||||
|
width: 1px;
|
||||||
|
height: 1px;
|
||||||
|
margin: 1px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination span {
|
||||||
|
display: inline;
|
||||||
|
color: red;
|
||||||
|
font-size: 14px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination div {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination_Next a,#ComplexTableField_Pagination_Previous a {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination_Next a div {
|
||||||
|
position: relative;
|
||||||
|
left: -20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination_Next a img {
|
||||||
|
position: relative;
|
||||||
|
top: -15px;
|
||||||
|
left: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ComplexTableField_Pagination_Previous a img {
|
||||||
|
position: relative;
|
||||||
|
top: -15px;
|
||||||
|
left: 35px;
|
||||||
|
}
|
||||||
|
@ -1,45 +1,44 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<% base_tag %>
|
<% base_tag %>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="right $PopupClasses">
|
<div class="right $PopupClasses">
|
||||||
$DetailForm
|
$DetailForm
|
||||||
<img src="cms/images/network-save.gif" class="ajaxloader" style="display: none" />
|
<img src="cms/images/network-save.gif" class="ajaxloader" style="display: none" />
|
||||||
</div>
|
</div>
|
||||||
<% if IsAddMode %>
|
<% if IsAddMode %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<% if ShowPagination %>
|
<% if ShowPagination %>
|
||||||
<div id="Pagination">
|
<table id="ComplexTableField_Pagination">
|
||||||
<% if PopupPrevLink %>
|
<tr>
|
||||||
<div id="Pagination_Previous">
|
<% if PopupPrevLink %>
|
||||||
<a href="$PopupPrevLink"><img src="cms/images/pagination/previousArrow.png" /></a>
|
<td id="ComplexTableField_Pagination_Previous">
|
||||||
<a href="$PopupPrevLink"><div>Previous</div></a>
|
<a href="$PopupPrevLink"><img src="cms/images/pagination/record-prev.png" /></a>
|
||||||
</div>
|
<a href="$PopupPrevLink"><div>Previous</div></a>
|
||||||
<% end_if %>
|
</td>
|
||||||
<% if TotalCount == 1 %>
|
<% end_if %>
|
||||||
<% else %>
|
<% if TotalCount == 1 %>
|
||||||
<% control pagination %>
|
<% else %>
|
||||||
<% if active %>
|
<td>
|
||||||
<a href="$link">$number</a>
|
<% control pagination %>
|
||||||
<% else %>
|
<% if active %>
|
||||||
<span>$number</span>
|
<a href="$link">$number</a>
|
||||||
<% end_if %>
|
<% else %>
|
||||||
<% end_control %>
|
<span>$number</span>
|
||||||
<% end_if %>
|
<% end_if %>
|
||||||
<% if PopupNextLink %>
|
<% end_control %>
|
||||||
<div id="Pagination_Next">
|
</td>
|
||||||
<a href="$PopupNextLink"><img src="cms/images/pagination/nextArrow.png" /></a>
|
<% end_if %>
|
||||||
<a href="$PopupNextLink"><div>Next</div></a>
|
<% if PopupNextLink %>
|
||||||
</div>
|
<td id="ComplexTableField_Pagination_Next">
|
||||||
<% end_if %>
|
<a href="$PopupNextLink"><img src="cms/images/pagination/record-next.png" /></a>
|
||||||
<% end_if %>
|
<a href="$PopupNextLink"><div>Next</div></a>
|
||||||
<% end_if %>
|
</td>
|
||||||
<script type="text/javascript">
|
<% end_if %>
|
||||||
divQ = $('Pagination').getElementsByTagName('div').length;
|
</td>
|
||||||
aQ = $('Pagination').getElementsByTagName('a').length - divQ + 1;
|
<% end_if %>
|
||||||
$('Pagination').style.width = aQ * 15 + 130 + "px";
|
<% end_if %>
|
||||||
</script>
|
</body>
|
||||||
</body>
|
|
||||||
</html>
|
</html>
|
Loading…
Reference in New Issue
Block a user