initial code
initial code
This commit is contained in:
@@ -0,0 +1,209 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Vu+</title>
|
||||
</head>
|
||||
<body>
|
||||
<div data-role="page" class="page type-interior pluginConfigurationPage VuPlusConfigurationPage">
|
||||
|
||||
<div data-role="content">
|
||||
<div class="content-primary">
|
||||
<form class="VuPlusConfigurationForm">
|
||||
|
||||
<ul class="ulForm" data-role="listview">
|
||||
<li>
|
||||
<label for="txtHostName">Vu+ hostname or ip address:</label>
|
||||
<input type="text" id="txtHostName" name="txtHostName" />
|
||||
<div class="fieldDescription">
|
||||
The host name (address) or ip address of your receiver
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtStreamingPort">Vu+ streaming port:</label>
|
||||
<input type="text" id="txtStreamingPort" name="txtStreamingPort" />
|
||||
<div class="fieldDescription">
|
||||
The Streaming port of your receiver eg. 8001
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtWebInterfacePort">Vu+ Web Interface port:</label>
|
||||
<input type="text" id="txtWebInterfacePort" name="txtWebInterfacePort" />
|
||||
<div class="fieldDescription">
|
||||
The web Interface port of your receiver eg. 8000
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtWebInterfaceUsername">Vu+ Web Interface username:</label>
|
||||
<input type="text" id="txtWebInterfaceUsername" name="txtWebInterfaceUsername" />
|
||||
<div class="fieldDescription">
|
||||
The web Interface username of your receiver (optional)
|
||||
</div>
|
||||
</li>
|
||||
<li>
|
||||
<label for="txtWebInterfacePassword">Vu+ Web Interface password:</label>
|
||||
<input type="text" id="txtWebInterfacePassword" name="txtWebInterfacePassword" />
|
||||
<div class="fieldDescription">
|
||||
The web Interface password of your receiver (optional)
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="chkUseSecureHTTPS">Use secure HTTP (HTTPS)</label>
|
||||
<input type="checkbox" id="chkUseSecureHTTPS" data-mini="true" />
|
||||
<div class="fieldDescription">
|
||||
Use HTTPS to connect to your receiver
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="chkOnlyOneBouquet">Fetch Only one TV bouquet</label>
|
||||
<input type="checkbox" id="chkOnlyOneBouquet" data-mini="true" />
|
||||
<div class="fieldDescription">
|
||||
Limit channels to only those contained within the specified TV Bouquet below (optional)
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="txtTVBouquet">Vu+ TVBouquet:</label>
|
||||
<input type="text" id="txtTVBouquet" name="txtTVBouquet" />
|
||||
<div class="fieldDescription">
|
||||
The TV Bouquet to load channels for (optional)
|
||||
</div>
|
||||
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="chkZapToChannel">Zap before Channel switch (single tuner)</label>
|
||||
<input type="checkbox" id="chkZapToChannel" data-mini="true" />
|
||||
<div class="fieldDescription">
|
||||
Set if only one tuner within receiver
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
|
||||
<li>
|
||||
<label for="chkFetchPiconsFromWebInterface">Fetch picons from webinterface</label>
|
||||
<input type="checkbox" id="chkFetchPiconsFromWebInterface" data-mini="true" />
|
||||
<div class="fieldDescription">
|
||||
Set if you want to retrieve Picons from the web interface of the receiver
|
||||
</div>
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<label for="txtPiconsPath">Picons Path:</label>
|
||||
<input type="text" id="txtPiconsPath" name="txtPiconsPath" />
|
||||
<div class="fieldDescription">
|
||||
The local location of your Picons eg. C:\Picons\ (optional)
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="txtRecordingPath">Recording Path:</label>
|
||||
<input type="text" id="txtRecordingPath" name="txtRecordingPath" />
|
||||
<div class="fieldDescription">
|
||||
The location to store your recordings on your receiver eg. /hdd/movie/ (optional)
|
||||
</div>
|
||||
</li>
|
||||
|
||||
<li>
|
||||
<label for="chkDebugLogging">Enable VuPlus debug logging</label>
|
||||
<input type="checkbox" id="chkDebugLogging" data-mini="true" />
|
||||
</li>
|
||||
|
||||
|
||||
<li>
|
||||
<button type="submit" data-theme="b">Save</button>
|
||||
<button type="button" onclick="history.back();">Cancel</button>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
|
||||
var VuPlusConfigurationPage = {
|
||||
pluginUniqueId: "9564ac10-af23-39bc-449f-624f23cfa48f"
|
||||
};
|
||||
|
||||
$('.VuPlusConfigurationPage').on('pageshow', function (event) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var page = this;
|
||||
|
||||
ApiClient.getPluginConfiguration(VuPlusConfigurationPage.pluginUniqueId).done(function (config) {
|
||||
|
||||
$('#txtHostName', page).val(config.HostName || "");
|
||||
$('#txtStreamingPort', page).val(config.StreamingPort || "");
|
||||
$('#txtWebInterfacePort', page).val(config.WebInterfacePort || "");
|
||||
$('#txtWebInterfaceUsername', page).val(config.WebInterfaceUsername || "");
|
||||
$('#txtWebInterfacePassword', page).val(config.WebInterfacePassword || "");
|
||||
$('#chkUseSecureHTTPS', page).checked(config.UseSecureHTTPS || false).checkboxradio("refresh");
|
||||
$('#chkOnlyOneBouquet', page).checked(config.OnlyOneBouquet || false).checkboxradio("refresh");
|
||||
$('#txtTVBouquet', page).val(config.TVBouquet || "");
|
||||
$('#chkZapToChannel', page).checked(config.ZapToChannel || false).checkboxradio("refresh");
|
||||
$('#chkFetchPiconsFromWebInterface', page).checked(config.FetchPiconsFromWebInterface || false).checkboxradio("refresh");
|
||||
$('#txtPiconsPath', page).val(config.PiconsPath || "");
|
||||
|
||||
$('#txtRecordingPath', page).val(config.RecordingPath || "");
|
||||
|
||||
$('#chkDebugLogging', page).checked(config.EnableDebugLogging || false).checkboxradio("refresh");
|
||||
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
});
|
||||
|
||||
$('.VuPlusConfigurationForm').on('submit', function (e) {
|
||||
|
||||
Dashboard.showLoadingMsg();
|
||||
|
||||
var form = this;
|
||||
|
||||
ApiClient.getPluginConfiguration(VuPlusConfigurationPage.pluginUniqueId).done(function (config) {
|
||||
|
||||
//reset TV bouquet reference if TV Bouquet changed
|
||||
//if (config.TVBouquet != $('#txtTVBouquet', form).val()) {
|
||||
// config.tvBouquetSRef = '';
|
||||
//}
|
||||
|
||||
//reset TV bouquet reference if Only 1 Bouquet not set
|
||||
//if ($('#chkOnlyOneBouquet', form).checked()) {
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// config.tvBouquetSRef = '';
|
||||
//}
|
||||
|
||||
config.HostName = $('#txtHostName', form).val();
|
||||
config.StreamingPort = $('#txtStreamingPort', form).val();
|
||||
config.WebInterfacePort = $('#txtWebInterfacePort', form).val();
|
||||
config.WebInterfaceUsername = $('#txtWebInterfaceUsername', form).val();
|
||||
config.WebInterfacePassword = $('#txtWebInterfacePassword', form).val();
|
||||
config.UseSecureHTTPS = $('#chkUseSecureHTTPS', form).checked();
|
||||
config.OnlyOneBouquet = $('#chkOnlyOneBouquet', form).checked();
|
||||
config.TVBouquet = $('#txtTVBouquet', form).val();
|
||||
config.ZapToChannel = $('#chkZapToChannel', form).checked();
|
||||
config.FetchPiconsFromWebInterface = $('#chkFetchPiconsFromWebInterface', form).checked();
|
||||
config.PiconsPath = $('#txtPiconsPath', form).val();
|
||||
|
||||
config.RecordingPath = $('#txtRecordingPath', form).val();
|
||||
|
||||
config.EnableDebugLogging = $('#chkDebugLogging', form).checked();
|
||||
|
||||
ApiClient.updatePluginConfiguration(VuPlusConfigurationPage.pluginUniqueId, config).done(Dashboard.processPluginConfigurationUpdateResult);
|
||||
});
|
||||
|
||||
// Disable default form submission
|
||||
return false;
|
||||
});
|
||||
</script>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user