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

add more device options

This commit is contained in:
Luke Pulverenti 2014-10-11 21:46:02 -04:00
parent 9ae5d347c1
commit 029b0d464f
6 changed files with 76 additions and 6 deletions

View file

@ -50,8 +50,7 @@
<li>
<label for="txtDownloadSizeLimit">${LabelChannelDownloadSizeLimit}</label>
<input type="number" id="txtDownloadSizeLimit" pattern="[0-9]*" min="0.1" step=".1" data-mini="true" />
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelp}</div>
<div class="fieldDescription"><a href="supporter.html">${ButtonLearnMore}</a></div>
<div class="fieldDescription">${LabelChannelDownloadSizeLimitHelpText}</div>
</li>
<li>
<label for="txtDownloadAge">${LabelChannelDownloadAge}</label>

50
dashboard-ui/device.html Normal file
View file

@ -0,0 +1,50 @@
<!DOCTYPE html>
<html>
<head>
<title>${TitleDevices}</title>
</head>
<body>
<div id="devicePage" data-role="page" class="page type-interior devicesPage">
<div data-role="content">
<div class="content-primary">
<div data-role="controlgroup" data-type="horizontal" class="localnav" data-mini="true">
<a href="devices.html" data-role="button" class="ui-btn-active">${TabDevices}</a>
<a href="devicesupload.html" data-role="button">${TabCameraUpload}</a>
</div>
<div class="readOnlyContent">
<form class="deviceForm">
<ul data-role="listview" class="ulForm">
<li>
<label for="txtUploadPath">${LabelCameraUploadPath}</label>
<div style="display: inline-block; width: 92%;">
<input type="text" id="txtUploadPath" data-mini="true" />
</div>
<button id="btnSelectUploadPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
<div class="fieldDescription">${LabelCameraUploadPathHelp}</div>
</li>
</ul><br />
<ul data-role="listview" class="ulForm">
<li>
<button type="submit" data-theme="b" data-icon="check">
${ButtonSave}
</button>
<button type="button" onclick="Dashboard.navigate('devices.html');" data-icon="delete">
${ButtonCancel}
</button>
</li>
</ul>
</form>
</div>
</div>
</div>
</div>
</body>
</html>

View file

@ -31,12 +31,17 @@
<br /><br />
<ul data-role="listview" class="ulForm">
<li>
<label for="txtUploadPath">${LabelUploadPath}</label>
<label for="txtUploadPath">${LabelCameraUploadPath}</label>
<div style="display: inline-block; width: 92%;">
<input type="text" id="txtUploadPath" data-mini="true" />
</div>
<button id="btnSelectUploadPath" type="button" data-icon="search" data-iconpos="notext" data-inline="true">${ButtonSelectDirectory}</button>
<div class="fieldDescription">${LabelUploadPathHelp}</div>
<div class="fieldDescription">${LabelCameraUploadPathHelp}</div>
</li>
<li>
<label for="chkSubfolder">${LabelCreateCameraUploadSubfolder}</label>
<input type="checkbox" id="chkSubfolder" data-mini="true" />
<div class="fieldDescription">${LabelCreateCameraUploadSubfolderHelp}</div>
</li>
</ul><br />
@ -45,7 +50,7 @@
<button type="submit" data-theme="b" data-icon="check">
${ButtonSave}
</button>
<button type="button" onclick="Dashboard.navigate('dashboard.html');" data-icon="delete">
<button type="button" onclick="Dashboard.navigate('devices.html');" data-icon="delete">
${ButtonCancel}
</button>
</li>

View file

@ -0,0 +1 @@


View file

@ -34,12 +34,18 @@
var deviceHtml = '';
deviceHtml += '<li>';
deviceHtml += '<a href="#">';
deviceHtml += '<a href="device.html?id=' + d.Id + '">';
deviceHtml += '<h3>';
deviceHtml += d.Name;
deviceHtml += '</h3>';
if (d.AppName) {
deviceHtml += '<p style="color:blue;">';
deviceHtml += d.AppName;
deviceHtml += '</p>';
}
if (d.LastUserName) {
deviceHtml += '<p style="color:green;">';
deviceHtml += Globalize.translate('DeviceLastUsedByUserName', d.LastUserName);

View file

@ -12,6 +12,8 @@
$('#txtUploadPath', page).val(config.CameraUploadPath || '');
$('#chkSubfolder', page).checked(config.EnableCameraUploadSubfolders).checkboxradio('refresh');
loadDeviceList(page, devices, config);
}
@ -34,6 +36,11 @@
deviceHtml += '<label for="' + id + '">';
deviceHtml += d.Name;
if (d.AppName) {
deviceHtml += '<br/><span>' + d.AppName + '</span>';
}
deviceHtml += '</label>';
var isChecked = config.EnabledCameraUploadDevices.indexOf(d.Id) != -1;
@ -88,6 +95,8 @@
});
config.EnableCameraUploadSubfolders = $('#chkSubfolder', page).checked();
ApiClient.updateNamedConfiguration("devices", config).done(Dashboard.processServerConfigurationUpdateResult);
});