Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
2ee36dc4
Commit
2ee36dc4
authored
Sep 25, 2015
by
Hendrik Leppelsack
Browse files
restyle checkboxes in sidebar
parent
bf73665a
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/js/sharedialogexpirationview.js
View file @
2ee36dc4
...
...
@@ -19,7 +19,7 @@
// in the LinkShareView to ease reusing it in future. Then,
// modifications (getting rid of IDs) are still necessary.
'
{{#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}} />
'
+
'
<label for="expirationCheckbox">{{setExpirationLabel}}</label>
'
+
'
<div class="expirationDateContainer {{#unless isExpirationSet}}hidden{{/unless}}">
'
+
...
...
core/js/sharedialoglinkshareview.js
View file @
2ee36dc4
...
...
@@ -16,12 +16,12 @@
var
TEMPLATE
=
'
{{#if shareAllowed}}
'
+
'
<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 />
'
+
'
<label for="linkText" class="hidden-visually">{{urlLabel}}</label>
'
+
'
<input id="linkText" {{#unless isLinkShare}}class="hidden"{{/unless}} type="text" readonly="readonly" value="{{shareLinkURL}}" />
'
+
'
{{#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}}
'
+
'
<div id="linkPass" {{#unless isPasswordSet}}class="hidden"{{/unless}}>
'
+
'
<label for="linkPassText" class="hidden-visually">{{passwordLabel}}</label>
'
+
...
...
@@ -31,7 +31,7 @@
'
{{#if publicUpload}}
'
+
'
<div id="allowPublicUploadWrapper">
'
+
'
<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>
'
+
'
</div>
'
+
'
{{/if}}
'
+
...
...
core/js/sharedialogshareelistview.js
View file @
2ee36dc4
...
...
@@ -27,30 +27,30 @@
'
{{/if}}
'
+
'
<span class="username">{{shareWithDisplayName}}</span>
'
+
'
{{#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>
'
+
'
{{/unless}} {{/if}}
'
+
'
{{#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>
'
+
'
{{/unless}} {{/if}} {{/if}}
'
+
'
{{#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>
'
+
'
{{/if}}
'
+
'
{{#unless isRemoteShare}}
'
+
'
<a href="#" class="showCruds"><img class="svg" alt="{{crudsLabel}}" src="{{triangleSImage}}"/></a>
'
+
'
<div class="cruds hidden">
'
+
'
{{#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>
'
+
'
{{/if}}
'
+
'
{{#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>
'
+
'
{{/if}}
'
+
'
{{#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>
'
+
'
{{/unless}} {{/if}}
'
+
'
</div>
'
+
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment