This commit is contained in:
21
source/ri/ri/Views/Settings/CustomerPortal.cshtml
Normal file
21
source/ri/ri/Views/Settings/CustomerPortal.cshtml
Normal file
@@ -0,0 +1,21 @@
|
||||
@using ri.util;
|
||||
@model RIIntegrationData
|
||||
@{
|
||||
ViewBag.Title = "Customer portal settings";
|
||||
}
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<div class="row">
|
||||
@ay.edSelectGroup("Workorder report for client view", "ClientWorkorderReportID", ay.ClientPortalServiceWorkorderReportList(), Model.ClientWorkorderReportID.ToString(), ViewBag)
|
||||
@ay.edTextAreaGroup("Client service request info text", "CSRInfoText", Model.CSRInfoText, ViewBag)
|
||||
@ay.edCheckGroup("Client can view their workorder wiki page", "ClientViewWorkorderWiki", Model.ClientViewWorkorderWiki, ViewBag)
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
@ay.saveBackButtonGroup(ViewBag)
|
||||
</div>
|
||||
|
||||
}
|
||||
@ay.jsAreYouSure()
|
||||
|
||||
|
||||
38
source/ri/ri/Views/Settings/LocalBrowser.cshtml
Normal file
38
source/ri/ri/Views/Settings/LocalBrowser.cshtml
Normal file
@@ -0,0 +1,38 @@
|
||||
@using ri.util;
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<hr />
|
||||
<div class="row">
|
||||
<label for="nativeDateTimeLocal">Use native date time picker:</label>
|
||||
<input type="checkbox" name="nativeDateTimeLocal" id="nativeDateTimeLocal" />
|
||||
</div>
|
||||
<hr />
|
||||
<div class="row">
|
||||
@ay.formBackButton()
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
|
||||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$("#nativeDateTimeLocal").prop("checked", !ayShimDateTime());
|
||||
|
||||
$("#nativeDateTimeLocal").change(function (ev) {
|
||||
debugger;
|
||||
var shim = !this.checked;
|
||||
if (sessionStorage) {
|
||||
if (shim) {
|
||||
sessionStorage.ayShimDateTime = true;
|
||||
}
|
||||
else {
|
||||
sessionStorage.removeItem('ayShimDateTime')
|
||||
}
|
||||
} else {
|
||||
alert('This browser does not support session storage, local settings can not be made!');
|
||||
}
|
||||
});
|
||||
});
|
||||
</script>
|
||||
15
source/ri/ri/Views/Settings/TimeZoneOffset.cshtml
Normal file
15
source/ri/ri/Views/Settings/TimeZoneOffset.cshtml
Normal file
@@ -0,0 +1,15 @@
|
||||
@using ri.util;
|
||||
|
||||
@using (Html.BeginForm())
|
||||
{
|
||||
<div class="row">
|
||||
@ay.edNumberGroup("User.Label.TimeZoneOffset", "TimeZoneOffset", ViewBag.offset.ToString(), true, ViewBag)
|
||||
</div>
|
||||
<a href="http://en.wikipedia.org/wiki/List_of_UTC_time_offsets"><small>(i.e. California "-8", Arizona "-7", New York "-5", Uruguay "-3", Ireland "0", Finland "2", Samoa "13")</small></a>
|
||||
|
||||
<div class="row">
|
||||
@ay.saveBackButtonGroup(ViewBag)
|
||||
</div>
|
||||
|
||||
}
|
||||
@ay.jsAreYouSure()
|
||||
Reference in New Issue
Block a user