1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

reduce use of paper-checkbox

This commit is contained in:
Luke Pulverenti 2016-08-27 15:14:04 -04:00
parent dfffc7904a
commit 9eb978a98b
3 changed files with 25 additions and 18 deletions

View file

@ -1,4 +1,4 @@
define(['globalize'], function (globalize) {
define(['globalize', 'emby-checkbox', 'emby-button'], function (globalize) {
function getTabs() {
return [

View file

@ -3,30 +3,37 @@
<div data-role="content">
<div class="content-primary">
<form>
<div>
<paper-checkbox class="chkFolderView">${OptionDisplayFolderView}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionDisplayFolderViewHelp}</div>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkFolderView" />
<span>${OptionDisplayFolderView}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionDisplayFolderViewHelp}</div>
</div>
<br />
<div>
<paper-checkbox class="chkDisplaySpecialsWithinSeasons">${LabelDisplaySpecialsWithinSeasons}</paper-checkbox>
<label class="checkboxContainer">
<input type="checkbox" is="emby-checkbox" class="chkDisplaySpecialsWithinSeasons"/>
<span>${LabelDisplaySpecialsWithinSeasons}</span>
</label>
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkGroupMoviesIntoCollections" />
<span>${LabelGroupMoviesIntoCollections}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${LabelGroupMoviesIntoCollectionsHelp}</div>
</div>
<br /><br />
<div>
<paper-checkbox class="chkGroupMoviesIntoCollections">${LabelGroupMoviesIntoCollections}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelGroupMoviesIntoCollectionsHelp}</div>
</div>
<br />
<div>
<paper-checkbox class="chkDisplayCollectionView">${LabelDisplayCollectionsView}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">
<div class="checkboxContainer checkboxContainer-withDescription">
<label>
<input type="checkbox" is="emby-checkbox" class="chkDisplayCollectionView" />
<span>${LabelDisplayCollectionsView}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">
<div>${LabelDisplayCollectionsViewHelp}</div>
<div><a href="https://github.com/MediaBrowser/Wiki/wiki/Collections" target="_blank">${ButtonLearnMore}</a></div>
</div>
</div>
<br />
<br />
<button is="emby-button" type="submit" class="raised submit block"><i class="md-icon">check</i><span>${ButtonSave}</span></button>
</form>

View file

@ -2145,7 +2145,7 @@ var AppInfo = {};
defineRoute({
path: '/librarydisplay.html',
dependencies: ['emby-button', 'paper-checkbox'],
dependencies: [],
autoFocus: false,
roles: 'admin',
controller: 'dashboard/librarydisplay'