Skip to content
This repository has been archived by the owner on Oct 31, 2018. It is now read-only.

Commit

Permalink
Merge pull request #941 from owncloud/fix-checkboxes
Browse files Browse the repository at this point in the history
Fix checkboxes
  • Loading branch information
DeepDiver1975 committed Oct 13, 2015
2 parents 71d553c + 393507e commit c8e2dc8
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 26 deletions.
7 changes: 5 additions & 2 deletions css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,11 @@ button.category{margin:0 3px;}
display: block;
margin: 5px 0;
}
#event-time:after {
content: "";
display: table;
clear: both;
}
#event-time-from {
float: left;
}
Expand All @@ -214,9 +219,7 @@ button.category{margin:0 3px;}
width: 90px;
}
#event-allday {
display: inline-block;
margin: 7px 0;
width: 100%;
}
/* category input field leaves room for edit button
location input field leaves room for map button */
Expand Down
6 changes: 2 additions & 4 deletions templates/part.eventform.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,8 @@
</div>
</div>

<label id="event-allday">
<input id="allday_checkbox" type="checkbox"<?php if($_['allday']) {print_unescaped('checked="checked"');} ?> name="allday">
<?php p($l->t("All Day Event"));?>
</label>
<input id="allday_checkbox" class="checkbox" type="checkbox"<?php if($_['allday']) {print_unescaped('checked="checked"');} ?> name="allday">
<label id="event-allday" for="allday_checkbox"><?php p($l->t("All Day Event"));?></label>

<input id="advanced_options_button" type="button" class="submit" value="<?php p($l->t('Advanced options')); ?>">

Expand Down
34 changes: 14 additions & 20 deletions templates/part.share.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,12 @@
data-share-type="<?php p($sharee['share_type']); ?>">
<?php p($sharee['share_with'] . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_GROUP ? ' (group)' : '')); ?>
<span class="shareactions">
<label>
<input class="update sharepermissioncheckbox" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>>
<?php p($l->t('can edit')); ?>
</label>
<label>
<input class="share sharepermissioncheckbox" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>>
<?php p($l->t('can share')); ?>
</label>
<input id="checkbox-<?php p($sharee['share_with']) ?>-update" class="update sharepermissioncheckbox" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>>
<label for="checkbox-<?php p($sharee['share_with']) ?>-update"><?php p($l->t('can edit')); ?></label>

<input id="checkbox-<?php p($sharee['share_with']) ?>-share" class="share sharepermissioncheckbox" type="checkbox" <?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>>
<label for="checkbox-<?php p($sharee['share_with']) ?>-share"><?php p($l->t('can share')); ?></label>

<img src="<?php p(OCP\Util::imagePath('core', 'actions/delete.svg')); ?>" class="svg action delete"
title="<?php p($l->t('Unshare')); ?>">
</span>
Expand All @@ -74,18 +72,14 @@
data-share-type="<?php p($sharee['share_type']); ?>">
<?php p($sharee['share_with'] . ($sharee['share_type'] == OCP\Share::SHARE_TYPE_GROUP ? ' (group)' : '')); ?>
<span class="shareactions">
<label>
<input class="update" type="checkbox"
<?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>
disabled="disabled">
<?php p($l->t('can edit')); ?>
</label>
<label>
<input class="share" type="checkbox"
<?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>
disabled="disabled">
<?php p($l->t('can share')); ?>
</label>
<input class="update" type="checkbox"
<?php p(($sharee['permissions'] & OCP\PERMISSION_UPDATE?'checked="checked"':''))?>
disabled="disabled">
<label><?php p($l->t('can edit')); ?></label>
<input class="share" type="checkbox"
<?php p(($sharee['permissions'] & OCP\PERMISSION_SHARE?'checked="checked"':''))?>
disabled="disabled">
<label><?php p($l->t('can share')); ?></label>
</span>
</li>
<?php endforeach; ?>
Expand Down

0 comments on commit c8e2dc8

Please sign in to comment.