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

update config screens

This commit is contained in:
Luke Pulverenti 2016-02-16 12:39:09 -05:00
parent d0076b3865
commit c9bb9cc40a
6 changed files with 40 additions and 53 deletions

View file

@ -4,7 +4,7 @@
<title>${TitleAdvanced}</title> <title>${TitleAdvanced}</title>
</head> </head>
<body> <body>
<div id="advancedConfigurationPage" data-role="page" class="page type-interior advancedConfigurationPage" data-require="jqmcollapsible,scripts/advancedconfigurationpage,paper-input,jqmcheckbox"> <div id="advancedConfigurationPage" data-role="page" class="page type-interior advancedConfigurationPage" data-require="jqmcollapsible,scripts/advancedconfigurationpage,paper-input,paper-checkbox">
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <div class="content-primary">
@ -18,15 +18,13 @@
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li id="fldRunAtStartup" style="display: none;"> <li id="fldRunAtStartup" style="display: none;">
<input type="checkbox" id="chkRunAtStartup" name="chkRunAtStartup" data-mini="true" /> <paper-checkbox id="chkRunAtStartup">${LabelRunServerAtStartup}</paper-checkbox>
<label for="chkRunAtStartup">${LabelRunServerAtStartup}</label> <div id="windowsStartupDescription" class="fieldDescription paperCheckboxFieldDescription" style="display: none;">
<div id="windowsStartupDescription" class="fieldDescription warningFieldDescription" style="display: none;">
${LabelRunServerAtStartupHelp} ${LabelRunServerAtStartupHelp}
</div> </div>
</li> </li>
<li> <li>
<input type="checkbox" id="chkDebugLog" name="chkDebugLog" data-mini="true" /> <paper-checkbox id="chkDebugLog">${LabelEnableDebugLogging}</paper-checkbox>
<label for="chkDebugLog">${LabelEnableDebugLogging}</label>
</li> </li>
</ul> </ul>
@ -42,7 +40,7 @@
</div> </div>
</li> </li>
<li> <li>
<label class="lnlAutomaticUpdateLevel" for="selectAutomaticUpdateLevel"></label> <label class="lnlAutomaticUpdateLevel" for="selectAutomaticUpdateLevel" class="selectLabel"></label>
<select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel"> <select name="selectAutomaticUpdateLevel" id="selectAutomaticUpdateLevel">
<option value="Release">${OptionRelease}</option> <option value="Release">${OptionRelease}</option>
<option value="Beta">${OptionBeta}</option> <option value="Beta">${OptionBeta}</option>
@ -53,9 +51,8 @@
</div> </div>
</li> </li>
<li id="fldEnableAutomaticRestart" style="display: none;"> <li id="fldEnableAutomaticRestart" style="display: none;">
<input type="checkbox" id="chkEnableAutomaticRestart" name="chkEnableAutomaticRestart" data-mini="true" /> <paper-checkbox id="chkEnableAutomaticRestart">${LabelAllowServerAutoRestart}</paper-checkbox>
<label for="chkEnableAutomaticRestart">${LabelAllowServerAutoRestart}</label> <div class="fieldDescription paperCheckboxFieldDescription">
<div class="fieldDescription">
${LabelAllowServerAutoRestartHelp} ${LabelAllowServerAutoRestartHelp}
</div> </div>
</li> </li>
@ -66,13 +63,14 @@
<h2>${HeaderDeveloperOptions}</h2> <h2>${HeaderDeveloperOptions}</h2>
<div> <div>
<br /> <br />
<div data-role="controlgroup"> <div>
<input type="checkbox" id="chkEnableDashboardResponseCache" data-mini="true" /> <paper-checkbox id="chkEnableDashboardResponseCache">${OptionEnableWebClientResponseCache}</paper-checkbox>
<label for="chkEnableDashboardResponseCache">${OptionEnableWebClientResponseCache}</label>
<input type="checkbox" id="chkEnableMinification" data-mini="true" />
<label for="chkEnableMinification">${OptionEnableWebClientResourceMinification}</label>
</div> </div>
<div class="fieldDescription"> <br />
<div>
<paper-checkbox id="chkEnableMinification">${OptionEnableWebClientResourceMinification}</paper-checkbox>
</div>
<div class="fieldDescription paperCheckboxFieldDescription">
${OptionDisableForDevelopmentHelp} ${OptionDisableForDevelopmentHelp}
</div> </div>
<br /><br /> <br /><br />

View file

@ -4,7 +4,7 @@
<title>${TitleDlna}</title> <title>${TitleDlna}</title>
</head> </head>
<body> <body>
<div id="dlnaServerSettingsPage" data-role="page" class="page type-interior dlnaPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Dlna%20server" data-require="scripts/dlnaserversettings,paper-input,jqmcheckbox"> <div id="dlnaServerSettingsPage" data-role="page" class="page type-interior dlnaPage" data-helpurl="https://github.com/MediaBrowser/Wiki/wiki/Dlna%20server" data-require="scripts/dlnaserversettings,paper-input,paper-checkbox">
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <div class="content-primary">
@ -19,14 +19,12 @@
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">
<li> <li>
<label for="chkEnableServer">${LabelEnableDlnaServer}</label> <paper-checkbox id="chkEnableServer">${LabelEnableDlnaServer}</paper-checkbox>
<input type="checkbox" id="chkEnableServer" data-mini="true" /> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableDlnaServerHelp}</div>
<div class="fieldDescription">${LabelEnableDlnaServerHelp}</div>
</li> </li>
<li> <li>
<label for="chkBlastAliveMessages">${LabelEnableBlastAliveMessages}</label> <paper-checkbox id="chkBlastAliveMessages">${LabelEnableBlastAliveMessages}</paper-checkbox>
<input type="checkbox" id="chkBlastAliveMessages" data-mini="true" /> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableBlastAliveMessagesHelp}</div>
<div class="fieldDescription">${LabelEnableBlastAliveMessagesHelp}</div>
</li> </li>
<li> <li>
<paper-input type="number" id="txtBlastInterval" min="1" max="300" label="${LabelBlastMessageInterval}"></paper-input> <paper-input type="number" id="txtBlastInterval" min="1" max="300" label="${LabelBlastMessageInterval}"></paper-input>
@ -38,9 +36,8 @@
<div class="fieldDescription">${LabelDefaultUserHelp}</div> <div class="fieldDescription">${LabelDefaultUserHelp}</div>
</li> </li>
<li> <li>
<label for="chkEnableMovieFolders">${LabelEnableEnhancedMovies}</label> <paper-checkbox id="chkEnableMovieFolders">${LabelEnableEnhancedMovies}</paper-checkbox>
<input type="checkbox" id="chkEnableMovieFolders" data-mini="true" /> <div class="fieldDescription paperCheckboxFieldDescription">${LabelEnableEnhancedMoviesHelp}</div>
<div class="fieldDescription">${LabelEnableEnhancedMoviesHelp}</div>
</li> </li>
</ul> </ul>
<ul data-role="listview" class="ulForm"> <ul data-role="listview" class="ulForm">

View file

@ -82,8 +82,6 @@
<button type="submit" data-role="none" class="clearButton"> <button type="submit" data-role="none" class="clearButton">
<paper-button raised class="submit block"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></paper-button> <paper-button raised class="submit block"><iron-icon icon="check"></iron-icon><span>${ButtonSave}</span></paper-button>
</button> </button>
<paper-button raised class="cancel block btnCancel" onclick="history.back();"><iron-icon icon="close"></iron-icon><span>${ButtonCancel}</span></paper-button>
</li> </li>
</ul> </ul>

View file

@ -24,8 +24,8 @@
$('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevelForPlugins')); $('.lnlAutomaticUpdateLevel', page).html(Globalize.translate('LabelAutomaticUpdateLevelForPlugins'));
} }
$('#chkEnableAutomaticServerUpdates', page).checked(config.EnableAutoUpdate).checkboxradio("refresh"); $('#chkEnableAutomaticServerUpdates', page).checked(config.EnableAutoUpdate);
$('#chkEnableAutomaticRestart', page).checked(config.EnableAutomaticRestart).checkboxradio("refresh"); $('#chkEnableAutomaticRestart', page).checked(config.EnableAutomaticRestart);
if (systemInfo.CanSelfRestart) { if (systemInfo.CanSelfRestart) {
$('#fldEnableAutomaticRestart', page).show(); $('#fldEnableAutomaticRestart', page).show();
@ -34,12 +34,12 @@
} }
$('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).trigger('change'); $('#selectAutomaticUpdateLevel', page).val(config.SystemUpdateLevel).trigger('change');
$('#chkDebugLog', page).checked(config.EnableDebugLevelLogging).checkboxradio("refresh"); $('#chkDebugLog', page).checked(config.EnableDebugLevelLogging);
$('#chkRunAtStartup', page).checked(config.RunAtStartup).checkboxradio("refresh"); $('#chkRunAtStartup', page).checked(config.RunAtStartup);
$('#chkEnableDashboardResponseCache', page).checked(config.EnableDashboardResponseCaching).checkboxradio("refresh"); $('#chkEnableDashboardResponseCache', page).checked(config.EnableDashboardResponseCaching);
$('#chkEnableMinification', page).checked(config.EnableDashboardResourceMinification).checkboxradio("refresh"); $('#chkEnableMinification', page).checked(config.EnableDashboardResourceMinification);
$('#txtDashboardSourcePath', page).val(config.DashboardSourcePath).trigger('change'); $('#txtDashboardSourcePath', page).val(config.DashboardSourcePath).trigger('change');
Dashboard.hideLoadingMsg(); Dashboard.hideLoadingMsg();

View file

@ -2,11 +2,11 @@
function loadPage(page, config, users) { function loadPage(page, config, users) {
$('#chkEnableServer', page).checked(config.EnableServer).checkboxradio("refresh"); $('#chkEnableServer', page).checked(config.EnableServer);
$('#chkBlastAliveMessages', page).checked(config.BlastAliveMessages).checkboxradio("refresh"); $('#chkBlastAliveMessages', page).checked(config.BlastAliveMessages);
$('#txtBlastInterval', page).val(config.BlastAliveMessageIntervalSeconds); $('#txtBlastInterval', page).val(config.BlastAliveMessageIntervalSeconds);
$('#chkEnableMovieFolders', page).checked(config.EnableMovieFolders).checkboxradio("refresh"); $('#chkEnableMovieFolders', page).checked(config.EnableMovieFolders);
var usersHtml = users.map(function (u) { var usersHtml = users.map(function (u) {
return '<option value="' + u.Id + '">' + u.Name + '</option>'; return '<option value="' + u.Id + '">' + u.Name + '</option>';

View file

@ -4,7 +4,7 @@
<title>${TitleSupport}</title> <title>${TitleSupport}</title>
</head> </head>
<body> <body>
<div id="supporterKeyPage" data-role="page" class="page type-interior" data-require="jqmcollapsible,scripts/supporterkeypage"> <div id="supporterKeyPage" data-role="page" class="page type-interior" data-require="jqmcollapsible,scripts/supporterkeypage,paper-input">
<div data-role="content"> <div data-role="content">
<div class="content-primary"> <div class="content-primary">
@ -36,8 +36,7 @@
<h1>${TabSupporterKey}</h1> <h1>${TabSupporterKey}</h1>
<div> <div>
<label for="txtSupporterKey">${LabelSupporterKey}</label> <paper-input type="password" id="txtSupporterKey" label="${LabelSupporterKey}" autocomplete="off"></paper-input>
<input type="password" id="txtSupporterKey" name="txtSupporterKey" data-inline="true" />
<div class="fieldDescription"> <div class="fieldDescription">
${LabelSupporterKeyHelp} ${LabelSupporterKeyHelp}
</div> </div>
@ -65,8 +64,7 @@
<div> <div>
<form id="lostKeyForm"> <form id="lostKeyForm">
<div style="margin: 1em 0;"> <div style="margin: 1em 0;">
<label for="txtEmail">${LabelEmailAddress}</label> <paper-input type="email" required id="txtEmail" label="${LabelEmailAddress}"></paper-input>
<input type="email" required id="txtEmail" name="txtEmail" />
<div class="fieldDescription">${LabelSupporterEmailAddress}</div> <div class="fieldDescription">${LabelSupporterEmailAddress}</div>
</div> </div>
<p> <p>
@ -87,21 +85,17 @@
${MultipleKeyLinkingHelp} ${MultipleKeyLinkingHelp}
</p> </p>
<div style="margin: 1em 0;"> <div style="margin: 1em 0;">
<label for="txtEmail">${LabelCurrentEmailAddress}</label> <paper-input type="email" required id="txtNewEmail" label="${LabelCurrentEmailAddress}"></paper-input>
<input type="email" required id="txtNewEmail" name="txtNewEmail" />
<div class="fieldDescription"> <div class="fieldDescription">
${LabelCurrentEmailAddressHelp} ${LabelCurrentEmailAddressHelp}
</div> </div>
</div> </div>
<p> <div>
<label for="txtNewKey">${LabelNewSupporterKey}</label> <paper-input type="password" required id="txtNewKey" label="${LabelNewSupporterKey}"></paper-input>
<input type="password" required="required" id="txtNewKey" name="txtNewKey" /> </div>
</p> <div>
<p> <paper-input type="password" required id="txtOldKey" label="${LabelOldSupporterKey}"></paper-input>
</div>
<label for="txtOldKey">${LabelOldSupporterKey}</label>
<input type="password" required="required" id="txtOldKey" name="txtOldKey" />
</p>
<p> <p>
<button type="submit" id="mbLinkKeysBtn" class="clearButton"> <button type="submit" id="mbLinkKeysBtn" class="clearButton">
<paper-button raised class="block submit"><iron-icon icon="check"></iron-icon><span>${ButtonLinkKeys}</span></paper-button> <paper-button raised class="block submit"><iron-icon icon="check"></iron-icon><span>${ButtonLinkKeys}</span></paper-button>