Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @using System.Security.Policy
- @using Growzer.Common.Enums
- @using Growzer.Web.Classes
- @using Growzer.Web.Views.Shared.Helpers
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="utf-8" />
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
- <link rel="icon" type="image/png" href="@Url.Content("~/Resources/Images/favicon.ico")">
- @RenderSection("scriptsHeader", required: false)
- <!-- Font Awesome -->
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">
- @*<link rel="stylesheet" href="~/Resources/Styles/font-proxima.css">*@
- @Styles.Render("~/Resources/Content/css")
- @Styles.Render("~/Resources/Content/css-theme")
- @*@Scripts.Render("~/bundles/modernizr")*@
- <style>
- body {
- background-color: rgb(239, 242, 245) !important;
- }
- .content-wrapper {
- min-height: calc(100vh - 75px) !important;
- }
- .main-footer {
- background-color: rgb(239, 242, 245) !important;
- position: fixed;
- bottom: 0;
- width: calc(100vw - 74px);
- }
- </style>
- </head>
- <body class="hold-transition skin-blue sidebar-mini">
- @*@Html.Hidden("urlTranslationsApi", Url.RouteUrl("DefaultApiAction", new { httproute = "", controller = "TranslationsApi", action = "TranslationsByClassKey" }))*@
- @Html.Hidden("urlGetLocalIdentity", Url.Action("GetLocalIdentity", "Customers", new { area = "Crm" }))
- @Html.Hidden("urlLogout", Url.Action("LogOff", "Account", new { area = "" }))
- @Html.Hidden("urlPosNotification", Url.Action("DailyNotification", "DailySales", new { area = "Management" }))
- <div class="wrapper">
- <header class="main-header">
- <nav class="navbar navbar-static-top" role="navigation">
- <div class="col-xs-2" style="text-align: left; padding-left: 10px">
- <a href="#" class="sidebar-toggle" data-toggle="offcanvas" role="button">
- <span class="toggle-menu-icon toggle-menu1">
- <img src="@Url.Content("~/Resources/Images/menu_active.png")" style="width: 40px; height: 29px; margin: -10px" />
- </span>
- <span class="toggle-menu-icon toggle-menu2">
- <img src="@Url.Content("~/Resources/Images/menu_inactive.png")" style="width: 40px; height: 29px; margin: -10px" />
- </span>
- <span class="sr-only">Toggle navigation</span>
- </a>
- </div>
- <div class="col-xs-8">
- <a href="#" class="logo">
- <img src="@Url.Content("~/Resources/Images/growzer_logo.png")" />
- </a>
- </div>
- <div class="col-xs-2 navbar-custom-menu" style="height: 100%">
- <a id="plusOrderButton2">
- <img class="pull-right" style="width: 35px; height: 35px; margin-top: 8px" src="@Url.Content("~/Resources/Images/add.png")" />
- </a>
- </div>
- </nav>
- </header>
- <aside class="main-sidebar">
- <!-- sidebar: style can be found in sidebar.less -->
- <section class="sidebar" style="margin-top: -5px">
- <!-- Sidebar user panel -->
- <div>
- <ul class="sidebar-menu">
- <li style="position: relative">
- @if (!string.IsNullOrEmpty(GrowzerIdentity.Current.LogoSmall))
- {
- <a href="javascript:;" onclick="showChangeLogoModal()" id="anchorLogo" style="background-color: #043643" title="@Localizer.GetWebTranslation("Menu", "Change your logo")">
- <img src="@GrowzerIdentity.Current.LogoSmall" id="logoTopLeft2" style="position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; max-width: 100%; max-height: 100%" />
- </a>
- }
- else
- {
- <a href="javascript:;" onclick="showChangeLogoModal()" id="anchorLogo" style="background-color: #043643; display: none" title="@Localizer.GetWebTranslation("Menu", "Change your logo")">
- <img src="@GrowzerIdentity.Current.LogoSmall" id="logoTopLeft2" style="position: absolute; margin: auto; top: 0; left: 0; right: 0; bottom: 0; max-width: 100%; max-height: 100%" />
- </a>
- <a href="javascript:;" id="anchorNoLogo" onclick="showChangeLogoModal()" style="background-color: #043643;" title="@Localizer.GetWebTranslation("Menu", "Change your logo")">
- <i alt="Logo" class="menu-icon fa fa-plus-circle" style="font-size: 25px"></i><br>
- @Localizer.GetWebTranslation("Menu", "Your logo")
- </a>
- }
- </li>
- </ul>
- </div>
- <!-- sidebar menu: : style can be found in sidebar.less -->
- <ul class="sidebar-menu">
- @Html.Action("MainMenu", "Menu", new { Area = "" })
- </ul>
- </section>
- <!-- /.sidebar -->
- </aside>
- <div class="clearfix"></div>
- <div class="content-wrapper pre-scrollable">
- @RenderBody()
- @Html.Hidden("urlTemplates", @Url.Action("Templates", "Orders", new { Area = "Crm" }))
- @Html.Hidden("urlStartOrder", @Url.Action("Edit", "Orders", new { Area = "Crm", id = "" }))
- @Html.Hidden("urlGetTranslations", @Url.Action("GetTranslations", "Translations", new { Area = "" }))
- @Html.Hidden("urlSaveTranslations", @Url.Action("SaveTranslations", "Translations", new { Area = "" }))
- <input type="hidden" id="dayNames" value="@Localizer.GetWebTranslation("MainMenu", "Sun, Mon, Tue, Wed, Thus, Fri, Sat")" />
- <input type="hidden" id="messageRequestSent" value="@Localizer.GetWebTranslation("Onboarding", "<span>Request sent!</span><br/> Thank you, an account manager will contact you in 24h")" />
- <input type="hidden" id="messageOk" value="@Localizer.Ok" />
- <div class="modal theme-modal fade" role="dialog" id="modalTemplates">
- </div>
- <div class="modal fade theme-modal" id=" " tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
- <div class="modal-dialog" style="width: 450px" role="document">
- <div class="modal-content" id="LayoutModalContent" style="margin: auto">
- <div class="modal-header">
- <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
- <h4 class="modal-title"><i class="fa fa-user"></i> @Localizer.GetWebTranslation("PartnersViewModel", "All Notifications")</h4>
- </div>
- <div class="modal-body pre-scrollable">
- <div id="LayoutModalContainer"></div>
- @*<div id="listEnd" style="height: 5px; background: red"></div>*@
- </div>
- <div class="modal-footer">
- <button type="button" class="btn btn-secondary " data-dismiss="modal" aria-label="Close">@Localizer.Cancel</button>
- </div>
- </div>
- </div>
- </div>
- <div id="changeLogoContainer" class="modal fade" role="dialog">
- @Html.Action("GetChangeLogoModal", "Customers", new { Area = "Crm" })
- </div>
- </div>
- <div class="modal fade in theme-modal" tabindex="-1" role="dialog" data-backdrop="static" data-keyboard="false" id="modalAssistedOnboardingProcess">
- <div class="modal-dialog modal-sm" role="document">
- <div class="modal-content" style="width:550px">
- <div class="modal-body">
- <span style="text-align: center;">The Assisted Onboarding Process</span><br />
- <div style="line-height: 1.9;">
- <span style="display: inline-block; width: 100%;">
- • We take your 3 months of invoices, scan and digitalize them.
- </span>
- <span style="display: inline-block; width: 100%;">
- • We setup your account, users and parteners for you.
- </span>
- <span style="display: inline-block; width: 100%;">
- • We provide training to you and your staff (2h)
- </span>
- </div>
- <span style="font-weight: normal; margin-top: 5px; font-weight: 400;">
- Pricing
- <span style="vertical-align: super; font-size: 16px; font-weight: 500">€</span>
- <span style="font-weight: 500">495</span>
- </span>
- </div>
- <div class="modal-footer" style="border-top: 1px solid #eef0f5; padding-top: 5px;">
- <div class="footer-half left">
- <button type="button" data-dismiss="modal" class="btn-link">Cancel</button>
- </div>
- <div class="footer-half right">
- <button type="button" class="btn-primary">I want them</button>
- </div>
- </div>
- </div>
- </div>
- </div>
- <!-- Footer-->
- <footer class="main-footer">
- <input id="urlGetLogo" type="hidden" value="@Url.Action("GetLogo", "Customers", new {Area = "Crm"})" />
- <input id="urlUploadLogo" type="hidden" value="@Url.Action("UploadLogo", "Customers", new {Area = "Crm"})" />
- <input id="urlSaveLogo" type="hidden" value="@Url.Action("SaveLogo", "Customers", new {Area = "Crm"})" />
- <input type="hidden" id="currentLanguageCode" value="@GrowzerIdentity.Current.LanguageCode" />
- <input id="notificationURL" type="hidden" value="@Url.Action("NotificationArea", "Menu", new {area = ""})" />
- <input id="notificationPullURL" type="hidden" value="@Url.Action("NotificationPull", "Menu", new {area = ""})" />
- <input id="notificationSeenURL" type="hidden" value="@Url.Action("MarkNotificationAsSeen", "Menu", new {area = ""})" />
- <input id="notificationAllSeenURL" type="hidden" value="@Url.Action("MarkAllNotificationsSeen", "Menu", new {area = ""})" />
- <input id="notificationGetAll" type="hidden" value="@Url.Action("GetAllNotifications", "Menu", new {area = ""})" />
- <input id="goOffline" type="hidden" value="@Url.Action("Offline", "Orders", new {area = "Crm"})" />
- <div id="notificationArea" style="width: 400px; position: absolute; bottom: 100px; display: none"> </div>
- <a class="bottom-link" id="notificationsGen" data-expanded="false">
- <span id="lnkNotifications" class="notificationsText" style="display: none">@Localizer.GetWebTranslation("Notifications", "Notifications")</span>
- <img src="~/Resources/Images/Svg/Footer/01_general notifications.svg" />
- <span id="counterGeneralNotifications" class="counter" style="display: none">
- </span>
- </a>
- @{
- if (GrowzerIdentity.Current.CustomerType == CustomerType.Outlet && GrowzerIdentity.Current.OnboardingStatus==Growzer.Domain.Enums.OnboardingStatus.Completed)
- {
- <a class="bottom-link sales-footer" style="margin-left: -5px; display: none" href="@Url.Action("Index","DailySales", new {area = "Management"})">
- <img src="~/Resources/Images/dashboard/Outlet/03_pos.svg" />
- <span id="dailySalesRequiredNotification" class="counter" style="display: none">!</span>
- </a>
- }
- }
- <div class="pull-right hidden-xs" style="width: 150px; padding-top: 15px; text-align: center">
- <img src="~/Resources/Images/growzer-powered.png" style="border: 0px" class="powered" />
- </div>
- <div class="pull-right hidden-xs bottom-login">
- @Html.Action("UserInfo", "Home", new { Area = "" })
- </div>
- @Html.Hidden("setUTCoffset", Url.Action("GetTimezoneOffset", "Dashboard", new { area = "Crm" }))
- </footer>
- </div>
- <script type="text/javascript">
- //var appInsights = window.appInsights || function (config) {
- // function r(config) { t[config] = function () { var i = arguments; t.queue.push(function () { t[config].apply(t, i) }) } } var t = { config: config }, u = document, e = window, o = "script", s = u.createElement(o), i, f; for (s.src = config.url || "//az416426.vo.msecnd.net/scripts/a/ai.0.js", u.getElementsByTagName(o)[0].parentNode.appendChild(s), t.cookie = u.cookie, t.queue = [], i = ["Event", "Exception", "Metric", "PageView", "Trace"]; i.length;) r("track" + i.pop()); return r("setAuthenticatedUserContext"), r("clearAuthenticatedUserContext"), config.disableExceptionTracking || (i = "onerror", r("_" + i), f = e[i], e[i] = function (config, r, u, e, o) { var s = f && f(config, r, u, e, o); return s !== !0 && t["_" + i](config, r, u, e, o), s }), t
- //}({
- // instrumentationKey: "8a24b875-13b0-4a90-aaed-f1167637e84c"
- //});
- //window.appInsights = appInsights;
- //appInsights.trackPageView();
- var appInsights = window.appInsights || function (config) {
- function r(config) { t[config] = function () { var i = arguments; t.queue.push(function () { t[config].apply(t, i) }) } } var t = { config: config }, u = document, e = window, o = "script", s = u.createElement(o), i, f; s.src = config.url || "https://az416426.vo.msecnd.net/scripts/a/ai.0.js"; u.getElementsByTagName(o)[0].parentNode.appendChild(s); try { t.cookie = u.cookie } catch (h) { } for (t.queue = [], i = ["Event", "Exception", "Metric", "PageView", "Trace", "Dependency"]; i.length;) r("track" + i.pop()); return r("setAuthenticatedUserContext"), r("clearAuthenticatedUserContext"), config.disableExceptionTracking || (i = "onerror", r("_" + i), f = e[i], e[i] = function (config, r, u, e, o) { var s = f && f(config, r, u, e, o); return s !== !0 && t["_" + i](config, r, u, e, o), s }), t
- }({
- instrumentationKey: "@Growzer.Common.Infrastructure.ConfigurationHelper.GetSettingAsString("APPINSIGHTS_INSTRUMENTATIONKEY")"
- });
- window.appInsights = appInsights;
- appInsights.trackPageView();
- (function (i, s, o, g, r, a, m) {
- i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () {
- (i[r].q = i[r].q || []).push(arguments)
- },
- i[r].l = 1 * new Date(); a = s.createElement(o),
- m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m)
- })(window, document, 'script', 'https://www.google-analytics.com/analytics.js', 'ga');
- /*UA-85709115-2*/
- ga('create', '@Growzer.Common.Infrastructure.ConfigurationHelper.GetSettingAsString("GoogleAnalyticsKey")', 'auto');
- ga('send', 'pageview');
- function Resolve(relative) {
- var relativeRoot = '@Url.Content("~/")';
- var resolved = relative;
- if (relative.charAt(0) == '~')
- resolved = relativeRoot + relative.substring(2);
- if (relative.charAt(0) == '/')
- resolved = relativeRoot + relative.substring(1);
- return resolved;
- }
- function HideDivOnBlur(selector) {
- $(document).on('mouseup touchend', function (e) {
- var container = $(selector);
- (!container.is(e.target) && container.has(e.target).length === 0
- && !$(e.target).is(".display-toggler") && !$(e.target).parent().is(".display-toggler"))
- && container.parent().removeClass('active');
- setTimeout(function () {
- $('.display-toggler').not($(e.target)).not($(e.target).parent()).removeClass('active');
- }, 50);
- });
- };
- </script>
- @Scripts.Render("~/bundles/jquery")
- @Scripts.Render("~/bundles/jqueryval")
- @Scripts.Render("~/bundles/bootstrap")
- @*@Scripts.Render("~/bundles/adminlte")*@
- @Scripts.Render("~/bundles/knockout")
- @Scripts.Render("~/bundles/inputmask")
- @Scripts.Render("~/bundles/appgen")
- <script id="inputValidationMessage" type="text/html">
- <div class="popover fade bottom in" style="top: 24px; left: 20px; display: none">
- <div class="arrow" style="left: 30px;"></div>
- <div class="popover-content text-danger">
- <span class="field-validation-error" data-bind="text: field.error">
- </span>
- </div>
- </div>
- </script>
- @*<script src="~/Resources/Scripts/OfflineJS/offline.js"></script>*@
- @*<script src="~/Resources/Scripts/OfflineJS/offlineJs-simulateUI.js"></script>*@
- @*<link href="~/Resources/Scripts/OfflineJS/styles.css" rel="stylesheet" />*@
- <script>
- function ToggleSimulateUI() {
- $(".offline-simulate-ui").toggle();
- }
- function CheckForSalesDataEntry() {
- var isBetweenHours = true; //no strategy atm
- if (moment().date() == 1 || isBetweenHours) {
- $.get($("#urlPosNotification").val(), {
- year: moment().year(),
- month: moment().month() + 1,
- day: moment().date()
- }, function (data) {
- if (!data) {
- $("#dailySalesRequiredNotification").show();
- }
- }).fail(function (data) {
- console.log(data);
- });
- }
- }
- function SetupDropdowns() {
- $(".dropgrz").click(function (elem) {
- var maxH = $(window).height();
- var dropElem = elem.currentTarget;
- if ((maxH - elem.clientY) > maxH / 3) {
- $(dropElem).removeClass("dropup").addClass("dropdown");
- } else {
- $(dropElem).removeClass("dropdown").addClass("dropup");
- }
- });
- }
- $(document).ready(function () {
- //show pos item in the notification bar if he has No Pos connected
- //if (!Identity.HasPos() && Identity.CustomerType() == 1) {
- //show for all outlets, regardless of pos connection Type
- if (Identity.CustomerType() == 1) {
- $(".sales-footer").show();
- CheckForSalesDataEntry();
- }
- //get notification for dailySales
- //setup moment.js locale
- var langCode = $("#hidUserLanguageCode").val();
- //default en is US (which is bad). so make it UK
- if (langCode == 'en')
- langCode = "en-gb";
- moment.locale(langCode);
- //setChatraData();
- SetupDropdowns();
- $(".main-footer").show();
- var width_screen = $(window).width();
- if (width_screen < 768) {
- $('.submenu').css('width', width_screen);
- $('.sidebar-menu > li').addClass('col-xs-4');
- $('.submenu').children('li').addClass('col-xs-4');
- }
- $('.sidebar-menu').on('click', 'li', function () {
- $(".sidebar-menu li").removeClass("active");
- $(this).addClass("active");
- });
- $(window).resize(function () {
- ht = $('#btnChangeImage').outerHeight();
- $('#profilePicture').css('height', ht);
- });
- $('.treeview').click(function () {
- check = $(this).has('.submenu');
- if (width_screen < 768 && check.length >= 1) {
- var count = $(this).find('.submenu li').length;
- if (count >= 1) {
- divide = (count / 3);
- roundedpx = Math.ceil(divide);
- if (roundedpx >= 1) {
- pixels = (roundedpx * 100);
- $('.sidebar-menu .submenu').css('height', pixels);
- }
- } //end of couunt if
- } //end of check if
- });
- });
- // Utility methods
- // ---------------------------------------------
- function isNumeric(n) {
- return !isNaN(parseFloat(n)) && isFinite(n);
- }
- function defaultComparison(a, b) {
- if (isNumeric(a) && isNumeric(b)) return a - b;
- a = a.toString();
- b = b.toString();
- return a == b ? 0 : (a < b ? -1 : 1);
- }
- // ---------------------------------------------
- </script>
- @RenderSection("scripts", required: false)
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement