This commit is contained in:
132
source/ri/ri/Views/Shared/_CustomerLayout.cshtml
Normal file
132
source/ri/ri/Views/Shared/_CustomerLayout.cshtml
Normal file
@@ -0,0 +1,132 @@
|
||||
@using ri.util;
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>@ViewBag.Title - AyaNova RI</title>
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
@Scripts.Render("~/bundles/modernizr")
|
||||
@Styles.Render("~/Content/themes/base/css")
|
||||
@Styles.Render("~/Content/bootstrapcss")
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
@Scripts.Render("~/bundles/jqueryui")
|
||||
@Scripts.Render("~/bundles/custom")
|
||||
@Scripts.Render("~/bundles/bootstrapjs")
|
||||
@Styles.Render("~/Content/css")
|
||||
<script src="~/Scripts/js-webshim/minified/polyfiller.js"></script>
|
||||
<script>
|
||||
webshims.setOptions('forms-ext', {
|
||||
replaceUI: {
|
||||
'datetime-local': ayShimDateTime(),
|
||||
'range': 'auto',
|
||||
'date': 'auto',
|
||||
'time':'auto',
|
||||
'number':'auto',
|
||||
'month':'auto',
|
||||
'color':'auto'
|
||||
},
|
||||
types: 'datetime-local range date time number month color'
|
||||
});
|
||||
webshims.polyfill('es5 forms forms-ext');
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var baseSiteURL = '@Url.Content("~/")';
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@RenderSection("viewhead", required: false)
|
||||
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
if (!GZTW.AyaNova.BLL.User.CurrentUserIsACustomer)
|
||||
{
|
||||
Response.Redirect("~/");
|
||||
}
|
||||
//Fixed navbar
|
||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
|
||||
class="icon-bar"></span><span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="@Url.Content("~/Customer/")"><span class="icon-AyaNovaRWILogo">
|
||||
</span></a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@if (ViewBag.ayMenu != null)
|
||||
{
|
||||
<li>@ay.genCustomMenu(ViewBag.ayMenu)</li>
|
||||
}
|
||||
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
|
||||
<li class="hidden-xs dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-cog"></span><span class="caret"></span></a>
|
||||
<ul id="ayCog" class="dropdown-menu" role="menu">
|
||||
<li class="dropdown-header">@User.Identity.Name</li>
|
||||
|
||||
@if (GZTW.AyaNova.BLL.AyaBizUtils.Right("Object.User") > 1)
|
||||
{
|
||||
<li>@Html.ActionLink(ay.lt("User.Label.TimeZoneOffset"), "TimeZoneOffset", "Customer")</li>
|
||||
}
|
||||
|
||||
<li>@Html.ActionLink("Log out", "LogOff", "Customer")</li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="http://www.ayanova.com/RI7Clientwebhelp/index.html" target="_blank">@ay.lt("UI.Menu.Help")</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
@if (GZTW.AyaNova.BLL.AyaBizUtils.Right("Object.User") > 1)
|
||||
{
|
||||
<li class="visible-xs-block">@Html.ActionLink(ay.lt("User.Label.TimeZoneOffset"), "TimeZoneOffset", "Customer")</li>
|
||||
}
|
||||
<li class="visible-xs-block">@Html.ActionLink("Log out", "LogOff", "Customer")</li>
|
||||
<li class="visible-xs-block"><a href="http://www.ayanova.com/RI7Clientwebhelp/index.html" target="_blank">@ay.lt("UI.Menu.Help")</a></li>
|
||||
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@*Alert bar*@
|
||||
<div class="container" style="margin-top: 55px;">
|
||||
@if (@ay.hasGeneralError)
|
||||
{
|
||||
<div class="alert alert-danger alert-bar" style="white-space: pre-wrap;">@ay.getGeneralError()</div>
|
||||
}
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<div class="container">
|
||||
@ViewBag.CustomClientHeader
|
||||
@RenderBody()
|
||||
@ViewBag.CustomClientFooter
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="ay-bumper-footer" />
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
<script type="text/javascript">
|
||||
ayKeepAlive();
|
||||
</script>
|
||||
}
|
||||
|
||||
</html>
|
||||
136
source/ri/ri/Views/Shared/_Layout.cshtml
Normal file
136
source/ri/ri/Views/Shared/_Layout.cshtml
Normal file
@@ -0,0 +1,136 @@
|
||||
@using ri.util;
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>@ViewBag.Title - AyaNova RI</title>
|
||||
<link href="~/favicon.ico" rel="shortcut icon" type="image/x-icon" />
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
@Scripts.Render("~/bundles/modernizr")
|
||||
@Styles.Render("~/Content/themes/base/css")
|
||||
@Styles.Render("~/Content/bootstrapcss")
|
||||
@Scripts.Render("~/bundles/jquery")
|
||||
@Scripts.Render("~/bundles/jqueryui")
|
||||
@Scripts.Render("~/bundles/custom")
|
||||
@Scripts.Render("~/bundles/bootstrapjs")
|
||||
@Styles.Render("~/Content/css")
|
||||
<script src="~/Scripts/js-webshim/minified/polyfiller.js"></script>
|
||||
<script>
|
||||
webshims.setOptions('forms-ext', {
|
||||
replaceUI: {
|
||||
'datetime-local': ayShimDateTime(),
|
||||
'range': 'auto',
|
||||
'date': 'auto',
|
||||
'time':'auto',
|
||||
'number':'auto',
|
||||
'month':'auto',
|
||||
'color':'auto'
|
||||
},
|
||||
types: 'datetime-local range date time number month color'
|
||||
});
|
||||
webshims.polyfill('es5 forms forms-ext');
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
var baseSiteURL = '@Url.Content("~/")';
|
||||
</script>
|
||||
|
||||
|
||||
|
||||
@RenderSection("viewhead", required: false)
|
||||
|
||||
</head>
|
||||
<body>
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
if (GZTW.AyaNova.BLL.User.CurrentUserIsACustomer)
|
||||
{
|
||||
Response.Redirect("~/Customer/");
|
||||
}
|
||||
//Fixed navbar
|
||||
<div class="navbar navbar-default navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
|
||||
class="icon-bar"></span><span class="icon-bar"></span>
|
||||
</button>
|
||||
<a class="navbar-brand" href="@Url.Content("~/")"><span class="icon-AyaNovaRWILogo">
|
||||
</span></a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@if (ViewBag.ayMenu != null)
|
||||
{
|
||||
<li>@ay.genCustomMenu(ViewBag.ayMenu)</li>
|
||||
}
|
||||
<li class="@Url.MakeActive("Index", "Schedule")">@Html.ActionLink(ay.lt("UI.Go.Schedule"), "Index", "Schedule")</li>
|
||||
<li class="dropdown"><a onclick="fillMRU()" href="#" class="dropdown-toggle" data-toggle="dropdown">@ay.lt("UI.Menu.MRU")
|
||||
<span class="caret"></span></a>
|
||||
<ul id="ayMRU" class="dropdown-menu ay-drop-menu-wide" role="menu">
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
<ul class="nav navbar-nav navbar-right">
|
||||
<form class="navbar-form navbar-left" role="search">
|
||||
<div class="form-group">
|
||||
<input id="aySearchText" type="text" class="form-control" placeholder="@ay.lt("UI.Command.Search")">
|
||||
</div>
|
||||
<button type="button" class="btn btn-default" onclick="aySearch()">
|
||||
<span class="glyphicon glyphicon-search"></span>
|
||||
</button>
|
||||
</form>
|
||||
<li class="hidden-xs dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown">
|
||||
<span class="glyphicon glyphicon-cog"></span><span class="caret"></span></a>
|
||||
<ul id="ayCog" class="dropdown-menu" role="menu">
|
||||
<li class="dropdown-header">@User.Identity.Name</li>
|
||||
<li>@Html.ActionLink(ay.lt("Memo.Label.List"), "Index", "Memo")</li>
|
||||
@if (GZTW.AyaNova.BLL.AyaBizUtils.Right("Object.User") > 1)
|
||||
{
|
||||
<li>@Html.ActionLink(ay.lt("User.Label.TimeZoneOffset"), "TimeZoneOffset", "Settings")</li>
|
||||
}
|
||||
<li>@Html.ActionLink("Browser settings", "LocalBrowser", "Settings")</li>
|
||||
|
||||
@if ((GZTW.AyaNova.BLL.AyaBizUtils.Right("Object.Global") > 1) && GZTW.AyaNova.BLL.User.CurrentUserIsAnAdministrator)
|
||||
{
|
||||
<li>@Html.ActionLink(ay.lt("UserTypes.Label.Client"), "CustomerPortal", "Settings")</li>
|
||||
}
|
||||
|
||||
<li>@Html.ActionLink("Log out", "LogOff", "Login")</li>
|
||||
<li class="divider"></li>
|
||||
<li><a href="http://www.ayanova.com/AyaNova7webHelp/index.html?what_is_RI.htm " target="_blank">@ay.lt("UI.Menu.Help")</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="visible-xs-block"><a href="@Url.Content("~/Home/Settings")"><span class="glyphicon glyphicon-cog">
|
||||
</span></a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!--/.nav-collapse -->
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
@*Alert bar*@
|
||||
<div class="container" style="margin-top: 55px;">
|
||||
@if (@ay.hasGeneralError)
|
||||
{
|
||||
<div class="alert alert-danger alert-bar" style="white-space: pre-wrap;">@ay.getGeneralError()</div>
|
||||
}
|
||||
</div>
|
||||
@*MAIN CONTENT*@
|
||||
<div class="container">
|
||||
@RenderBody()
|
||||
</div>
|
||||
@* /MAIN CONTENT
|
||||
Footer section*@
|
||||
<div class="ay-bumper-footer" />
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
@if (Request.IsAuthenticated)
|
||||
{
|
||||
<script type="text/javascript">
|
||||
ayKeepAlive();
|
||||
</script>
|
||||
}
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user