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

update forms

This commit is contained in:
Luke Pulverenti 2016-06-14 00:15:13 -04:00
parent 3e3a7b12d6
commit 5a746c5b50
2 changed files with 23 additions and 11 deletions

View file

@ -1,4 +1,4 @@
<div id="homeScreenPreferencesPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-title="${HeaderHomeScreenSettings}" data-require="scripts/mypreferenceshome,paper-checkbox,paper-fab,paper-item-body,paper-icon-item,emby-button" data-backbutton="true" data-menubutton="false"> <div id="homeScreenPreferencesPage" data-role="page" class="page libraryPage userPreferencesPage noSecondaryNavPage" data-title="${HeaderHomeScreenSettings}" data-require="scripts/mypreferenceshome,emby-checkbox,paper-fab,paper-item-body,paper-icon-item,emby-button" data-backbutton="true" data-menubutton="false">
<div data-role="content"> <div data-role="content">
<form class="homeScreenPreferencesForm userProfileSettingsForm" style="margin: 0 auto;"> <form class="homeScreenPreferencesForm userProfileSettingsForm" style="margin: 0 auto;">
@ -78,10 +78,13 @@
<div class="folderGroupList"></div> <div class="folderGroupList"></div>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelSelectFolderGroupsHelp}</div> <div class="fieldDescription paperCheckboxFieldDescription">${LabelSelectFolderGroupsHelp}</div>
</div> </div>
<br /> <br/>
<div> <div class="checkboxContainer">
<paper-checkbox class="chkDisplayChannelsInline">${OptionDisplayChannelsInline}</paper-checkbox> <label>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionDisplayChannelsInlineHelp}</div> <input class="chkDisplayChannelsInline" type="checkbox" is="emby-checkbox" />
<span>${OptionDisplayChannelsInline}</span>
</label>
<div class="fieldDescription checkboxFieldDescription">${OptionDisplayChannelsInlineHelp}</div>
</div> </div>
</div> </div>
@ -105,8 +108,11 @@
</div> </div>
<br /> <br/>
<paper-checkbox class="chkHidePlayedFromLatest">${OptionHideWatchedContentFromLatestMedia}</paper-checkbox> <label class="checkboxContainer">
<input class="chkHidePlayedFromLatest" type="checkbox" is="emby-checkbox"/>
<span>${OptionHideWatchedContentFromLatestMedia}</span>
</label>
</div> </div>
<button is="emby-button" type="submit" class="raised submit block btnSave hide"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></button> <button is="emby-button" type="submit" class="raised submit block btnSave hide"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></button>

View file

@ -4,7 +4,7 @@
var folderHtml = ''; var folderHtml = '';
folderHtml += '<div class="paperCheckboxList">'; folderHtml += '<div class="checkboxList">';
folderHtml += result.map(function (i) { folderHtml += result.map(function (i) {
var currentHtml = ''; var currentHtml = '';
@ -16,7 +16,10 @@
var checkedHtml = isChecked ? ' checked="checked"' : ''; var checkedHtml = isChecked ? ' checked="checked"' : '';
currentHtml += '<paper-checkbox class="chkGroupFolder" data-folderid="' + i.Id + '" id="' + id + '"' + checkedHtml + '>' + i.Name + '</paper-checkbox>'; currentHtml += '<label>';
currentHtml += '<input type="checkbox" is="emby-checkbox" class="chkGroupFolder" data-folderid="' + i.Id + '" id="' + id + '"' + checkedHtml + '/>';
currentHtml += '<span>' + i.Name + '</span>';
currentHtml += '</label>';
return currentHtml; return currentHtml;
@ -31,7 +34,7 @@
var folderHtml = ''; var folderHtml = '';
folderHtml += '<div class="paperCheckboxList">'; folderHtml += '<div class="checkboxList">';
folderHtml += result.Items.map(function (i) { folderHtml += result.Items.map(function (i) {
var currentHtml = ''; var currentHtml = '';
@ -41,7 +44,10 @@
var isChecked = user.Configuration.LatestItemsExcludes.indexOf(i.Id) == -1; var isChecked = user.Configuration.LatestItemsExcludes.indexOf(i.Id) == -1;
var checkedHtml = isChecked ? ' checked="checked"' : ''; var checkedHtml = isChecked ? ' checked="checked"' : '';
currentHtml += '<paper-checkbox class="chkIncludeInLatest" data-folderid="' + i.Id + '" id="' + id + '"' + checkedHtml + '>' + i.Name + '</paper-checkbox>'; currentHtml += '<label>';
currentHtml += '<input type="checkbox" is="emby-checkbox" class="chkIncludeInLatest" data-folderid="' + i.Id + '" id="' + id + '"' + checkedHtml + '/>';
currentHtml += '<span>' + i.Name + '</span>';
currentHtml += '</label>';
return currentHtml; return currentHtml;