@jancborchardt Share via link suggestion implemented

master
Michał 'rysiek' Woźniak 2014-02-01 16:12:33 +01:00
parent bbedb4818e
commit ebb5b62b08
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,9 @@
.share-interface-container h3 {
font-weight:bold;
}
.share-interface-container label > h3 {
display:inline-block;
}
.share-interface-container input[type="checkbox"] {
vertical-align:middle;
}

View File

@ -14,10 +14,9 @@
prepare backend for direct submission, then fill-in the details of the form;
if JS is disabled, the submit button will be available, automagically
-->
<h3><?php p($l->t('Share via link')); ?></h3>
<!-- the checkbox that enables and disables the whole thing -->
<input type="checkbox" name="share-link" class="share-link displayable-control" value="0" id="share-link-<?php p($_['item_type']); ?>-<?php p($_['item_id']); ?>" <?php if (isset($_['link_share']['token'])): ?> checked="checked"<?php endif; ?>/>
<label for="share-link-<?php p($_['item_type']); ?>-<?php p($_['item_id']); ?>"><?php p($l->t('Share link')) ?></label>
<label for="share-link-<?php p($_['item_type']); ?>-<?php p($_['item_id']); ?>"><h3><?php p($l->t('Share via link')); ?></h3></label>
<!-- this should be visible only when the share-link checkbox is :checked -->
<div class="share-link-enabled-container displayable">
<!-- link container, contains the share link (duh) -->