This commit is contained in:
DawitG96
2019-02-01 01:52:06 +01:00
parent 1c0176c72b
commit 64593ee4e4
20 changed files with 785 additions and 309 deletions

View File

@@ -4,7 +4,7 @@
}
<div class="breadcrumb">
@Html.ActionLink("Home", "Index", "Home")
@Html.ActionLink("Home", "Profile", "Home")
@if (controller != "Home")
{
@:> @Html.ActionLink(controller, "Index", controller)

View File

@@ -15,18 +15,6 @@
<!-- The user image in the menu -->
<li class="user-header">
<img src="@session.GetString("avatar")" class="img-circle" alt="User Image" id="avatar">
<div>
<input type="button" class="btn-flat" value="+" id="btn-plus" />
</div>
<!--<div id="image-uploader" style="display:none">
<input name="files" id="files" type="file" />
</div>-->
<div id="image-uploader" style="display:none">
<form method="post" enctype="multipart/form-data">
<input type="file" name="files" id="files" />
</form>
</div>
<p>
@session.GetString("name") @session.GetString("lastname") - @session.GetString("role")
<small>@session.GetString("email")</small>
@@ -44,25 +32,6 @@
</ul>
<script>
$(document).ready(function () {
$("#files").kendoUpload({
async: {
saveUrl: "/Account/_save",
autoUpload: true
},
success: function (data) {
if (data.response.success)
window.location.reload();
else
console.log(data.response.message);
}
});
});
$("#btn-plus").on("click", function () {
$("#image-uploader").toggle();
});
$("#logout-btn").on("click", function () {
$.ajax({
url: "/Account/_logout",

View File

@@ -12,9 +12,14 @@
if (username != null)
{
var isDoc = session.GetString("role").Equals("doctor");
var isPatient = session.GetString("role").Equals("patient");
var Menu = new List<IMenuItem>();
Menu.Add(new MenuItem("Profilo", "/"));
Menu.Add(new MenuItem("Dati personali", "/user/" + username));
if(isPatient)
{
Menu.Add(new MenuItem("Dati personali", "/user/" + username));
}
<aside class="main-sidebar">
<!-- sidebar: style can be found in sidebar.less -->

View File

@@ -22,12 +22,24 @@ scratch. This page gets rid of all links and provides the needed markup only.
<title>SeniorAssistant @ViewBag.Title</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" name="viewport">
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/bootstrap/dist/css/bootstrap.min.css">
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/fullcalendar/dist/fullcalendar.min.css">
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/fullcalendar/dist/fullcalendar.print.min.css" media="print">
<!-- daterange picker -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/bootstrap-daterangepicker/daterangepicker.css">
<!-- bootstrap datepicker -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.min.css">
<!-- iCheck for checkboxes and radio inputs -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/plugins/iCheck/all.css">
<link rel="stylesheet" href="~/AdminLTE-2.4.3/plugins/timepicker/bootstrap-timepicker.min.css">
<!-- Font Awesome -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/font-awesome/css/font-awesome.min.css">
<!-- Ionicons -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/bower_components/Ionicons/css/ionicons.min.css">
<!-- Theme style -->
<link rel="stylesheet" href="~/AdminLTE-2.4.3/plugins/business.css"/>
<link rel="stylesheet" href="~/AdminLTE-2.4.3/dist/css/AdminLTE.min.css">
<!-- AdminLTE Skins. We have chosen the skin-blue for this starter
page. However, you can choose any other skin. Make sure you
@@ -47,6 +59,16 @@ scratch. This page gets rid of all links and provides the needed markup only.
<script src="~/kendo/@(kendo.Version)/js/jquery.min.js"></script>
<script src="~/kendo/@(kendo.Version)/js/kendo.all.min.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/moment/moment.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/fullcalendar/dist/fullcalendar.min.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/bootstrap-daterangepicker/daterangepicker.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.min.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/fastclick/lib/fastclick.js"></script>
<script src="~/AdminLTE-2.4.3/bower_components/jquery-slimscroll/jquery.slimscroll.min.js"></script>
<script src="~/AdminLTE-2.4.3/plugins/timepicker/bootstrap-timepicker.min.js"></script>
<script src="~/AdminLTE-2.4.3/plugins/jQueryUI/jquery-ui.js"></script>
<script src="~/AdminLTE-2.4.3/plugins/jQueryUI/jquery-ui.min.js"></script>
<script src="~/AdminLTE-2.4.3/plugins/iCheck/icheck.min.js"></script>
</head>
<body class="hold-transition @(theme.Skin.GetDescription()) @(!logged?theme.Layout.GetDescription():"")">
@@ -58,7 +80,9 @@ scratch. This page gets rid of all links and provides the needed markup only.
<!-- mini logo for sidebar mini 50x50 pixels -->
<span class="logo-mini">@ViewBag.LogoMini</span>
<!-- logo for regular state and mobile devices -->
<span class="logo-lg">@ViewBag.Logo</span>
<span class="logo-lg">
<img src="~/logo-lg.png" width="50" height="50" /> <b>S</b>enior<b>A</b>ssistant
</span>
</a>
<!-- Header Navbar -->
<nav class="navbar navbar-static-top" role="navigation">
@@ -66,9 +90,9 @@ scratch. This page gets rid of all links and provides the needed markup only.
@if (logged)
{
<text>
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
<a href="#" class="sidebar-toggle" data-toggle="push-menu" role="button">
<span class="sr-only">Toggle navigation</span>
</a>
</text>
}
<!-- Navbar Right Menu -->
@@ -106,6 +130,7 @@ scratch. This page gets rid of all links and provides the needed markup only.
<!-- REQUIRED JS SCRIPTS -->
<!-- jQuery 3 -->
@*<script src="~/AdminLTE-2.4.3/bower_components/jquery/dist/jquery.min.js"></script>*@
<!-- Bootstrap 3.3.7 -->
<script src="~/AdminLTE-2.4.3/bower_components/bootstrap/dist/js/bootstrap.min.js"></script>
<!-- AdminLTE App -->
@@ -114,4 +139,4 @@ scratch. This page gets rid of all links and provides the needed markup only.
Both of these plugins are recommended to enhance the
user experience. -->
</body>
</html>
</html>