Commit 24914c05 authored by hasan khaddour's avatar hasan khaddour

fix s

parent b458f569
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WebPresentation.ViewModels
{
public class MedicalStateMedicineVModel : BaseViewModel
......
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
......@@ -10,6 +11,8 @@ namespace WebPresentation.ViewModels
{
public int PatientId { get; set; }
public PatientViewModel Patient { get; set; }
[Display(Name ="State Name")]
public String StateName { get; set; }
public String StateDescription { get; set; }
public DateTime PrescriptionTime { get; set; }
......
......@@ -3,8 +3,8 @@
ViewData["Title"] = "Log in";
}
<h1>@ViewData["Title"]</h1>
<link rel="stylesheet" href="~/css/mine.css" />
<section class=" page-section bg-primary" style="background-color: #9A616D;">
<div class="container py-5 h-100">
......@@ -13,8 +13,8 @@
<div class="card" style="border-radius: 1rem;">
<div class="row g-0">
<div class="col-md-6 col-lg-5 d-none d-md-block">
<img src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-login-form/img1.webp"
alt="login form" class="img-fluid" style="border-radius: 1rem 0 0 1rem;" />
<img src="~/img/portfolio/doctor.png"
alt="login form" id="log_doctor" />
</div>
<div class="col-md-6 col-lg-7 d-flex align-items-center">
<div class="card-body p-4 p-lg-5 text-black">
......
......@@ -3,7 +3,9 @@
ViewData["Title"] = "Register";
}
<h1>@ViewData["Title"]</h1>
<link rel="stylesheet" href="~/css/mine.css" />
<style>
......@@ -22,19 +24,19 @@
top: 13px;
}
</style>
<section class="page-section bg-primary text-black mb-0">
<h3 class="mb-5 text-uppercase text-center">Patient Registration</h3>
<form method="post" asp-controller="Access" asp-action="Register">
<form method="post" asp-controller="Access" asp-action="Register">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col">
<div class="card card-registration my-4">
<div class="row g-0">
<div class="col-xl-6 d-none d-xl-block">
<img src="https://mdbcdn.b-cdn.net/img/Photos/new-templates/bootstrap-registration/img4.webp"
alt="Sample photo" class="img-fluid"
style="border-top-left-radius: .25rem; border-bottom-left-radius: .25rem;" />
<img id="log_patient" src="~/img/portfolio/doctor.png"
alt="Sample photo" />
</div>
<div class="col-xl-6">
......
......@@ -6,44 +6,38 @@
}
<section class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-8 col-lg-8 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="row g-0">
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-lg-8">
<div class="card shadow-lg p-3 mb-5 bg-white rounded">
<div class="card-body">
<h1 class="card-title display-4 mb-4 text-center">Create New Ingredient</h1>
<hr />
<form asp-action="Create" method="post">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<h1>Create</h1>
<div class="form-group">
<label asp-for="Name" class="control-label">Name</label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<h4>Ingredient</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Name" class="control-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
<div class="form-group">
<label asp-for="Description" class="control-label">Description</label>
<textarea asp-for="Description" class="form-control" rows="4"></textarea>
<span asp-validation-for="Description" class="text-danger"></span>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
<div class="text-center">
<button type="submit" class="btn btn-primary btn-lg">Create</button>
</div>
</form>
</div>
</div>
<div class="text-center">
<a asp-action="Index" class="btn btn-secondary">Back to List</a>
</div>
</div>
</div>
</div>
......
......@@ -14,30 +14,40 @@
</div>
<div class="modal-body container-fluid">
<h3>Are you sure you want to delete this?</h3>
<div>
<hr />
<dl class="row">
<dt class="col-6">
@Html.DisplayNameFor(model => model.Name)
</dt>
<dd class="col-6">
@Html.DisplayFor(model => model.Name)
</dd>
<dt class="col-6">
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd class="col-6">
@Html.DisplayFor(model => model.Description)
</dd>
<div class="container ">
<div class="row justify-content-center">
<div class="col">
<div class="card shadow-lg p-3 mb-5 bg-white rounded">
<div class="card-body">
<h3 class="mb-4">Are you sure you want to delete this ingredient?</h3>
</dl>
<hr />
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" /> |
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</form>
<div class="row">
<div class="col">
<h4>Ingredient Details</h4>
<hr />
<dl class="row">
<dt class="col-sm-4">Name:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.Name)</dd>
<dt class="col-sm-4">Description:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.Description)</dd>
</dl>
</div>
</div>
<form asp-action="Delete" method="post">
<input type="hidden" asp-for="Id" />
<div class="text-center mt-5">
<input type="submit" value="Delete" class="btn btn-danger" />
<button type="button" class="btn btn-secondary ms-3" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
\ No newline at end of file
......@@ -2,42 +2,42 @@
@{
ViewData["Title"] = "Details";
ViewData["Controller"] = "Ingredient";
Layout = "_AdminLayout";
}
<section class="vh-100" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-lg-6 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="container py-5">
<div class="row d-flex justify-content-center align-items-center">
<div class="col-lg-8">
<div class="card shadow-sm">
<div class="row g-0">
<div class="col-md-4 gradient-custom text-center text-black"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<img src="~/img/portfolio/instagram.png"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
<h5>@Model.Name</h5>
<button class="btn btn-warning btn-edit" data-id="@Model.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
<a asp-action="Index">
<i class="far fa-backward">
</i>
</a>
<div class="col-md-4 gradient-custom text-center text-white py-4"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem; background-color: #6a58a1;">
<img src="~/img/portfolio/ingredients.png"
alt="Avatar" class="img-fluid my-4" style="width: 120px; border-radius: 50%;" />
<h5 class="mb-0">@Model.Name</h5>
<div class="mt-3">
<button class="btn btn-warning btn-edit m-1" data-id="@Model.Id">Edit</button>
<button class="btn btn-danger btn-delete m-1" data-id="@Model.Id">Delete</button>
<a asp-action="Index" class="btn btn-sm btn-outline-light">
<i class="far fa-backward me-1"></i> Back to List
</a>
</div>
</div>
<div class="col-md-8">
<div class="card-body p-4">
<h6>Information</h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Description</h6>
<h5 class="card-title">Information</h5>
<hr class="my-3">
<div class="row">
<div class="col-md-6">
<p class="fw-bold mb-1">Description:</p>
<p class="text-muted">@Model.Description</p>
</div>
<div class="col-6 mb-3">
<h6>Price</h6>
<div class="col-md-6">
<p class="fw-bold mb-1">Price:</p>
<p class="text-muted">Not available</p>
</div>
</div>
</div>
......@@ -48,26 +48,3 @@
</div>
</div>
</section>
<div class="modal fade" id="modal-edit" tabindex="-1" role="dialog" aria-labelledby="modalEditLabel" aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<!-- Content loaded via AJAX -->
</div>
</div>
</div>
@section scripts {
<script>
$(document).ready(function () {
// Load the Edit form in the modal
$('.btn-edit').on('click', function () {
var id = $(this).data('id');
$('#modal-edit').find('.modal-content').load('/Ingredient/Dummy/' + id);
$('#modal-edit').modal('show');
});
});
</script>
}
......@@ -14,31 +14,43 @@
</div>
<div class="modal-body">
<div class="row ">
<div class="col-md-4">
<form asp-action="Edit" class="form-group ">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<label asp-for="Name" class="control-label "></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="container">
<div class="row justify-content-center">
<div class="col">
<form asp-action="Edit" class="mt-4">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group mb-3">
<label asp-for="Name" class="form-label"></label>
<input asp-for="Name" class="form-control" />
<span asp-validation-for="Name" class="text-danger"></span>
</div>
<div class="form-group mb-3">
<label asp-for="Description" class="form-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<input type="submit" value="Save" class="btn btn-primary" />
<input type="hidden" asp-for="Id" />
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<div class="d-grid gap-2 mt-4">
<button type="submit" class="btn btn-primary btn-lg">Save</button>
</div>
</form>
<hr class="mt-4">
<div class="text-center">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
@section Scripts {
......
......@@ -7,83 +7,75 @@
}
<div class="row">
<div class="col-xl-3 col-md-6">
<div class="card bg-primary text-white mb-4">
<div class="card-body">Ingredients Counts </div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#"> @Model.Count()</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
<!-- Include animate.css from CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<div class="container py-5">
<div class="row">
<div class="col-xl-3 col-md-6 mb-4">
<div class="card bg-primary text-white shadow animate__animated animate__fadeInDown">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center">
<div class="text-white">Ingredients Count</div>
<div class="h1 font-weight-bold">@Model.Count()</div>
</div>
</div>
<a href="#" class="card-footer text-white d-flex align-items-center justify-content-between small stretched-link">
View Details
<div class="text-white"><i class="fas fa-angle-right"></i></div>
</a>
</div>
</div>
</div>
</div>
<p>
<a asp-action="Create" class="btn btn-primary ">Create New</a>
</p>
<div>
<table id="datatablesSimple" class="table">
<thead>
<tr>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Id)
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Name)
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Description)
</th>
<th scope="col">
Manage
</th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row">ID</th>
<th> name</th>
<th>Description</th>
<th>Manage</th>
</tr>
</tfoot>
<tbody>
@foreach (var item in Model)
{
<tr>
<td scope="row">
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
<td>
<button class="btn btn-warning btn-edit" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-controller="Ingredient" asp-route-id="@item.Id"><i class="far fa-address-card"></i></a>
</td>
<div class="row">
<div class="col">
<h2 class="mb-4 animate__animated animate__fadeIn">Ingredients List</h2>
<p class="animate__animated animate__fadeIn">
<a asp-action="Create" class="btn btn-primary animate__animated animate__zoomIn">Create New</a>
</p>
<div class="table-responsive animate__animated animate__fadeIn">
<table id="datatablesSimple" class="table table-striped table-bordered">
<thead class="bg-primary text-white">
<tr>
<th scope="col">Name</th>
<th scope="col">Description</th>
<th scope="col">Manage</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr class="animate__animated animate__fadeInUp">
<td>@Html.DisplayFor(modelItem => item.Name)</td>
<td>@Html.DisplayFor(modelItem => item.Description)</td>
<td>
<div class="d-flex">
<button class="btn btn-warning btn-edit m-1" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete m-1" data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-route-id="@item.Id" class="m-1 btn btn-info text-info " title="Details">Details</a>
</div>
</td>
</tr>
}
</tbody>
<tfoot>
<tr>
<th>Name</th>
<th>Description</th>
<th>Manage</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
</tr>
}
</tbody>
</table>
@section Scripts {
<partial name="_ValidationScriptsPartial" />
}
</div>
<hr />
......@@ -8,47 +8,48 @@
}
<section class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-8 col-lg-8 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="row">
<div class="col-md-4">
<form asp-action="Create" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col">
<label asp-for="StateName" class="control-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<div class="col">
<label asp-for="PrescriptionTime" class="control-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<input asp-for="StateDescription" class="form-control" />
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
</div></div></div></div></div></section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
<div class="col-12 col-md-8 col-lg-6 mb-4 mb-lg-0">
<div class="card shadow-sm" style="border-radius: .5rem;">
<div class="card-header text-center bg-primary text-white" style="border-top-left-radius: .5rem; border-top-right-radius: .5rem;">
<h4>Create Medical State</h4>
</div>
<div class="card-body">
<form asp-action="Create" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="alert alert-danger"></div>
<div class="form-group mb-3">
<label asp-for="StateName" class="form-label"></label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="form-group mb-3">
<label asp-for="PrescriptionTime" class="form-label"></label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
<div class="form-group mb-4">
<label asp-for="StateDescription" class="form-label"></label>
<input asp-for="StateDescription" class="form-control" />
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div class="d-grid">
<button type="submit" class="btn btn-primary btn-block">Create</button>
</div>
</form>
</div>
<div class="card-footer text-center">
<a asp-action="Index" class="btn btn-link">Back to List</a>
</div>
</div>
</div>
</div>
</div>
</section>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
......@@ -13,7 +13,7 @@
</button>
</div>
<div class="modal-body">
<div class="container py-5 h-100">
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
......
......@@ -12,73 +12,63 @@
<section id="toast-container" class="page-section" style="background-color: #f4f5f7;">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col col-10 col-lg-10 mb-4 mb-lg-0">
<div class="col-12 col-lg-10 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div class="row g-0">
<div class="col-10 gradient-custom text-center text-black"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<div class="icon-box">
<div class="icon " style="color: #5e54b3"><i class="fas fa-heartbeat fa-8x "></i></div>
<div class="col-12 gradient-custom text-center text-black p-4"
style="border-top-left-radius: .5rem; border-top-right-radius: .5rem;">
<div class=" icon-box mb-3">
<div class="icon" style="color: #5e54b3;">
<i class="fas fa-heartbeat fa-4x"></i>
</div>
</div>
<h5>@Model.StateName</h5>
<p>AT: @(Model.PrescriptionTime )</p>
<a asp-action="Index">
<i class="far fa-backward">
<h3>@Model.StateName</h3>
<p>AT: @(Model.PrescriptionTime.ToString("dd MMM yyyy HH:mm"))</p>
<button class="m-1 btn btn-warning btn-edit" data-id="@Model.Id">Edit</button>
<button class="m-1 btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
</i>
Go Back
</a>
</div>
<div class="col-10">
<div class="col-12">
<div class="card-body p-4">
<h6> Information:</h6>
<h5>Information:</h5>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Description</h6>
<p class="text">@Model.StateDescription</p>
<h6 class="">Description</h6>
<p class="text-muted">@Model.StateDescription</p>
</div>
<div class="col-4 mb-3">
<h6>Medicines Count:@Model.Medicines.Count()</h6>
<button class="btn btn-warning btn-edit" data-id="@Model.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@Model.Id">Delete</button>
<h6>Medicines Count: @Model.Medicines.Count()</h6>
</div>
</div>
<h6>Medicines : </h6>
<h5>Medicines:</h5>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<table id="Ingredients_" class="table table-bordered">
<thead>
<table id="Ingredients_" class="table table-bordered table-hover">
<thead class="thead-light">
<tr>
<td>No.</td>
<td>Name</td>
<td>Description</td>
<td>Price</td>
<td>dosage</td>
<td>Manfacture Name</td>
<td>Manage</td>
<th>#</th>
<th>Name</th>
<th>Description</th>
<th>Price</th>
<th>Dosage</th>
<th>Manufacture Name</th>
<th>Manage</th>
</tr>
</thead>
<tbody id="cc">
@foreach (var ing in Model.Medicines)
{
<tr class=" mb-3">
<tr>
<td>@(a+=1)</td>
<td>@ing.TradeName</td>
<td>@ing.Description</td>
<td>@ing.Price</td>
<td>@ing.Price.ToString("C")</td>
<td>@ing.Dosage</td>
<td>@ing.ManufactureName</td>
<td>
<button class="btn btn-danger" onclick='DeleteConfirm("Delete Confirm", "Are you sure you want to delete @ing.TradeName From this medical Case" , "ReomveMedicine" ,@ing.Id)'>Delete</button>
<button class="btn btn-primary" onclick="DetailMedicine( @ing.Id)">Details</button>
<button class="btn btn-danger btn-sm" ondblclick='DeleteConfirm("Delete Confirm", "Are you sure you want to delete @ing.TradeName from this medical case?", "RemoveMedicine", @ing.Id)'>Delete</button>
<button class="btn btn-info btn-sm" onclick="DetailMedicine(@ing.Id)">Details</button>
</td>
</tr>
}
......@@ -86,17 +76,16 @@
</table>
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>Go To list </h6>
<a asp-action="Index">GO Back </a>
<div class="col-12 mb-3">
<h6>Go To List</h6>
<a asp-action="Index" class="btn btn-secondary">Go Back</a>
</div>
</div>
<hr />
<div class="row pt-1">
<button onclick="fetchMedicines()" class="btn btn-primary">Get All Medicines </button>
<div class="col-12">
<button onclick="fetchMedicines()" class="btn btn-primary">Get Medicines</button>
</div>
</div>
</div>
</div>
......@@ -108,15 +97,12 @@
</section>
<section style="background-color: #f4f5f7;">
<div class="container h-100">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col">
<div class="row g-0">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-lg-10 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div id="medicines-table">
</div>
<div id="medicines-table">
</div>
</div>
</div>
......
......@@ -14,46 +14,42 @@
</button>
</div>
<div class="modal-body">
<div class="container py-5 h-100">
<div class="container h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group">
<div class="col-5">
<label asp-for="StateName" class="control-label"></label>
<div class="col p-2">
<div class="card mb-3 shadow-sm" style="border-radius: .5rem;">
<div class="card-body">
<form asp-action="Edit" asp-controller="MedicalState">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group mb-3">
<label asp-for="StateName" class="form-label">State Name</label>
<input asp-for="StateName" class="form-control" />
<span asp-validation-for="StateName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="PrescriptionTime" class="control-label"></label>
<div class="form-group mb-3">
<label asp-for="PrescriptionTime" class="form-label">Prescription Time</label>
<input asp-for="PrescriptionTime" class="form-control" />
<span asp-validation-for="PrescriptionTime" class="text-danger"></span>
</div>
</div>
<div class="form-group">
<label asp-for="StateDescription" class="control-label"></label>
<textarea asp-for="StateDescription" class="form-control">
</textarea>
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<div>
</div> <input type="hidden" asp-for="Id" />
<div class="form-group">
<input hidden value="@ViewBag.id" name="pId" />
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<input type="submit" value="Save" class="btn btn-primary" />
</div>
<input hidden value="@Model.PatientId" asp-for="@Model.PatientId" />
</form>
<div class="form-group mb-3">
<label asp-for="StateDescription" class="form-label">State Description</label>
<textarea asp-for="StateDescription" class="form-control" rows="4"></textarea>
<span asp-validation-for="StateDescription" class="text-danger"></span>
</div>
<input type="hidden" asp-for="Id" />
<input type="hidden" asp-for="PatientId" />
<div class="form-group text-center">
<input type="submit" value="Save" class="btn btn-primary me-2" />
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
@section Scripts {
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
}
......@@ -5,15 +5,29 @@
ViewData["Controller"] = "MedicalState";
}
<section class="page-section">
<h3>Create New <a asp-action="Create" asp-controller="MedicalState">Create</a></h3>
<div class="container mt-5">
<div class="row mb-4">
<div class="col text-center">
<h3>Create New <a asp-action="Create" asp-controller="MedicalState" class="btn btn-success ml-2">Create</a></h3>
</div>
</div>
</div>
@if (Model.Count() == 0)
{
<h2 class="text-center">You dont have any MedicalState</h2>
<img src="~/img/portfolio/noData.jpg" class="figure-img" />
<div class="row justify-content-center">
<div class="col-md-8 text-center">
<h2 class="text-danger">You don't have any Medical State</h2>
<img src="~/img/portfolio/noData.jpg" class="figure-img img-fluid rounded mx-auto d-block" alt="No Data" style="max-width: 300px; margin-top: 20px;" />
<p class="lead text-muted mt-3">It looks like you haven't added any medical states yet. Start adding some to see them here!</p>
</div>
</div>
}
else
@foreach (var item in Model)
{
<div class="container py-5 h-100">
......@@ -30,9 +44,9 @@
</div>
<h5>@item.StateName</h5>
<p>Prescriped At : @item.PrescriptionTime</p>
<a asp-action="Edit" asp-route-id="@item.Id">
<i class="far fa-edit mb-5"></i>
</a>
<button class="btn btn-warning btn-edit" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@item.Id">Delete</button>
<a asp-action="Index">
......@@ -57,7 +71,7 @@
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to Home</a>
<a href="~/">Back to Home</a>
</div>
<div class="col-6 mb-3">
......@@ -76,5 +90,7 @@
</div>
</div>
}
</section>
\ No newline at end of file
</section>
......@@ -3,79 +3,86 @@
@{
ViewData["Title"] = "Create";
Layout = "_AdminLayout";
}
<h1>Create</h1>
<div class="container py-5">
<div class="row justify-content-center">
<div class="col-md-8">
<div class="card shadow-sm">
<div class="card-body">
<h1 class="card-title mb-4">Create New Medicine</h1>
<h4>Project</h4>
<hr />
<div class="row">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group row">
<div class="col-5">
<label asp-for="TradeName" class="control-label"></label>
<input asp-for="TradeName" class="form-control" />
<span asp-validation-for="TradeName" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="ScintificName" class="control-label"></label>
<input asp-for="ScintificName" class="form-control" />
<span asp-validation-for="ScintificName" class="text-danger"></span>
</div>
</div>
<div class="form-group row">
<div class="col-5">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="col-5">
<label asp-for="SideEffect" class="control-label"></label>
<input asp-for="SideEffect" class="form-control" />
<span asp-validation-for="SideEffect" class="text-danger"></span>
</div>
</div>
<div class="form-group row">
<label asp-for="Dosage" class="control-label"></label>
<input asp-for="Dosage" class="form-control" />
<span asp-validation-for="Dosage" class="text-danger"></span>
</div>
<div class="form-group">
<div class="col-5">
<label for="Category" class="control-label">Category</label>
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
<form asp-action="Create" method="post" enctype="multipart/form-data">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
</div>
<div class="col-5">
<label asp-for="ManufactureName" class="control-label"></label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
<div class="form-group row mb-3">
<div class="col-md-6">
<label asp-for="TradeName" class="control-label">Trade Name</label>
<input asp-for="TradeName" class="form-control" />
<span asp-validation-for="TradeName" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="ScintificName" class="control-label">Scientific Name</label>
<input asp-for="ScintificName" class="form-control" />
<span asp-validation-for="ScintificName" class="text-danger"></span>
</div>
</div>
</div>
<div class="form-group mb-3">
<label asp-for="Description" class="control-label">Description</label>
<textarea asp-for="Description" rows="4" class="form-control"></textarea>
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="form-group row mb-3">
<div class="col-md-6">
<label asp-for="SideEffect" class="control-label">Side Effects</label>
<input asp-for="SideEffect" class="form-control" />
<span asp-validation-for="SideEffect" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="Dosage" class="control-label">Dosage</label>
<input asp-for="Dosage" class="form-control" />
<span asp-validation-for="Dosage" class="text-danger"></span>
</div>
</div>
<div class="form-group row mb-3">
<div class="col-md-6">
<label asp-for="Category.Name" class="control-label">Category</label>
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="ManufactureName" class="control-label">Manufacturer</label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
</div>
</div>
<div class="form-group mb-3">
<label asp-for="Image" class="control-label">Image URL</label>
<input asp-for="Image" class="form-control" />
<span asp-validation-for="Image" class="text-danger"></span>
</div>
<div class="form-group mb-4">
<label asp-for="MedicineType.TypeName" class="control-label">Medicine Type</label>
<input asp-for="MedicineType.TypeName" class="form-control" />
<span asp-validation-for="MedicineType.TypeName" class="text-danger"></span>
</div>
<div class="form-group">
<button type="submit" class="btn btn-primary">Create</button>
<a asp-action="Index" class="btn btn-secondary ms-2">Back to List</a>
</div>
</form>
</div>
</div>
<div class="form-group">
<label asp-for="Image" class="control-label"></label>
<input asp-for="Image" class="form-control" />
<span asp-validation-for="Image" class="text-danger"></span>
</div>
<div class="form-group">
<label asp-for="MedicineType.TypeName" class="control-label"></label>
<input asp-for="MedicineType.TypeName" class="form-control" />
<span asp-validation-for="MedicineType.TypeName" class="text-danger"></span>
</div>
<div class="form-group">
<input type="submit" value="Create" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div>
<a asp-action="Index">Back to List</a>
</div>
@section Scripts {
......
......@@ -15,50 +15,40 @@
</div>
<div class="modal-body">
<h3>Are you sure you want to delete this?</h3>
<hr />
<dl class="row">
<dt class="col">
@Html.DisplayNameFor(model => model.TradeName)
</dt>
<dd class="col">
@Html.DisplayFor(model => model.TradeName)
</dd>
</dl>
<dl>
<dt class="col">
@Html.DisplayNameFor(model => model.Description)
</dt>
<dd class="col">
@Html.DisplayFor(model => model.Description)
</dd>
</dl>
<dl>
<dt class="col">
@Html.DisplayNameFor(model => model.Category.Name)
</dt>
<dd class="col">
@Html.DisplayFor(model => model.Category.Name)
</dd>
</dl>
<dl>
<dt class="col">
@Html.DisplayNameFor(model => model.Price)
</dt>
<dd class="col">
@Html.DisplayFor(model => model.Price)
</dd>
</dl>
<hr />
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<input type="submit" value="Delete" class="btn btn-danger" />
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
</form>
</div>
</div>
\ No newline at end of file
<div class="container">
<div class="row justify-content-center">
<div class="col">
<div class="card shadow-sm">
<div class="card-body">
<h3>Are you sure you want to delete this?</h3>
<div class="mt-4">
<h4>Medicine Details</h4>
<hr />
<dl class="row">
<dt class="col-sm-4">Trade Name:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.TradeName)</dd>
<dt class="col-sm-4">Description:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.Description)</dd>
<dt class="col-sm-4">Category:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.Category.Name)</dd>
<dt class="col-sm-4">Price:</dt>
<dd class="col-sm-8">@Html.DisplayFor(model => model.Price)</dd>
</dl>
<form asp-action="Delete">
<input type="hidden" asp-for="Id" />
<button type="submit" class="m-1 btn btn-danger">Delete</button>
<button type="button" class="m-1 btn btn-secondary" data-dismiss="modal">Close</button>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
\ No newline at end of file
......@@ -93,13 +93,17 @@
</div>
</section>
<section class="page-section mb-4 mt-4">
<div class="container h-100">
<div class="container py-5 h-100">
<div class="row d-flex justify-content-center align-items-center h-100">
<div class="col-12 col-lg-10 mb-4 mb-lg-0">
<div class="card mb-3" style="border-radius: .5rem;">
<div id="t">
<div id="t">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div id="mod">
......
......@@ -12,90 +12,93 @@
</button>
</div>
<div class="modal-body">
<div class="row">
<div class="col-md-10 offset-1">
<form asp-action="Edit" class="form-group ">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="form-group row">
<div class="col">
<label asp-for="TradeName" class="control-label "></label>
<input asp-for="TradeName" class="form-control" />
<span asp-validation-for="TradeName" class="text-danger"></span>
</div>
<div class="col">
<label asp-for="Description" class="control-label"></label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="container ">
<div class="row justify-content-center">
<div class="">
<div class="card shadow-sm">
<div class="card-body">
<form asp-action="Edit" class="row g-3">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
</div>
<div class="form-group row">
<div class="col ">
<label asp-for="Dosage" class="control-label"></label>
<input asp-for="Dosage" class="form-control" />
<span asp-validation-for="Dosage" class="text-danger"></span>
<div class="col-md-6">
<label asp-for="TradeName" class="form-label">Trade Name</label>
<input asp-for="TradeName" class="form-control" />
<span asp-validation-for="TradeName" class="text-danger"></span>
</div>
</div>
<div class="col">
<label asp-for="Price" class="control-label"></label>
<input asp-for="Price" class="form-control" />
<span asp-validation-for="Price" class="text-danger"></span>
</div>
</div>
<div class="form-group row">
<div class="col ">
<label for="Category.Name" class="control-label">Category</label>
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
<div class="col-md-6">
<label asp-for="Description" class="form-label">Description</label>
<input asp-for="Description" class="form-control" />
<span asp-validation-for="Description" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="MedicineType" class="form-label">Description</label>
<input asp-for="MedicineType" class="form-control" />
<span asp-validation-for="MedicineType" class="text-danger"></span>
</div>
</div>
<div class="col">
<label asp-for="ManufactureName" class="control-label"></label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
</div>
</div>
<div class="form-group row">
<div class="col ">
<label asp-for="ScintificName" class="control-label"></label>
<input asp-for="ScintificName" class="form-control" />
<span asp-validation-for="ScintificName" class="text-danger"></span>
</div>
<div class="col">
<label asp-for="MedicineType.TypeName" class="control-label"></label>
<input asp-for="MedicineType.TypeName" class="form-control" />
<span asp-validation-for="MedicineType.TypeName" class="text-danger"></span>
</div>
</div>
<div class="form-group row">
<div class="col ">
<label asp-for="SideEffect" class="control-label"></label>
<input asp-for="SideEffect" class="form-control" />
<span asp-validation-for="SideEffect" class="text-danger"></span>
<div class="col-md-6">
<label asp-for="Dosage" class="form-label">Dosage</label>
<input asp-for="Dosage" class="form-control" />
<span asp-validation-for="Dosage" class="text-danger"></span>
</div>
</div>
</div>
<div class="form-group row">
<label asp-for="Image" class="control-label"></label>
<input asp-for="Image" class="form-control" />
<span asp-validation-for="Image" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="Price" class="form-label">Price</label>
<input asp-for="Price" class="form-control" />
<span asp-validation-for="Price" class="text-danger"></span>
</div>
<input type="hidden" asp-for="Id" />
<div class="form-group">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
<div class="col-md-6">
<label asp-for="Category.Name" class="form-label">Category</label>
<input asp-for="Category.Name" class="form-control" />
<span asp-validation-for="Category.Name" class="text-danger"></span>
</div>
<input type="submit" value="Save" class="btn btn-primary" />
</div>
</form>
</div>
</div>
<div class="col-md-6">
<label asp-for="ManufactureName" class="form-label">Manufacturer</label>
<input asp-for="ManufactureName" class="form-control" />
<span asp-validation-for="ManufactureName" class="text-danger"></span>
</div>
<div class="col-md-6">
<label asp-for="ScintificName" class="form-label">Scientific Name</label>
<input asp-for="ScintificName" class="form-control" />
<span asp-validation-for="ScintificName" class="text-danger"></span>
</div>
</div>
<div class="col-md-6">
<label asp-for="MedicineType.TypeName" class="form-label">Medicine Type</label>
<input asp-for="MedicineType.TypeName" class="form-control" />
<span asp-validation-for="MedicineType.TypeName" class="text-danger"></span>
</div>
<div class="col-12">
<label asp-for="SideEffect" class="form-label">Side Effects</label>
<textarea asp-for="SideEffect" class="form-control" rows="3"></textarea>
<span asp-validation-for="SideEffect" class="text-danger"></span>
</div>
<div class="col-12">
<label asp-for="Image" class="form-label">Image URL</label>
<input asp-for="Image" class="form-control" />
<span asp-validation-for="Image" class="text-danger"></span>
</div>
<div class="col-12 mt-4">
<input type="hidden" asp-for="Id" />
<button type="submit" class="btn btn-primary">Save</button>
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
@section Scripts {
@{await Html.RenderPartialAsync("_ValidationScriptsPartial");}
......
......@@ -5,110 +5,79 @@
ViewData["Controller"] = "Medicine";
Layout = "_AdminLayout";
}
<div class="row">
<div class="col-xl-3 col-md-6">
<div class="card bg-primary text-white mb-4">
<div class="card-body">Medicine Counts </div>
<div class="card-footer d-flex align-items-center justify-content-between">
<a class="small text-white stretched-link" href="#"> @Model.Count()</a>
<div class="small text-white"><i class="fas fa-angle-right"></i></div>
<!-- Include Animate.css from CDN -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css">
<div class="container py-5">
<div class="row mb-4">
<div class="col-xl-3 col-md-6">
<div class="card bg-primary text-white shadow animate__animated animate__fadeInDown">
<div class="card-body">
<div class="d-flex justify-content-between align-items-center">
<div class="text-white">Medicine Count</div>
<div class="h1 font-weight-bold">@Model.Count()</div>
</div>
</div>
<a href="#" class="card-footer text-white d-flex align-items-center justify-content-between small stretched-link">
View Details
<div class="text-white"><i class="fas fa-angle-right"></i></div>
</a>
</div>
</div>
</div>
</div>
<div>
<i class=""></i>
Medicines Details
<p>
<a asp-action="Create" class="btn btn-primary ">Create New</a>
</p>
<table id="datatablesSimple" class="table">
<thead>
<tr>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Id)
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.First().TradeName)
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Description)
</th>
<th scope="col">
Category
</th>
<th scope="col">
Type
</th>
<th scope="col">
@Html.DisplayNameFor(model => model.First().Price)
</th>
<th scope="col">
Manage
</th>
<th scope="col">
Patients Count
</th>
</tr>
</thead>
<tfoot>
<tr>
<th scope="row">ID</th>
<th>Medicine name</th>
<th>Description</th>
<th>Category</th>
<th>Type</th>
<th>Price</th>
<th>Manage</th>
</tr>
</tfoot>
<tbody>
@foreach (var item in Model)
{
<tr>
<td scope="row">
@Html.DisplayFor(modelItem => item.Id)
</td>
<td>
@Html.DisplayFor(modelItem => item.TradeName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Description)
</td>
<td>
@Html.DisplayFor(modelItem => item.Category.Name)
</td>
<td>
@Html.DisplayFor(modelItem => item.MedicineType.TypeName)
</td>
<td>
@Html.DisplayFor(modelItem => item.Price)
</td>
<td>
<button class="btn btn-warning btn-edit" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete" data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-controller="Medicine" asp-route-id="@item.Id"><i class="far fa-address-card"></i></a>
</td>
</tr>
}
</tbody>
</table>
</div>
<div class="row">
<div class="col">
<h2 class="mb-4 animate__animated animate__fadeIn">Medicines Details</h2>
<p class="animate__animated animate__fadeIn">
<a asp-action="Create" class="btn btn-primary animate__animated animate__zoomIn">Create New</a>
</p>
<div class="table-responsive">
<table class="table table-striped table-bordered" id="datatablesSimple">
<thead class="bg-primary text-white">
<tr>
<th>Medicine Name</th>
<th>Description</th>
<th>Category</th>
<th>Type</th>
<th>Price</th>
<th>Manage</th>
</tr>
</thead>
<tbody>
@foreach (var item in Model)
{
<tr class="animate__animated animate__fadeInUp">
<td>@Html.DisplayFor(modelItem => item.TradeName)</td>
<td>@Html.DisplayFor(modelItem => item.Description)</td>
<td>@Html.DisplayFor(modelItem => item.Category.Name)</td>
<td>@Html.DisplayFor(modelItem => item.MedicineType.TypeName)</td>
<td>@Html.DisplayFor(modelItem => item.Price)</td>
<td>
<div class="d-flex">
<button class="btn btn-warning btn-edit m-1" data-id="@item.Id">Edit</button>
<button class="btn btn-danger btn-delete m-1 " data-id="@item.Id">Delete</button>
<a asp-action="Details" asp-controller="Medicine" asp-route-id="@item.Id" class="m-1 btn btn-danger" title="Details">Details</a>
</div>
</td>
</tr>
}
</tbody>
<tfoot>
<tr>
<th>Medicine Name</th>
<th>Description</th>
<th>Category</th>
<th>Type</th>
<th>Price</th>
<th>Manage</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</div>
\ No newline at end of file
@model IEnumerable<PatientViewModel>;
@{
ViewData["Title"] = "Patient ";
ViewData["Controller"] = "Patients";
}
<section class="page-section">
<div class="container mt-5">
<div class="row mb-4">
<div class="col text-center">
<h3>Create New <a asp-action="Create" asp-controller="Patients" class="btn btn-success ml-2">Create</a></h3>
</div>
</div>
</div>
@if (Model.Count() == 0)
{
<div class="row justify-content-center">
<div class="col-md-8 text-center">
<h2 class="text-danger">You don't have any Patient</h2>
<img src="~/img/portfolio/noData.jpg" class="figure-img img-fluid rounded mx-auto d-block" alt="No Data" style="max-width: 300px; margin-top: 20px;" />
<p class="lead text-muted mt-3">It looks like you haven't added any patient yet. Start adding some to see them here!</p>
</div>
</div>
}
else
@foreach (var item in Model)
{<div class="card col-6 offset-3 mb-3" style="border-radius: .5rem;">
<div class="row g-0">
<div class="col-md-4 gradient-custom text-center text-black"
style="border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;">
<img src="~/img/@item.User.Avatar"
alt="Avatar" class="img-fluid my-5" style="width: 80px;" />
<h5>@item.User.FirstName @item.User.LastName</h5>
<p> @item.User.Email</p>
</div>
<div class="col-md-8">
<div class="card-body p-4">
<h6>Information:</h6>
<hr class="mt-0 mb-4">
<div class="row pt-1">
<div class="col-6 mb-3">
<h6>BIO</h6>
<p class="text-muted">@item.BIO</p>
</div>
<div class="col-6 mb-3">
<h6>First Access</h6>
<p class="text-muted">@item.User.CreationTime</p>
</div>
<div class="col-6 mb-3">
<button class="btn btn-danger btn-delete" data-id="@item.Id">Delete</button>
</div>
</div>
<div class="row pt-1">
<div class="col-6 mb-3">
<a asp-action="Index">Back to List</a>
</div>
</div>
</div>
</div>
</div>
</div>
}
</section>
\ No newline at end of file
......@@ -112,19 +112,6 @@
</nav>
</div>
<!-- Medical State Managment -->
<a class="nav-link collapsed" asp-action="Index" asp-controller="Medicine" data-bs-toggle="collapse" data-bs-target="#MPages" aria-expanded="false" aria-controls="collapsePages">
<div class="sb-nav-link-icon"><i class="fas fa-book-open"></i></div>
Medical States
<div class="sb-sidenav-collapse-arrow"><i class="fas fa-angle-down"></i></div>
</a>
<div class="collapse" id="MPages" aria-labelledby="headingOne" data-bs-parent="#sidenavAccordion">
<nav class="sb-sidenav-menu-nested nav">
<a class="nav-link">Add Medical State </a>
<a class="nav-link">ALL Medical State </a>
</nav>
</div>
<div class="sb-sidenav-footer">
<div class="small">Logged in as:@UserManager.GetUserName(User)</div>
......@@ -209,7 +196,7 @@
<script src="~/js/jquery.easing.min.js"></script>
<!-- Custom scripts for this template -->
<script src="~/js/freelancer.min.js"></script>
@*<script src="~/js/freelancerAd.min.js"></script>*@
<!-- Custom scripts for this template -->
</body>
</html>
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "575040230b3a29de5cc228a71b12141f66286695"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a148f8bd679982672cceae16fe43b3dfe05de0ef"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Ingredient_Delete), @"mvc.1.0.view", @"/Views/Ingredient/Delete.cshtml")]
......@@ -46,12 +46,13 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"575040230b3a29de5cc228a71b12141f66286695", @"/Views/Ingredient/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a148f8bd679982672cceae16fe43b3dfe05de0ef", @"/Views/Ingredient/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Ingredient_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<IngredientViewModel>
{
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_0 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("type", "hidden", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_1 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("asp-action", "Delete", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
private static readonly global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute __tagHelperAttribute_2 = new global::Microsoft.AspNetCore.Razor.TagHelpers.TagHelperAttribute("method", "post", global::Microsoft.AspNetCore.Razor.TagHelpers.HtmlAttributeValueStyle.DoubleQuotes);
#line hidden
#pragma warning disable 0649
private global::Microsoft.AspNetCore.Razor.Runtime.TagHelpers.TagHelperExecutionContext __tagHelperExecutionContext;
......@@ -98,48 +99,39 @@ using System;
</div>
<div class=""modal-body container-fluid"">
<h3>Are you sure you want to delete this?</h3>
<div>
<hr />
<dl class=""row"">
<dt class=""col-6"">
");
#nullable restore
#line 23 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Name));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col-6\">\r\n ");
#nullable restore
#line 26 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayFor(model => model.Name));
<div class=""container "">
<div class=""row justify-content-center"">
<div class=""col"">
<div class=""card shadow-lg p-3 mb-5 bg-white rounded"">
<div class=""card-body"">
<h3 class=""mb-4"">Are you sure you want to delete this ingredient?</h3>
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n <dt class=\"col-6\">\r\n ");
<div class=""row"">
<div class=""col"">
<h4>Ingredient Details</h4>
<hr />
<dl class=""row"">
<dt class=""col-sm-4"">Name:</dt>
<dd class=""col-sm-8"">");
#nullable restore
#line 29 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Description));
#line 30 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayFor(model => model.Name));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col-6\">\r\n ");
WriteLiteral("</dd>\r\n\r\n <dt class=\"col-sm-4\">Description:</dt>\r\n <dd class=\"col-sm-8\">");
#nullable restore
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description));
#line 33 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n\r\n </dl>\r\n <hr />\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "575040230b3a29de5cc228a71b12141f662866956543", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "575040230b3a29de5cc228a71b12141f662866956813", async() => {
WriteLiteral("</dd>\r\n </dl>\r\n </div>\r\n </div>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a148f8bd679982672cceae16fe43b3dfe05de0ef6966", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "a148f8bd679982672cceae16fe43b3dfe05de0ef7252", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -147,7 +139,7 @@ using System;
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#nullable restore
#line 38 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
#line 39 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Id);
#line default
......@@ -161,7 +153,12 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" /> |\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>\r\n ");
WriteLiteral(@"
<div class=""text-center mt-5"">
<input type=""submit"" value=""Delete"" class=""btn btn-danger"" />
<button type=""button"" class=""btn btn-secondary ms-3"" data-dismiss=""modal"">Close</button>
</div>
");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
......@@ -170,6 +167,8 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
__tagHelperExecutionContext.Add(__Microsoft_AspNetCore_Mvc_TagHelpers_RenderAtEndOfFormTagHelper);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Action = (string)__tagHelperAttribute_1.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_1);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper.Method = (string)__tagHelperAttribute_2.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_2);
await __tagHelperRunner.RunAsync(__tagHelperExecutionContext);
if (!__tagHelperExecutionContext.Output.IsContentModified)
{
......@@ -177,7 +176,19 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n </div>\r\n </div>");
WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n");
DefineSection("Scripts", async() => {
WriteLiteral("\r\n");
#nullable restore
#line 52 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Ingredient\Delete.cshtml"
await Html.RenderPartialAsync("_ValidationScriptsPartial");
#line default
#line hidden
#nullable disable
WriteLiteral(" ");
}
);
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "d61b86a9a61d07cd4b85cf05f0de6b39ad46777e"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "82c7d3cc9d3bc5f600f929440c3c82d2ab78926e"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Delete), @"mvc.1.0.view", @"/Views/Medicine/Delete.cshtml")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"d61b86a9a61d07cd4b85cf05f0de6b39ad46777e", @"/Views/Medicine/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"82c7d3cc9d3bc5f600f929440c3c82d2ab78926e", @"/Views/Medicine/Delete.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Delete : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MedicineViewModel>
{
......@@ -99,80 +99,55 @@ using System;
</div>
<div class=""modal-body"">
<h3>Are you sure you want to delete this?</h3>
<hr />
<dl class=""row"">
<dt class=""col"">
");
#nullable restore
#line 24 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.TradeName));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col\">\r\n ");
#nullable restore
#line 27 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.TradeName));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n </dl>\r\n <dl>\r\n <dt class=\"col\">\r\n ");
<div class=""container"">
<div class=""row justify-content-center"">
<div class=""col"">
<div class=""card shadow-sm"">
<div class=""card-body"">
<h3>Are you sure you want to delete this?</h3>
<div class=""mt-4"">
<h4>Medicine Details</h4>
<hr />
<dl class=""row"">
<dt class=""col-sm-4"">Trade Name:</dt>
<dd class=""col-sm-8"">");
#nullable restore
#line 32 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Description));
#line 31 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.TradeName));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col\">\r\n ");
WriteLiteral("</dd>\r\n\r\n <dt class=\"col-sm-4\">Description:</dt>\r\n <dd class=\"col-sm-8\">");
#nullable restore
#line 35 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description));
#line 34 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Description));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n\r\n </dl>\r\n <dl>\r\n <dt class=\"col\">\r\n ");
WriteLiteral("</dd>\r\n\r\n <dt class=\"col-sm-4\">Category:</dt>\r\n <dd class=\"col-sm-8\">");
#nullable restore
#line 41 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Category.Name));
#line 37 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Category.Name));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col\">\r\n ");
WriteLiteral("</dd>\r\n\r\n <dt class=\"col-sm-4\">Price:</dt>\r\n <dd class=\"col-sm-8\">");
#nullable restore
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Category.Name));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n\r\n </dl>\r\n <dl>\r\n <dt class=\"col\">\r\n ");
#nullable restore
#line 50 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayNameFor(model => model.Price));
#line 40 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Price));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dt>\r\n <dd class=\"col\">\r\n ");
#nullable restore
#line 53 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
Write(Html.DisplayFor(model => model.Price));
#line default
#line hidden
#nullable disable
WriteLiteral("\r\n </dd>\r\n </dl>\r\n <hr />\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "d61b86a9a61d07cd4b85cf05f0de6b39ad46777e7727", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "d61b86a9a61d07cd4b85cf05f0de6b39ad46777e7993", async() => {
WriteLiteral("</dd>\r\n </dl>\r\n\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("form", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "82c7d3cc9d3bc5f600f929440c3c82d2ab78926e7314", async() => {
WriteLiteral("\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("input", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "82c7d3cc9d3bc5f600f929440c3c82d2ab78926e7604", async() => {
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.InputTagHelper>();
......@@ -180,7 +155,7 @@ using System;
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.InputTypeName = (string)__tagHelperAttribute_0.Value;
__tagHelperExecutionContext.AddTagHelperAttribute(__tagHelperAttribute_0);
#nullable restore
#line 58 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
#line 44 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Delete.cshtml"
__Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvider.CreateModelExpression(ViewData, __model => __model.Id);
#line default
......@@ -194,7 +169,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n <input type=\"submit\" value=\"Delete\" class=\"btn btn-danger\" />\r\n <button type=\"button\" class=\"btn btn-secondary\" data-dismiss=\"modal\">Close</button>\r\n |\r\n ");
WriteLiteral("\r\n <button type=\"submit\" class=\"m-1 btn btn-danger\">Delete</button>\r\n <button type=\"button\" class=\"m-1 btn btn-secondary\" data-dismiss=\"modal\">Close</button>\r\n ");
}
);
__Microsoft_AspNetCore_Mvc_TagHelpers_FormTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.TagHelpers.FormTagHelper>();
......@@ -210,7 +185,7 @@ __Microsoft_AspNetCore_Mvc_TagHelpers_InputTagHelper.For = ModelExpressionProvid
}
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n</div>\r\n </div>");
WriteLiteral("\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>");
}
#pragma warning restore 1998
[global::Microsoft.AspNetCore.Mvc.Razor.Internal.RazorInjectAttribute]
......
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "a8ce7503991457b5b059c150ac5d0fd37d98fd27"
#pragma checksum "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "3adb1006546d7a2aac9737521701c9562d1419eb"
// <auto-generated/>
#pragma warning disable 1591
[assembly: global::Microsoft.AspNetCore.Razor.Hosting.RazorCompiledItemAttribute(typeof(AspNetCore.Views_Medicine_Details), @"mvc.1.0.view", @"/Views/Medicine/Details.cshtml")]
......@@ -46,7 +46,7 @@ using System;
#line default
#line hidden
#nullable disable
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"a8ce7503991457b5b059c150ac5d0fd37d98fd27", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"3adb1006546d7a2aac9737521701c9562d1419eb", @"/Views/Medicine/Details.cshtml")]
[global::Microsoft.AspNetCore.Razor.Hosting.RazorSourceChecksumAttribute(@"SHA1", @"4a2f5fee0d7223f937b9f0309fc3b9062263e26d", @"/Views/_ViewImports.cshtml")]
public class Views_Medicine_Details : global::Microsoft.AspNetCore.Mvc.Razor.RazorPage<MedicineViewModel>
{
......@@ -103,7 +103,7 @@ using System;
<div class=""col-md-4 gradient-custom text-center text-black""
style=""border-top-left-radius: .5rem; border-bottom-left-radius: .5rem;"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "a8ce7503991457b5b059c150ac5d0fd37d98fd276604", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("img", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.SelfClosing, "3adb1006546d7a2aac9737521701c9562d1419eb6604", async() => {
}
);
__Microsoft_AspNetCore_Mvc_Razor_TagHelpers_UrlResolutionTagHelper = CreateTagHelper<global::Microsoft.AspNetCore.Mvc.Razor.TagHelpers.UrlResolutionTagHelper>();
......@@ -304,7 +304,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
<div class=""row pt-1"">
<div class=""col-6 mb-3"">
");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a8ce7503991457b5b059c150ac5d0fd37d98fd2716637", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3adb1006546d7a2aac9737521701c9562d1419eb16637", async() => {
WriteLiteral("Back to List");
}
);
......@@ -320,7 +320,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
Write(__tagHelperExecutionContext.Output);
__tagHelperExecutionContext = __tagHelperScopeManager.End();
WriteLiteral("\r\n\r\n </div>\r\n <div class=\"col-6 mb-3\">\r\n ");
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "a8ce7503991457b5b059c150ac5d0fd37d98fd2717955", async() => {
__tagHelperExecutionContext = __tagHelperScopeManager.Begin("a", global::Microsoft.AspNetCore.Razor.TagHelpers.TagMode.StartTagAndEndTag, "3adb1006546d7a2aac9737521701c9562d1419eb17955", async() => {
WriteLiteral("Add Ingredients ");
}
);
......@@ -372,13 +372,17 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
</div>
</section>
<section class=""page-section mb-4 mt-4"">
<div class=""container h-100"">
<div class=""container py-5 h-100"">
<div class=""row d-flex justify-content-center align-items-center h-100"">
<div class=""col-12 col-lg-10 mb-4 mb-lg-0"">
<div class=""card mb-3"" style=""border-radius: .5rem;"">
<div id=""t"">
<div id=""t"">
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<div id=""mod"">
......@@ -407,7 +411,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
async function updateIngredients() {
let id =");
#nullable restore
#line 127 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 131 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -515,7 +519,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
const medicineModal = new bootstrap.Modal(document.getElementById('item");
WriteLiteral("\'));\r\n medicineModal.show();\r\n\r\n\r\n }\r\n async function addIngredientT(med) {\r\n let id =");
#nullable restore
#line 229 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 233 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -548,7 +552,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
");
WriteLiteral(" }\r\n }\r\n async function DetailMedicine(med) {\r\n let id =");
#nullable restore
#line 256 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 260 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......@@ -581,7 +585,7 @@ WriteAttributeValue("", 3782, ing.IngredientId, 3782, 17, false);
async function ReomveIngredient(med) {
let id =");
#nullable restore
#line 281 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
#line 285 "C:\Users\HASAN\Desktop\Medic\WebPresentation\Views\Medicine\Details.cshtml"
Write(Model.Id);
#line default
......
3f0c03b6aba93767c7166d536f7bd368adb0b875
8fcaaae3247433165a2658c13700d6de9f58257b
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment