@model SaxModel_Online
@inject Microsoft.AspNetCore.Antiforgery.IAntiforgery AntiForgery;
@inject SaxLocaliser Localiser
@*
Application: Online
Purpose: Page template.
*@
@{
// Model properties to become javascript values.
var awaitingLogin = Model.AwaitingLogin ? "1" : "0";
var keepLoggedIn = Model.KeepLoggedIn ? "1" : "0";
var debug = Model.DebugMode ? "1" : "0";
}
@* Set base URL the same for all pages so that relative URLs work the same for all. *@
@* IE11 incompatibility eg. 'border-radius' not recognised. Must be at top of head *@
@if (Model.ProhibitCache)
{
}
@ViewData["Title"]
@* Stylesheets *@
@foreach (var cssFile in Model.AdditionalFiles_CSS)
{
}
@* Scripts *@
@* Header *@
@* Navigation bar *@
@* Page body *@
@RenderBody()
@* Footer *@
@* Form to allow page navigation. *@
@using (@Html.BeginForm(FormMethod.Post, new { @id = "frmNavigate" })) { }
@* Scripts *@
@foreach (var jsFile in Model.AdditionalFiles_JS)
{
}
@if (Model.IncludeGoogleAnalytics)
{
}
@RenderSection("Scripts", required: false)