restyle checkboxes in sidebar

This commit is contained in:
Hendrik Leppelsack 2015-09-25 11:54:26 +02:00
parent bf73665a35
commit 2ee36dc4de
3 changed files with 10 additions and 10 deletions

View file

@ -19,7 +19,7 @@
// in the LinkShareView to ease reusing it in future. Then, // in the LinkShareView to ease reusing it in future. Then,
// modifications (getting rid of IDs) are still necessary. // modifications (getting rid of IDs) are still necessary.
'{{#if isLinkShare}}' + '{{#if isLinkShare}}' +
'<input type="checkbox" name="expirationCheckbox" class="expirationCheckbox" id="expirationCheckbox" value="1" ' + '<input type="checkbox" name="expirationCheckbox" class="expirationCheckbox checkbox" id="expirationCheckbox" value="1" ' +
'{{#if isExpirationSet}}checked="checked"{{/if}} {{#if disableCheckbox}}disabled="disabled"{{/if}} />' + '{{#if isExpirationSet}}checked="checked"{{/if}} {{#if disableCheckbox}}disabled="disabled"{{/if}} />' +
'<label for="expirationCheckbox">{{setExpirationLabel}}</label>' + '<label for="expirationCheckbox">{{setExpirationLabel}}</label>' +
'<div class="expirationDateContainer {{#unless isExpirationSet}}hidden{{/unless}}">' + '<div class="expirationDateContainer {{#unless isExpirationSet}}hidden{{/unless}}">' +

View file

@ -16,12 +16,12 @@
var TEMPLATE = var TEMPLATE =
'{{#if shareAllowed}}' + '{{#if shareAllowed}}' +
'<span class="icon-loading-small hidden"></span>' + '<span class="icon-loading-small hidden"></span>' +
'<input type="checkbox" name="linkCheckbox" id="linkCheckbox" value="1" {{#if isLinkShare}}checked="checked"{{/if}} /><label for="linkCheckbox">{{linkShareLabel}}</label>' + '<input type="checkbox" name="linkCheckbox" id="linkCheckbox" class="checkbox" value="1" {{#if isLinkShare}}checked="checked"{{/if}} /><label for="linkCheckbox">{{linkShareLabel}}</label>' +
'<br />' + '<br />' +
'<label for="linkText" class="hidden-visually">{{urlLabel}}</label>' + '<label for="linkText" class="hidden-visually">{{urlLabel}}</label>' +
'<input id="linkText" {{#unless isLinkShare}}class="hidden"{{/unless}} type="text" readonly="readonly" value="{{shareLinkURL}}" />' + '<input id="linkText" {{#unless isLinkShare}}class="hidden"{{/unless}} type="text" readonly="readonly" value="{{shareLinkURL}}" />' +
' {{#if showPasswordCheckBox}}' + ' {{#if showPasswordCheckBox}}' +
'<input type="checkbox" name="showPassword" id="showPassword" {{#if isPasswordSet}}checked="checked"{{/if}} value="1" /><label for="showPassword">{{enablePasswordLabel}}</label>' + '<input type="checkbox" name="showPassword" id="showPassword" class="checkbox" {{#if isPasswordSet}}checked="checked"{{/if}} value="1" /><label for="showPassword">{{enablePasswordLabel}}</label>' +
' {{/if}}' + ' {{/if}}' +
'<div id="linkPass" {{#unless isPasswordSet}}class="hidden"{{/unless}}>' + '<div id="linkPass" {{#unless isPasswordSet}}class="hidden"{{/unless}}>' +
' <label for="linkPassText" class="hidden-visually">{{passwordLabel}}</label>' + ' <label for="linkPassText" class="hidden-visually">{{passwordLabel}}</label>' +
@ -31,7 +31,7 @@
' {{#if publicUpload}}' + ' {{#if publicUpload}}' +
'<div id="allowPublicUploadWrapper">' + '<div id="allowPublicUploadWrapper">' +
' <span class="icon-loading-small hidden"></span>' + ' <span class="icon-loading-small hidden"></span>' +
' <input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload" {{{publicUploadChecked}}} />' + ' <input type="checkbox" value="1" name="allowPublicUpload" id="sharingDialogAllowPublicUpload" class="checkbox" {{{publicUploadChecked}}} />' +
'<label for="sharingDialogAllowPublicUpload">{{publicUploadLabel}}</label>' + '<label for="sharingDialogAllowPublicUpload">{{publicUploadLabel}}</label>' +
'</div>' + '</div>' +
' {{/if}}' + ' {{/if}}' +

View file

@ -27,30 +27,30 @@
' {{/if}}' + ' {{/if}}' +
' <span class="username">{{shareWithDisplayName}}</span>' + ' <span class="username">{{shareWithDisplayName}}</span>' +
' {{#if mailPublicNotificationEnabled}} {{#unless isRemoteShare}}' + ' {{#if mailPublicNotificationEnabled}} {{#unless isRemoteShare}}' +
' <input id="mail-{{shareWith}}" type="checkbox" name="mailNotification" class="mailNotification" {{#if wasMailSent}}checked="checked"{{/if}} />' + ' <input id="mail-{{shareWith}}" type="checkbox" name="mailNotification" class="mailNotification checkbox" {{#if wasMailSent}}checked="checked"{{/if}} />' +
' <label for="mail-{{shareWith}}">{{notifyByMailLabel}}</label>' + ' <label for="mail-{{shareWith}}">{{notifyByMailLabel}}</label>' +
' {{/unless}} {{/if}}' + ' {{/unless}} {{/if}}' +
' {{#if isResharingAllowed}} {{#if sharePermissionPossible}} {{#unless isRemoteShare}}' + ' {{#if isResharingAllowed}} {{#if sharePermissionPossible}} {{#unless isRemoteShare}}' +
' <input id="canShare-{{shareWith}}" type="checkbox" name="share" class="permissions" {{#if hasSharePermission}}checked="checked"{{/if}} data-permissions="{{sharePermission}}" />' + ' <input id="canShare-{{shareWith}}" type="checkbox" name="share" class="permissions checkbox" {{#if hasSharePermission}}checked="checked"{{/if}} data-permissions="{{sharePermission}}" />' +
' <label for="canShare-{{shareWith}}">{{canShareLabel}}</label>' + ' <label for="canShare-{{shareWith}}">{{canShareLabel}}</label>' +
' {{/unless}} {{/if}} {{/if}}' + ' {{/unless}} {{/if}} {{/if}}' +
' {{#if editPermissionPossible}}' + ' {{#if editPermissionPossible}}' +
' <input id="canEdit-{{shareWith}}" type="checkbox" name="edit" class="permissions" {{#if hasEditPermission}}checked="checked"{{/if}} />' + ' <input id="canEdit-{{shareWith}}" type="checkbox" name="edit" class="permissions checkbox" {{#if hasEditPermission}}checked="checked"{{/if}} />' +
' <label for="canEdit-{{shareWith}}">{{canEditLabel}}</label>' + ' <label for="canEdit-{{shareWith}}">{{canEditLabel}}</label>' +
' {{/if}}' + ' {{/if}}' +
' {{#unless isRemoteShare}}' + ' {{#unless isRemoteShare}}' +
' <a href="#" class="showCruds"><img class="svg" alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>' + ' <a href="#" class="showCruds"><img class="svg" alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>' +
' <div class="cruds hidden">' + ' <div class="cruds hidden">' +
' {{#if createPermissionPossible}}' + ' {{#if createPermissionPossible}}' +
' <input id="canCreate-{{shareWith}}" type="checkbox" name="create" class="permissions" {{#if hasCreatePermission}}checked="checked"{{/if}} data-permissions="{{createPermission}}"/>' + ' <input id="canCreate-{{shareWith}}" type="checkbox" name="create" class="permissions checkbox" {{#if hasCreatePermission}}checked="checked"{{/if}} data-permissions="{{createPermission}}"/>' +
' <label for="canCreate-{{shareWith}}">{{createPermissionLabel}}</label>' + ' <label for="canCreate-{{shareWith}}">{{createPermissionLabel}}</label>' +
' {{/if}}' + ' {{/if}}' +
' {{#if updatePermissionPossible}}' + ' {{#if updatePermissionPossible}}' +
' <input id="canUpdate-{{shareWith}}" type="checkbox" name="update" class="permissions" {{#if hasUpdatePermission}}checked="checked"{{/if}} data-permissions="{{updatePermission}}"/>' + ' <input id="canUpdate-{{shareWith}}" type="checkbox" name="update" class="permissions checkbox" {{#if hasUpdatePermission}}checked="checked"{{/if}} data-permissions="{{updatePermission}}"/>' +
' <label for="canUpdate-{{shareWith}}">{{updatePermissionLabel}}</label>' + ' <label for="canUpdate-{{shareWith}}">{{updatePermissionLabel}}</label>' +
' {{/if}}' + ' {{/if}}' +
' {{#if deletePermissionPossible}} {{#unless isRemoteShare}}' + ' {{#if deletePermissionPossible}} {{#unless isRemoteShare}}' +
' <input id="canDelete-{{shareWith}}" type="checkbox" name="delete" class="permissions" {{#if hasDeletePermission}}checked="checked"{{/if}} data-permissions="{{deletePermission}}"/>' + ' <input id="canDelete-{{shareWith}}" type="checkbox" name="delete" class="permissions checkbox" {{#if hasDeletePermission}}checked="checked"{{/if}} data-permissions="{{deletePermission}}"/>' +
' <label for="canDelete-{{shareWith}}">{{deletePermissionLabel}}</label>' + ' <label for="canDelete-{{shareWith}}">{{deletePermissionLabel}}</label>' +
' {{/unless}} {{/if}}' + ' {{/unless}} {{/if}}' +
' </div>' + ' </div>' +