From 2f699179880a5018e9e33d0de432555ff9396201 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Mon, 9 Feb 2015 08:32:43 +0000 Subject: [PATCH] fix css for addressbook, no more div.et2_container r51566: an other div to form issue, picture in addressbook index got 16px small r51568: cleaning up template and css --- addressbook/inc/class.addressbook_ui.inc.php | 11 +- addressbook/templates/default/app.css | 11 +- addressbook/templates/default/index.xet | 27 +---- addressbook/templates/pixelegg/app.css | 109 ++++++------------- addressbook/templates/pixelegg/app.less | 35 +----- 5 files changed, 55 insertions(+), 138 deletions(-) diff --git a/addressbook/inc/class.addressbook_ui.inc.php b/addressbook/inc/class.addressbook_ui.inc.php index 6e178ebcaf..e143a7a12c 100644 --- a/addressbook/inc/class.addressbook_ui.inc.php +++ b/addressbook/inc/class.addressbook_ui.inc.php @@ -312,12 +312,15 @@ class addressbook_ui extends addressbook_bo if (!isset($content['nm']['col_filter']['tid'])) $content['nm']['col_filter']['tid'] = $availabletypes[0]; if (count($this->content_types) > 1) { - $content['nm']['header_right'] = 'addressbook.index.right_addplus'; foreach($this->content_types as $tid => $data) { $sel_options['tid'][$tid] = $data['name']; } } + else + { + $this->tmpl->disableElement('col_filter[tid]'); + } // get the availible org-views plus the label of the contacts view of one org $sel_options['org_view'] = $this->org_views; if (isset($org_view)) $content['nm']['org_view'] = $org_view; @@ -924,7 +927,7 @@ window.egw_LAB.wait(function() { $list['list_name'] = $new_name; $new_id = $this->add_list(array('list_id' => (int)$list_id), $list['list_owner'],array(),$list); - + egw_json_response::get()->apply('egw.message', array( $new_id == $list_id ? lang('Distribution list renamed') : lang('List created'), 'success' @@ -1043,7 +1046,7 @@ window.egw_LAB.wait(function() { egw_session::appsession($session_name,'addressbook',$query); } return false; - + case 'document': if (!$document) $document = $this->prefs['default_document']; $document_merge = new addressbook_merge(); @@ -1745,7 +1748,7 @@ window.egw_LAB.wait(function() { { $icon = common::image('addressbook',$this->content_types[$tid]['name']); } - + // Legacy - from when icons could be anywhere if ($tid != 'n' && $this->content_types[$tid]['options']['icon']) { diff --git a/addressbook/templates/default/app.css b/addressbook/templates/default/app.css index f23494f07b..2aaf7d64a4 100644 --- a/addressbook/templates/default/app.css +++ b/addressbook/templates/default/app.css @@ -13,7 +13,7 @@ td.addressbook_sidebox_header { height: 20px; vertical-align: bottom; } -div#addressbook-view.et2_container { +#addressbook-view.et2_container { height: 0 !important; } td.addressbook_sidebox_toolbar { @@ -34,7 +34,7 @@ div#addressbook_view_sidebox img.photo { /** * new addressbook.edit */ -div#addressbook-edit.et2_container { +#addressbook-edit.et2_container { } div.addressbook_edit_general_picture { position: relative; @@ -85,12 +85,13 @@ input.et2_radiobox { /** * Index page */ -div#addressbook-index img.iphoto { +#addressbook-index img.iphoto { width: 100%; height: auto; } -#addressbook-index_org_view { - margin: 5px; +#addressbook-index_org_view, #addressbook-index_addressbook-index-right_add > div.et2_box_widget { + top: 0; + padding-top: 0; } #addressbook-edit_room { float:right; diff --git a/addressbook/templates/default/index.xet b/addressbook/templates/default/index.xet index 1236252282..c22d0cd95d 100644 --- a/addressbook/templates/default/index.xet +++ b/addressbook/templates/default/index.xet @@ -8,29 +8,12 @@ -