Checkboxes were not aligned in connedit, added a table

This commit is contained in:
tuscanhobbit 2014-06-28 23:14:34 +02:00
parent dda949ee3b
commit dfe45342f6
4 changed files with 27 additions and 37 deletions

View File

@ -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;
}
}

View File

@ -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>

View File

@ -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>

View File

@ -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>&nbsp;&nbsp;&nbsp;&nbsp;
<a href="{{$baseurl}}/{{$item.id}}/delete" title="{{$delete}}"><i class="icon-remove drop-icons"></i></a>&nbsp;&nbsp;&nbsp;&nbsp;
{{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}}