From cbee0d31286ce9117f84fab4570b2d56292f4b98 Mon Sep 17 00:00:00 2001 From: Thomas Tanghus Date: Thu, 3 May 2012 13:39:10 +0200 Subject: [PATCH] Contacts: Fix paths and improve markup and css in address book overview. --- apps/contacts/css/contacts.css | 7 +++--- apps/contacts/templates/index.php | 4 ++-- .../templates/part.chooseaddressbook.php | 2 +- .../part.chooseaddressbook.rowfields.php | 23 +++++++++++++++---- 4 files changed, 25 insertions(+), 11 deletions(-) diff --git a/apps/contacts/css/contacts.css b/apps/contacts/css/contacts.css index a19e0a222f..4b09e810bb 100644 --- a/apps/contacts/css/contacts.css +++ b/apps/contacts/css/contacts.css @@ -38,15 +38,16 @@ dl.form { width: 100%; float: left; clear: right; margin: 0; padding: 0; } .loading { background: url('%webroot%/core/img/loading.gif') no-repeat center !important; /*cursor: progress; */ cursor: wait; } .ui-autocomplete-loading { background: url('%webroot%/core/img/loading.gif') right center no-repeat; } .float { float: left; } -.action { border: inherit; background: inherit; } +.svg { border: inherit; background: inherit; } .listactions { height: 1em; width:60px; float: left; clear: right; } -.add,.edit,.delete,.mail, .globe, .upload, .cloud { cursor: pointer; width: 20px; height: 20px; margin: 0; float: left; position:relative; opacity: 0.1; } -.add:hover,.edit:hover,.delete:hover,.mail:hover, .globe:hover, .upload:hover, .cloud:hover { opacity: 1.0 } +.add,.edit,.delete,.mail, .globe, .upload, .download, .cloud { cursor: pointer; width: 20px; height: 20px; margin: 0; float: left; position:relative; opacity: 0.1; } +.add:hover,.edit:hover,.delete:hover,.mail:hover, .globe:hover, .upload:hover, .download:hover .cloud:hover { opacity: 1.0 } .add { background:url('%webroot%/core/img/actions/add.svg') no-repeat center; clear: both; } .delete { background:url('%webroot%/core/img/actions/delete.svg') no-repeat center; } .edit { background:url('%webroot%/core/img/actions/rename.svg') no-repeat center; } .mail { background:url('%webroot%/core/img/actions/mail.svg') no-repeat center; } .upload { background:url('%webroot%/core/img/actions/upload.svg') no-repeat center; } +.download { background:url('%webroot%/core/img/actions/download.svg') no-repeat center; } .cloud { background:url('%webroot%/core/img/places/picture.svg') no-repeat center; } /*.globe { background:url('../img/globe.svg') no-repeat center; }*/ .globe { background:url('%webroot%/core/img/actions/public.svg') no-repeat center; } diff --git a/apps/contacts/templates/index.php b/apps/contacts/templates/index.php index ab797deb16..a5db483b9a 100755 --- a/apps/contacts/templates/index.php +++ b/apps/contacts/templates/index.php @@ -10,8 +10,8 @@
- - + +
diff --git a/apps/contacts/templates/part.chooseaddressbook.php b/apps/contacts/templates/part.chooseaddressbook.php index 3b92d1a0c7..91b2f51c3b 100755 --- a/apps/contacts/templates/part.chooseaddressbook.php +++ b/apps/contacts/templates/part.chooseaddressbook.php @@ -19,7 +19,7 @@ for($i = 0; $i < count($option_addressbooks); $i++){ -

">

+

">

diff --git a/apps/contacts/templates/part.chooseaddressbook.rowfields.php b/apps/contacts/templates/part.chooseaddressbook.rowfields.php index 50bd192e4d..780920ea3c 100755 --- a/apps/contacts/templates/part.chooseaddressbook.rowfields.php +++ b/apps/contacts/templates/part.chooseaddressbook.rowfields.php @@ -1,5 +1,18 @@ -"; - echo ""; - echo "t("CardDav Link") . "\" class=\"action\">t("Download") . "\" class=\"action\">t("Edit") . "\" class=\"action\" onclick=\"Contacts.UI.Addressbooks.editAddressbook(this, " . $_['addressbook']["id"] . ");\">t("Delete") . "\" class=\"action\">"; + + " type="checkbox" onClick="Contacts.UI.Addressbooks.activation(this, )" > + + + + + + ');" title="t("CardDav Link"); ?>" class="svg action globe"> + + + " title="t("Download"); ?>" class="svg action download"> + + + " class="svg action edit" onclick="Contacts.UI.Addressbooks.editAddressbook(this, );"> + + + );" title="t("Delete"); ?>" class="svg action delete"> +