Center align icons.
authorJan Schneider <jan@horde.org>
Thu, 25 Nov 2010 13:57:44 +0000 (14:57 +0100)
committerJan Schneider <jan@horde.org>
Thu, 25 Nov 2010 14:02:35 +0000 (15:02 +0100)
turba/templates/browse/column_headers.inc
turba/templates/browse/row.inc
turba/themes/default/screen.css

index 89497a8..e0556b1 100644 (file)
@@ -5,16 +5,16 @@
 <thead>
  <tr>
 <?php $col_count = count($this->columns) + 1; if ($this->showMark): $col_count++; ?>
-  <th class="item leftAlign" width="1%" style="cursor:pointer" onclick="document.contacts.checkAll.checked = !document.contacts.checkAll.checked; SelectAll();" nowrap="nowrap"><label for="checkAll" class="hidden"><?php echo _("Check All/None") ?></label><input type="checkbox" id="checkAll" name="checkAll" onclick="document.contacts.checkAll.checked = !document.contacts.checkAll.checked; SelectAll();" <?php echo Horde::getAccessKeyAndTitle(_("Check _All/None")) ?> /></th>
+  <th class="turba-browse-icon item" width="1%" style="cursor:pointer" onclick="document.contacts.checkAll.checked = !document.contacts.checkAll.checked; SelectAll();" nowrap="nowrap"><label for="checkAll" class="hidden"><?php echo _("Check All/None") ?></label><input type="checkbox" id="checkAll" name="checkAll" onclick="document.contacts.checkAll.checked = !document.contacts.checkAll.checked; SelectAll();" <?php echo Horde::getAccessKeyAndTitle(_("Check _All/None")) ?> /></th>
 <?php endif; ?>
 <?php if ($this->showEdit): $col_count++; ?>
-  <th class="item" width="1%"><?php echo Horde::img('edit.png', _("Edit")) ?></th>
+  <th class="turba-browse-icon item" width="1%"><?php echo Horde::img('edit.png', _("Edit")) ?></th>
 <?php endif; ?>
 <?php if ($this->showVcard): $col_count++; ?>
-  <th class="item" width="1%"><?php echo Horde::img('mime/vcard.png', _("vCard")) ?></th>
+  <th class="turba-browse-icon item" width="1%"><?php echo Horde::img('mime/vcard.png', _("vCard")) ?></th>
 <?php endif; ?>
 <?php if ($this->showGroup): $col_count++; ?>
-  <th class="item" width="1%"><?php echo Horde::img('group.png', _("List")) ?></th>
+  <th class="turba-browse-icon item" width="1%"><?php echo Horde::img('group.png', _("List")) ?></th>
 <?php endif; ?>
   <?php $s_url = Horde_Util::removeParameter(Horde::selfUrl(true), array('sortadd', 'sortby', 'sortdir')); for ($i = 0, $imax = count($this->columns); $i <= $imax; ++$i): ?>
     <?php $columnlabel = $GLOBALS['attributes'][$i == 0 ? 'name' : $this->getColumnName($i)]['label']; ?>
index ea02f51..3c11c47 100644 (file)
@@ -47,16 +47,16 @@ if ($ob->hasValue('__key')) {
 ?>
 <tr>
 <?php if ($this->showMark): ?>
-  <td><label for="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" class="hidden"><?php echo _("Select contact") ?></label><input type="checkbox" class="checkbox" name="objectkeys[]" id="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" value="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" /></td>
+  <td class="turba-browse-icon"><label for="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" class="hidden"><?php echo _("Select contact") ?></label><input type="checkbox" class="checkbox" name="objectkeys[]" id="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" value="<?php echo htmlspecialchars($ob->getSource() . ':' . $ob->getValue('__key')) ?>" /></td>
 <?php endif; ?>
 <?php if ($this->showEdit): ?>
-  <td><?php echo $edit_url ?></td>
+  <td class="turba-browse-icon"><?php echo $edit_url ?></td>
 <?php endif; ?>
 <?php if ($this->showVcard): ?>
-  <td><?php echo $vcard_url ?></td>
+  <td class="turba-browse-icon"><?php echo $vcard_url ?></td>
 <?php endif; ?>
 <?php if ($this->showGroup): ?>
-  <td><?php echo $ob->isGroup() ? Horde::img('group.png', _("Group")) : $own_icon ?></td>
+  <td class="turba-browse-icon"><?php echo $ob->isGroup() ? Horde::img('group.png', _("Group")) : $own_icon ?></td>
 <?php endif; ?>
   <td<?php if ($this->showSort && $this->isSortColumn(0)) echo ' class="linedRowSelectedCol"' ?>><?php
 echo $cell;
index ca3f7fa..05a2123 100644 (file)
@@ -69,6 +69,10 @@ table#addressbook-list th.sortdown {
     width: 1%;
 }
 
+.turba-browse-icon {
+    align: center;
+}
+
 /* Duplicates */
 .turba-duplicate {
     overflow: auto;