remove more paper inputs

This commit is contained in:
Luke Pulverenti 2016-08-21 14:40:38 -04:00
parent 7af088def3
commit 4a296d5125
3 changed files with 66 additions and 63 deletions

View File

@ -1,54 +1,59 @@
<div id="dlnaSettingsPage" data-role="page" class="page type-interior withTabs" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Play%20to" data-require="jqmlistview,scripts/dlnasettings,paper-input,paper-checkbox,emby-button"> <div id="dlnaSettingsPage" data-role="page" class="page type-interior withTabs" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Play%20to" data-require="scripts/dlnasettings,emby-select,emby-input,paper-checkbox,emby-button">
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <div class="content-primary">
<form class="dlnaSettingsForm"> <form class="dlnaSettingsForm">
<ul data-role="listview" class="ulForm"> <div>
<li> <paper-checkbox type="checkbox" id="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</paper-checkbox>
<paper-checkbox type="checkbox" id="chkEnablePlayTo">${LabelEnableDlnaPlayTo}</paper-checkbox> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaPlayToHelp}</div>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaPlayToHelp}</div> </div>
</li> <br />
<li> <br />
<paper-checkbox type="checkbox" id="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</paper-checkbox> <div>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div> <paper-checkbox type="checkbox" id="chkEnableDlnaDebugLogging">${LabelEnableDlnaDebugLogging}</paper-checkbox>
</li> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaDebugLoggingHelp}</div>
<li> </div>
<paper-input type="number" id="txtClientDiscoveryInterval" min="1" max="300" label="${LabelEnableDlnaClientDiscoveryInterval}"></paper-input> <br />
<div class="fieldDescription">${LabelEnableDlnaClientDiscoveryIntervalHelp}</div> <br />
</li> <div class="inputContainer">
</ul> <input is="emby-input" type="number" id="txtClientDiscoveryInterval" min="1" max="300" label="${LabelEnableDlnaClientDiscoveryInterval}"/>
<ul data-role="listview" class="ulForm"> <div class="fieldDescription">${LabelEnableDlnaClientDiscoveryIntervalHelp}</div>
<li> </div>
<paper-checkbox id="chkEnableServer">${LabelEnableDlnaServer}</paper-checkbox> <br />
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaServerHelp}</div> <div>
</li> <paper-checkbox id="chkEnableServer">${LabelEnableDlnaServer}</paper-checkbox>
<li> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaServerHelp}</div>
<paper-checkbox id="chkBlastAliveMessages">${LabelEnableBlastAliveMessages}</paper-checkbox> </div>
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableBlastAliveMessagesHelp}</div> <br />
</li> <div>
<li> <paper-checkbox id="chkBlastAliveMessages">${LabelEnableBlastAliveMessages}</paper-checkbox>
<paper-input type="number" id="txtBlastInterval" min="1" max="300" label="${LabelBlastMessageInterval}"></paper-input> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableBlastAliveMessagesHelp}</div>
<div class="fieldDescription">${LabelBlastMessageIntervalHelp}</div> </div>
</li> <br />
<li> <br />
<label for="selectUser" class="selectLabel">${LabelDefaultUser}</label> <div class="inputContainer">
<select id="selectUser" data-mini="true"></select> <input is="emby-input" type="number" id="txtBlastInterval" min="1" max="300" label="${LabelBlastMessageInterval}"/>
<div class="fieldDescription">${LabelDefaultUserHelp}</div> <div class="fieldDescription">${LabelBlastMessageIntervalHelp}</div>
</li> </div>
<li> <br />
<paper-checkbox id="chkEnableMovieFolders">${LabelEnableEnhancedMovies}</paper-checkbox> <div class="selectContainer">
<div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableEnhancedMoviesHelp}</div> <select is="emby-select" id="selectUser" data-mini="true" label="${LabelDefaultUser}"></select>
</li> <div class="fieldDescription">${LabelDefaultUserHelp}</div>
</ul> </div>
<ul data-role="listview" class="ulForm"> <br />
<li> <div>
<button is="emby-button" type="submit" class="raised submit block"> <paper-checkbox id="chkEnableMovieFolders">${LabelEnableEnhancedMovies}</paper-checkbox>
<i class="md-icon">check</i><span>${ButtonSave}</span> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableEnhancedMoviesHelp}</div>
</button> </div>
</li> <br />
</ul> <br />
<div>
<button is="emby-button" type="submit" class="raised submit block">
<i class="md-icon">check</i><span>${ButtonSave}</span>
</button>
</div>
</form> </form>
</div> </div>

View File

@ -4,9 +4,8 @@
<div class="content-primary"> <div class="content-primary">
<form class="librarySettingsForm"> <form class="librarySettingsForm">
<div class="fldLibraryMonitor hide"> <div class="selectContainer fldLibraryMonitor hide">
<label for="selectEnableRealtimeMonitor" class="selectLabel">${LabelEnableRealtimeMonitor}</label> <select is="emby-select" id="selectEnableRealtimeMonitor" data-mini="true" label="${LabelEnableRealtimeMonitor}">
<select id="selectEnableRealtimeMonitor" data-mini="true">
<option value="Auto">${OptionAuto}</option> <option value="Auto">${OptionAuto}</option>
<option value="Enabled">${OptionYes}</option> <option value="Enabled">${OptionYes}</option>
<option value="Disabled">${OptionNo}</option> <option value="Disabled">${OptionNo}</option>
@ -15,23 +14,22 @@
${LabelEnableRealtimeMonitorHelp} ${LabelEnableRealtimeMonitorHelp}
</div> </div>
</div> </div>
<br /><br /> <div class="selectContainer">
<div> <select is="emby-select" id="selectDateAdded" data-mini="true" label="${LabelDateAddedBehavior}">
<label for="selectDateAdded" class="selectLabel">${LabelDateAddedBehavior}</label>
<select id="selectDateAdded" data-mini="true">
<option value="0">${OptionDateAddedImportTime}</option> <option value="0">${OptionDateAddedImportTime}</option>
<option value="1">${OptionDateAddedFileTime}</option> <option value="1">${OptionDateAddedFileTime}</option>
</select> </select>
<div class="fieldDescription">${LabelDateAddedBehaviorHelp}</div> <div class="fieldDescription">${LabelDateAddedBehaviorHelp}</div>
</div> </div>
<br /> <div class="inputContainer">
<div> <div style="display: flex; align-items: center;">
<paper-input id="txtMetadataPath" label="${LabelMetadataPath}" style="width: 85%; display: inline-block;"></paper-input> <div style="flex-grow:1;">
<button type="button" is="paper-icon-button-light" id="btnSelectMetadataPath" title="${ButtonSelectDirectory}" class="autoSize"><i class="md-icon">search</i></button> <input is="emby-input" id="txtMetadataPath" label="${LabelMetadataPath}" required="required" autocomplete="off" />
</div>
<button type="button" is="paper-icon-button-light" id="btnSelectMetadataPath" title="${ButtonSelectDirectory}"><i class="md-icon">search</i></button>
</div>
<div class="fieldDescription">${LabelMetadataPathHelp}</div> <div class="fieldDescription">${LabelMetadataPathHelp}</div>
<br/>
</div> </div>
<br />
<div> <div>
<paper-checkbox id="chkSaveMetadataHidden">${OptionSaveMetadataAsHidden}</paper-checkbox> <paper-checkbox id="chkSaveMetadataHidden">${OptionSaveMetadataAsHidden}</paper-checkbox>
<div class="fieldDescription paperCheckboxFieldDescription">${OptionSaveMetadataAsHiddenHelp}</div> <div class="fieldDescription paperCheckboxFieldDescription">${OptionSaveMetadataAsHiddenHelp}</div>
@ -88,16 +86,16 @@
<div is="emby-collapse" title="${HeaderTV}"> <div is="emby-collapse" title="${HeaderTV}">
<div class="collapseContent"> <div class="collapseContent">
<div> <div class="inputContainer">
<paper-input type="text" id="txtSeasonZeroName" label="${LabelSeasonZeroDisplayName}" required></paper-input> <input is="emby-input" type="text" id="txtSeasonZeroName" label="${LabelSeasonZeroDisplayName}" required />
</div> </div>
</div> </div>
</div> </div>
<div is="emby-collapse" title="Fanart.tv"> <div is="emby-collapse" title="Fanart.tv">
<div class="collapseContent"> <div class="collapseContent">
<div> <div class="inputContainer">
<paper-input type="text" id="txtFanartApiKey" label="${LabelFanartApiKey}"></paper-input> <input is="emby-input" type="text" id="txtFanartApiKey" label="${LabelFanartApiKey}" />
<div class="fieldDescription">${LabelFanartApiKeyHelp}</div> <div class="fieldDescription">${LabelFanartApiKeyHelp}</div>
<div class="fieldDescription"><a href="https://fanart.tv/2015/01/personal-api-keys" target="_blank">${ButtonLearnMore}</a></div> <div class="fieldDescription"><a href="https://fanart.tv/2015/01/personal-api-keys" target="_blank">${ButtonLearnMore}</a></div>
</div> </div>

View File

@ -2168,7 +2168,7 @@ var AppInfo = {};
defineRoute({ defineRoute({
path: '/librarysettings.html', path: '/librarysettings.html',
dependencies: ['emby-collapse', 'emby-input', 'paper-checkbox', 'emby-button'], dependencies: ['emby-collapse', 'emby-input', 'paper-checkbox', 'emby-button', 'emby-select'],
autoFocus: false, autoFocus: false,
roles: 'admin', roles: 'admin',
controller: 'scripts/librarysettings' controller: 'scripts/librarysettings'