MINOR: Added label to the "Allow Drag and Drop" text so that clicking this will activate the checkbox

MINOR: Fixed line-height issues added in beta 3
This commit is contained in:
Ed 2012-05-31 19:50:33 -03:00
parent 4c77fff713
commit 5f4a217630
3 changed files with 10 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class GridFieldSortableRows implements GridField_HTMLProvider, GridField_ActionP
Requirements::javascript('SortableGridField/javascript/GridFieldSortableRows.js');
$args = array('Colspan' => count($gridField->getColumns()));
$args = array('Colspan' => count($gridField->getColumns()), 'ID' => $gridField->ID());
return array('header' => $forTemplate->renderWith('GridFieldSortableRows', $args));
}

View File

@ -2,6 +2,14 @@
border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows input[type=checkbox] {
height: auto;
}
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows {
line-height: 28px;
}
.cms table.ss-gridfield-table thead tr th.sortablerowsheading .gridfield-sortablerows button {
display: none;
}

View File

@ -1,7 +1,7 @@
<tr>
<th class="extra sortablerowsheading" colspan="$Colspan">
<div class="gridfield-sortablerows">
<input type="checkbox" value="1"$Checked/> <%t GridFieldSortableRows.ALLOW_DRAG_DROP "_Allow drag and drop re-ordering" %>
<input type="checkbox" id="{$ID}_AllowDragDropCheck" value="1"$Checked/> <label for="{$ID}_AllowDragDropCheck"><%t GridFieldSortableRows.ALLOW_DRAG_DROP "_Allow drag and drop re-ordering" %></label>
$SortableToggle
$PagenatorToggle
$SortToPage