diff options
author | tuscanhobbit <tuscanhobbit@users.noreply.github.com> | 2014-06-28 23:14:34 +0200 |
---|---|---|
committer | tuscanhobbit <tuscanhobbit@users.noreply.github.com> | 2014-06-28 23:14:34 +0200 |
commit | dfe45342f6739bef9b3dff8e49641bb58998c757 (patch) | |
tree | 0a0af03f9cee403f5d05a97e0a6feab3708d34a6 /view | |
parent | dda949ee3b6f81662762f6598348bd68cf40ae83 (diff) | |
download | volse-hubzilla-dfe45342f6739bef9b3dff8e49641bb58998c757.tar.gz volse-hubzilla-dfe45342f6739bef9b3dff8e49641bb58998c757.tar.bz2 volse-hubzilla-dfe45342f6739bef9b3dff8e49641bb58998c757.zip |
Checkboxes were not aligned in connedit, added a table
Diffstat (limited to 'view')
-rw-r--r-- | view/css/mod_connedit.css | 13 | ||||
-rwxr-xr-x | view/tpl/abook_edit.tpl | 9 | ||||
-rwxr-xr-x | view/tpl/field_acheckbox.tpl | 19 | ||||
-rw-r--r-- | view/tpl/filestorage.tpl | 23 |
4 files changed, 27 insertions, 37 deletions
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 @@ <div id="abook-advanced-panel" style="display: block;"> -<span class="abook-them">{{$them}}</span><span class="abook-me">{{$me}}</span> -<br /> -<br /> +<table> +<tr><td></td><td class="abook-them">{{$them}}</td><td colspan="2" class="abook-me">{{$me}}</td><td></td></tr> +<tr><td colspan="5"><hr /></td></tr> {{foreach $perms as $prm}} {{include file="field_acheckbox.tpl" field=$prm}} {{/foreach}} -<br /> +<tr><td colspan="5"><hr /></td></tr> +</table> </div> 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 @@ - <div class='field acheckbox'> +<tr> + <td> <label for='id_{{$field.0}}'>{{$field.1}}</label> - <input type="checkbox" class="abook-edit-them" name='them_{{$field.0}}' id='them_id_{{$field.0}}' value="1" disabled="disabled" {{if $field.2}}checked="checked"{{/if}} /> - <input type="checkbox" class="abook-edit-me" name='{{$field.0}}' id='me_id_{{$field.0}}' value="{{$field.4}}" {{if $field.3}}checked="checked"{{/if}} />{{if $field.5}} <span class="permission-inherited">{{$inherited}}</span> {{/if}} + </td> + <td class="abook-them"> + <input type="checkbox" name='them_{{$field.0}}' id='them_id_{{$field.0}}' value="1" disabled="disabled" {{if $field.2}}checked="checked"{{/if}} /> + </td> + <td class="abook-me"> + <input type="checkbox" name='{{$field.0}}' id='me_id_{{$field.0}}' value="{{$field.4}}" {{if $field.3}}checked="checked"{{/if}} /> + </td> + <td> + {{if $field.5}}<span class="permission-inherited">{{$inherited}}</span> {{/if}} + </td> + <td> <span class='field_abook_help'>{{$field.6}}</span> - </div> + </td> +</tr>
\ 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}} - - <div class="generic-content-wrapper"> - {{if $limit}}{{$limitlabel}}{{$limit}}{{/if}} {{if $used}} {{$usedlabel}}{{$used}}{{/if}} - <br /> - <br /> - - {{foreach $files as $key => $items}} - {{foreach $items as $item}} - <div class="files-list-item"> - <a href="{{$baseurl}}/{{$item.id}}/edit" title="{{$edit}}"><i class="icon-pencil"></i></a> - <a href="{{$baseurl}}/{{$item.id}}/delete" title="{{$delete}}"><i class="icon-remove drop-icons"></i></a> - {{if ! $item.dir}}<a href="attach/{{$item.download}}">{{/if}}{{$item.title}}{{if ! $item.dir}}</a>{{/if}} - {{if ! $item.dir}} | {{$item.size}} bytes{{else}}{{$directory}}{{/if}} - -</div> - {{/foreach}} - {{/foreach}} - </div> - - <div class="clear"></div> - -{{/if}} |