From dfe45342f6739bef9b3dff8e49641bb58998c757 Mon Sep 17 00:00:00 2001 From: tuscanhobbit Date: Sat, 28 Jun 2014 23:14:34 +0200 Subject: Checkboxes were not aligned in connedit, added a table --- view/css/mod_connedit.css | 13 +++++++------ view/tpl/abook_edit.tpl | 9 +++++---- view/tpl/field_acheckbox.tpl | 19 +++++++++++++++---- view/tpl/filestorage.tpl | 23 ----------------------- 4 files changed, 27 insertions(+), 37 deletions(-) delete mode 100644 view/tpl/filestorage.tpl diff --git a/view/css/mod_connedit.css b/view/css/mod_connedit.css index 83f167915..8b80b4e70 100644 --- a/view/css/mod_connedit.css +++ b/view/css/mod_connedit.css @@ -3,12 +3,12 @@ color: #000; } .abook-them { - margin-left: 375px; - margin-bottom: 15px; + padding: 5px; + text-align: center; } .abook-me { - margin-left: 36px; - margin-bottom: 15px; + padding: 5px 5px 5px 15px; + text-align: center; } .acheckbox { margin-bottom: 5px !important; @@ -27,7 +27,8 @@ .abook-edit-them, .abook-edit-me { float: left; - width: 100px !important; + margin-left: 10px; + margin-right: 10px; } .field_abook_help { float: left; @@ -148,4 +149,4 @@ #abook-advanced { margin-top: 15px; -} \ No newline at end of file +} diff --git a/view/tpl/abook_edit.tpl b/view/tpl/abook_edit.tpl index b8b01df4c..9b12b5f29 100755 --- a/view/tpl/abook_edit.tpl +++ b/view/tpl/abook_edit.tpl @@ -83,13 +83,14 @@
-{{$them}}{{$me}} -
-
+ + + {{foreach $perms as $prm}} {{include file="field_acheckbox.tpl" field=$prm}} {{/foreach}} -
+ +
{{$them}}{{$me}}


diff --git a/view/tpl/field_acheckbox.tpl b/view/tpl/field_acheckbox.tpl index f5dda4cc0..342491ded 100755 --- a/view/tpl/field_acheckbox.tpl +++ b/view/tpl/field_acheckbox.tpl @@ -1,6 +1,17 @@ -
+ + - - {{if $field.5}} {{$inherited}} {{/if}} + + + + + + + + + {{if $field.5}}{{$inherited}} {{/if}} + + {{$field.6}} -
+ + \ No newline at end of file diff --git a/view/tpl/filestorage.tpl b/view/tpl/filestorage.tpl deleted file mode 100644 index 1995b95e1..000000000 --- a/view/tpl/filestorage.tpl +++ /dev/null @@ -1,23 +0,0 @@ -{{if $files}} - -
- {{if $limit}}{{$limitlabel}}{{$limit}}{{/if}} {{if $used}} {{$usedlabel}}{{$used}}{{/if}} -
-
- - {{foreach $files as $key => $items}} - {{foreach $items as $item}} -
-      -      - {{if ! $item.dir}}{{/if}}{{$item.title}}{{if ! $item.dir}}{{/if}} - {{if ! $item.dir}} | {{$item.size}} bytes{{else}}{{$directory}}{{/if}} - -
- {{/foreach}} - {{/foreach}} -
- -
- -{{/if}} -- cgit v1.2.3