Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pop-up creations #198

Merged
merged 41 commits into from
Oct 20, 2024
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
41 commits
Select commit Hold shift + click to select a range
988c630
add font awesome files
jamshidbek-choriyev Sep 26, 2024
b265429
I updated the license version of syncfusion
jamshidbek-choriyev Sep 26, 2024
a5356b9
some changes in the index
jamshidbek-choriyev Sep 26, 2024
f4c2c24
I updated the syncfusion key
jamshidbek-choriyev Sep 26, 2024
e5d2ac4
I changed OilMark's Create to Pop-up output
jamshidbek-choriyev Oct 1, 2024
dda93c3
changed and added the modal companet
jamshidbek-choriyev Oct 1, 2024
0f40f2c
I made a pop-up when creating
jamshidbek-choriyev Oct 1, 2024
92ddd27
I changed the RenderSection to sync
jamshidbek-choriyev Oct 7, 2024
3c141b2
I have added additions and changes
jamshidbek-choriyev Oct 7, 2024
b40bfcd
I made a pop-up to create a car
jamshidbek-choriyev Oct 7, 2024
ac728d5
I created a pop-up to create a Doctor Review
jamshidbek-choriyev Oct 7, 2024
f01075c
I created a popup to create Mechanic Acceptances
jamshidbek-choriyev Oct 7, 2024
6f94b35
I created a popup to create Mechanic Handover
jamshidbek-choriyev Oct 7, 2024
18d2fe0
I created a popup to create Operator Review
jamshidbek-choriyev Oct 7, 2024
2c644d4
Update Create.cshtml
jamshidbek-choriyev Oct 7, 2024
d58893a
Update Index.cshtml
jamshidbek-choriyev Oct 7, 2024
c18b7ba
Update CreateByButton.cshtml
jamshidbek-choriyev Oct 7, 2024
80eec22
Update Create.cshtml
jamshidbek-choriyev Oct 7, 2024
c23b4b9
Update Create.cshtml
jamshidbek-choriyev Oct 7, 2024
de931b2
Merge branch 'integration' into master
Ramadan1011 Oct 7, 2024
5624c7f
Update PersonalIndex.cshtml
jamshidbek-choriyev Oct 8, 2024
6134b6a
errors have been corrected
jamshidbek-choriyev Oct 8, 2024
639c40e
I created a new employee popup
jamshidbek-choriyev Oct 8, 2024
d9e7b37
errors have been corrected
jamshidbek-choriyev Oct 8, 2024
131ce02
changed
jamshidbek-choriyev Oct 8, 2024
87e3429
add and changed
jamshidbek-choriyev Oct 8, 2024
b86ffa2
errors have been corrected
jamshidbek-choriyev Oct 8, 2024
c6271e3
edit page, a pop-up appeared
jamshidbek-choriyev Oct 11, 2024
3162619
changed
jamshidbek-choriyev Oct 16, 2024
1792d4f
changed
jamshidbek-choriyev Oct 16, 2024
1f5941a
add form-select to classes
jamshidbek-choriyev Oct 16, 2024
a69081e
changed
jamshidbek-choriyev Oct 16, 2024
655f089
added form-select to classes
jamshidbek-choriyev Oct 16, 2024
74f2e6b
changed
jamshidbek-choriyev Oct 16, 2024
59268f2
changed
jamshidbek-choriyev Oct 16, 2024
af4a4f8
Update Edit.cshtml
jamshidbek-choriyev Oct 18, 2024
80a0998
Update Index.cshtml
jamshidbek-choriyev Oct 18, 2024
e588f46
Merge branch 'integration' into master
jamshidbek-choriyev Oct 18, 2024
c1c16f2
Merge branch 'integration' into master
jamshidbek-choriyev Oct 19, 2024
aeb380e
Update Edit.cshtml
jamshidbek-choriyev Oct 20, 2024
416b6f6
Update Index.cshtml
jamshidbek-choriyev Oct 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 23 additions & 2 deletions CheckDrive.Web/CheckDrive.Web/CheckDrive.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,33 @@
<Compile Include="Controllers\OperatorsController.cs" />
<Compile Include="Controllers\TechniciansController.cs" />
<None Include="wwwroot\css\LogOutButtun.css" />
<None Include="wwwroot\font-awesome\js\all.js" />
<None Include="wwwroot\font-awesome\js\all.min.js" />
<None Include="wwwroot\font-awesome\js\brands.js" />
<None Include="wwwroot\font-awesome\js\brands.min.js" />
<None Include="wwwroot\font-awesome\js\conflict-detection.js" />
<None Include="wwwroot\font-awesome\js\conflict-detection.min.js" />
<None Include="wwwroot\font-awesome\js\fontawesome.js" />
<None Include="wwwroot\font-awesome\js\fontawesome.min.js" />
<None Include="wwwroot\font-awesome\js\regular.js" />
<None Include="wwwroot\font-awesome\js\regular.min.js" />
<None Include="wwwroot\font-awesome\js\solid.js" />
<None Include="wwwroot\font-awesome\js\solid.min.js" />
<None Include="wwwroot\font-awesome\js\v4-shims.js" />
<None Include="wwwroot\font-awesome\js\v4-shims.min.js" />
<None Include="wwwroot\font-awesome\sprites\brands.svg" />
<None Include="wwwroot\font-awesome\sprites\regular.svg" />
<None Include="wwwroot\font-awesome\sprites\solid.svg" />
<None Include="wwwroot\font-awesome\webfonts\fa-brands-400.woff2" />
<None Include="wwwroot\font-awesome\webfonts\fa-regular-400.woff2" />
<None Include="wwwroot\font-awesome\webfonts\fa-solid-900.woff2" />
<None Include="wwwroot\font-awesome\webfonts\fa-v4compatibility.woff2" />
<PackageReference Include="CheckDrive.ApiContracts" Version="1.4.9" />
<PackageReference Include="CheckDrive.DTOs" Version="1.0.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore" Version="8.0.4" />
<PackageReference Include="Microsoft.VisualStudio.Web.CodeGeneration.Design" Version="8.0.3" />
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="25.1.42" />
<PackageReference Include="Syncfusion.Licensing" Version="25.2.3" />
<PackageReference Include="Syncfusion.EJ2.AspNet.Core" Version="27.1.50" />
<PackageReference Include="Syncfusion.Licensing" Version="27.1.50" />
<PackageReference Include="System.IdentityModel.Tokens.Jwt" Version="7.6.0" />
<PackageReference Include="System.Security.Claims" Version="4.3.0" />

Expand Down
2 changes: 1 addition & 1 deletion CheckDrive.Web/CheckDrive.Web/Constants/Configurations.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
public static class Configurations
{
public const string JwtToken = "JwtToken";
public const string SynfusionLicenseKey = "Mgo+DSMBMAY9C3t2UFhhQlJBfV5AQmBIYVp/TGpJfl96cVxMZVVBJAtUQF1hTX5UdERiXX1ZcHNXRGFa";
public const string SynfusionLicenseKey = "Mgo+DSMBPh8sVXJzS0d+WFlPd11dXmJWd1p/THNYflR1fV9DaUwxOX1dQl9nSXdRc0VkW3pfdX1WQ2E=";
}
}
26 changes: 13 additions & 13 deletions CheckDrive.Web/CheckDrive.Web/Views/Accounts/Index.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,17 @@
<div class="row">
<div class="d-flex justify-content-between">
<!-- Filter -->
<div class="col-md-2 mb-4">
<div class="input-group">
<select class="form-control" name="roleId">
@foreach (var role in ViewBag.Roles)
{
<option value="@role.Id" selected="@(role.Id == ViewBag.RoleId)">
@role.Name
</option>
}
</select>
</div>
<div class="col-md-2 mb-4" >
<div class="input-group" style="height:38px">
<ejs-dropdownlist
id="roleDropdown"
name="roleId"
dataSource="@(ViewBag.Roles)"
fields="@(new Syncfusion.EJ2.DropDowns.DropDownListFieldSettings { Text = "Name", Value = "Id" })"
value="@ViewBag.RoleId"
placeholder="Ishchini tanlang" >
</ejs-dropdownlist>
</div>
</div>
<!-- Search -->
<div class="col-md-4 ms-lg-3 mb-4">
Expand All @@ -35,9 +35,9 @@
</div>
<!-- Create -->
<div class="d-flex col-md mb-4 justify-content-end">
<a class="btn btn-success ml" asp-action="create">
<button class="btn btn-success" asp-action="create">
<i class="fa fa-plus"></i> Yaratish
</a>
</button>
</div>
</div>
</div>
Expand Down
170 changes: 74 additions & 96 deletions CheckDrive.Web/CheckDrive.Web/Views/Cars/Create.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -2,105 +2,83 @@

@{
ViewData["Title"] = "Create";
Layout = "~/Views/Shared/_Layout.cshtml";
Layout = null;
}

<h4>Yangi moshina yaratish oynasi</h4>
<hr />
<div class="row">
<div class="col-md-6">
<form asp-action="Create" onsubmit="return validateForm()">
<div asp-validation-summary="ModelOnly" class="text-danger"></div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label asp-for="Model" class="control-label">Model</label>
<input asp-for="Model" class="form-control" />
<span asp-validation-for="Model" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="Number" class="control-label">Davlat raqami</label>
<input asp-for="Number" class="form-control" />
<span asp-validation-for="Number" class="text-danger"></span>
</div>
</div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label asp-for="Color" class="control-label">Rangi</label>
<input asp-for="Color" class="form-control" />
<span asp-validation-for="Color" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="ManufacturedYear" class="control-label">Ishlab chiqarilgan yili</label>
<input asp-for="ManufacturedYear" class="form-control" />
<span asp-validation-for="ManufacturedYear" class="text-danger"></span>
</div>

</div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label asp-for="FuelTankCapacity" class="control-label">Yoqilg'i baki sig'imi</label>
<input asp-for="FuelTankCapacity" class="form-control" id="fuelTankCapacity" />
<span asp-validation-for="FuelTankCapacity" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="RemainingFuel" class="control-label">Avtomobildagi yoqilg'i qoldig'i [litr]</label>
<input asp-for="RemainingFuel" class="form-control" id="remainingFuel" oninput="validateRemainingFuel()" />
<span asp-validation-for="RemainingFuel" class="text-danger"></span>
</div>
</div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label asp-for="MeduimFuelConsumption" class="control-label">100 km uchun yoqilg'i me'yori [litr]</label>
<input asp-for="MeduimFuelConsumption" class="form-control" id="meduimFuelConsumption" />
<span asp-validation-for="MeduimFuelConsumption" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="Mileage" class="control-label">Bosib o'tilgan masofasi [km]</label>
<input asp-for="Mileage" class="form-control" />
<span asp-validation-for="Mileage" class="text-danger"></span>
</div>
</div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label asp-for="OneYearMediumDistance" class="control-label">1 yillik bosib o'tish me'yori [km]</label>
<input asp-for="OneYearMediumDistance" class="form-control" id="oneYearMediumDistance" oninput="calculateMonthlyDistance()" />
<span asp-validation-for="OneYearMediumDistance" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label for="monthlyDistance" class="control-label">1 oylik bosib o'tish me'yori [km]</label>
<input type="text" id="monthlyDistance" class="form-control" readonly />
</div>
</div>

<div class="form-group row">
<div class="col-md-6 mb-3">
<label for="yearlyMediumFuel" class="control-label">1 yillik yoqilg'i me'yori [litr]</label>
<input type="text" id="yearlyMediumFuel" class="form-control" readonly />
</div>
<div class="col-md-6 mb-3">
<label for="monthlyMediumFuel" class="control-label">1 oylik yoqilg'i me'yori [litr]</label>
<input type="text" id="monthlyMediumFuel" class="form-control" readonly />
</div>
</div>

<div class="form-group mt-3">
<a asp-action="Index" class="btn btn-outline-info">
<i class="fa-solid fa-arrow-left-long"></i>
Orqaga
</a>
<button class="btn btn-outline-success">
<i class="fa fa-plus"></i> Yaratish
</button>
</div>
</form>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js"></script>
<link href="https://fonts.googleapis.com/css2?family=Lato&display=swap" rel="stylesheet">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.bundle.min.js"></script>

<form asp-action="Create" method="post" id="createCarForm" onsubmit="return validateForm()">
@Html.AntiForgeryToken()
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
<div class="row">
<div class=" col-md-6 mb-3">
<label asp-for="Model" class="control-label">Model</label>
<input asp-for="Model" class="form-control" />
<span asp-validation-for="Model" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="Number" class="control-label">Davlat raqami</label>
<input asp-for="Number" class="form-control" />
<span asp-validation-for="Number" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="Color" class="control-label">Rangi</label>
<input asp-for="Color" class="form-control" />
<span asp-validation-for="Color" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="ManufacturedYear" class="control-label">Ishlab chiqarilgan yili</label>
<input asp-for="ManufacturedYear" class="form-control" />
<span asp-validation-for="ManufacturedYear" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="Mileage" class="control-label">Bosib o'tilgan masofasi [km]</label>
<input asp-for="Mileage" class="form-control" />
<span asp-validation-for="Mileage" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="FuelTankCapacity" class="control-label">Yoqilg'i baki sig'imi</label>
<input asp-for="FuelTankCapacity" class="form-control" id="fuelTankCapacity" />
<span asp-validation-for="FuelTankCapacity" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="MeduimFuelConsumption" class="control-label">100 km uchun yoqilg'i me'yori [litr]</label>
<input asp-for="MeduimFuelConsumption" class="form-control" id="meduimFuelConsumption" />
<span asp-validation-for="MeduimFuelConsumption" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="RemainingFuel" class="control-label">Avtomobildagi yoqilg'i qoldig'i [litr]</label>
<input asp-for="RemainingFuel" class="form-control" id="remainingFuel" oninput="validateRemainingFuel()" />
<span asp-validation-for="RemainingFuel" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label asp-for="OneYearMediumDistance" class="control-label">1 yillik bosib o'tish me'yori [km]</label>
<input asp-for="OneYearMediumDistance" class="form-control" id="oneYearMediumDistance" oninput="calculateMonthlyDistance()" />
<span asp-validation-for="OneYearMediumDistance" class="text-danger"></span>
</div>
<div class="col-md-6 mb-3">
<label for="monthlyDistance" class="control-label">1 oylik bosib o'tish me'yori [km]</label>
<input type="text" id="monthlyDistance" class="form-control" readonly />
</div>
<div class="col-md-6 mb-3">
<label for="yearlyMediumFuel" class="control-label">1 yillik yoqilg'i me'yori [litr]</label>
<input type="text" id="yearlyMediumFuel" class="form-control" readonly />
</div>
<div class="col-md-6 mb-3">
<label for="monthlyMediumFuel" class="control-label">1 oylik yoqilg'i me'yori [litr]</label>
<input type="text" id="monthlyMediumFuel" class="form-control" readonly />
</div>
</div>
<div class="modal-footer d-flex justify-content-center ">
<button type="submit" class="btn btn-success" style="width:200px" id="saveCarBtn">
<i class="fa fa-plus"></i> Yaratish
</button>
</div>
</div>
</form>

<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
@section Scripts {
<script>
function validateForm() {
Expand Down
6 changes: 3 additions & 3 deletions CheckDrive.Web/CheckDrive.Web/Views/Cars/Details.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@
</div>

<div class="mt-4">
<a asp-action="Index" class="btn btn-outline-info">
<a asp-action="Index" class="btn btn-info">
<i class="fa-solid fa-arrow-left"></i>
Orqaga
</a>
<a asp-action="Edit" asp-route-id="@Model?.Id" class="btn btn-outline-warning">
<a asp-action="Edit" asp-route-id="@Model?.Id" class="btn btn-warning">
<i class="fa-solid fa-pen"></i>
Tahrirlash
</a>
<a asp-action="Delete" asp-route-id="@Model?.Id" class="btn btn-outline-danger">
<a asp-action="Delete" asp-route-id="@Model?.Id" class="btn btn-danger">
<i class="fa-solid fa-trash"></i>
O'chirish
</a>
Expand Down
4 changes: 2 additions & 2 deletions CheckDrive.Web/CheckDrive.Web/Views/Cars/Edit.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,11 @@
</div>

<div class="form-group mt-3">
<a asp-action="Details" asp-route-id="@Model?.Id" class="btn btn-outline-info">
<a asp-action="Details" asp-route-id="@Model?.Id" class="btn btn-info">
<i class="fa-solid fa-arrow-left-long"></i>
Orqaga
</a>
<button class="btn btn-outline-success">
<button class="btn btn-success">
<i class="fa fa-pencil"></i> Saqlash
</button>
</div>
Expand Down
Loading