Commit 32912d0bbb72483482b5eaf41da3ed753246ad36
0 parents
first commit
Showing
163 changed files
with
9664 additions
and
0 deletions
Show diff stats
Too many changes.
To preserve performance only 100 of 163 files are displayed.
1 | +++ a/.gitignore | ||
1 | +.vscode | ||
2 | +src/Maps/obj | ||
3 | +src/Maps/bin | ||
4 | +src/Maps/project.lock.json | ||
5 | +src/MapsDb/obj | ||
6 | +src/MapsDb/bin | ||
7 | +src/MapsDb/project.lock.json | ||
8 | +src/MapsModels/obj | ||
9 | +src/MapsModels/bin | ||
10 | +src/MapsModels/project.lock.json | ||
0 | \ No newline at end of file | 11 | \ No newline at end of file |
1 | +++ a/src/Maps/Controllers/BusStopController.cs | ||
1 | +using System.Linq; | ||
2 | +using System.Threading.Tasks; | ||
3 | +using Microsoft.AspNetCore.Mvc; | ||
4 | +using Microsoft.AspNetCore.Mvc.Rendering; | ||
5 | +using Microsoft.EntityFrameworkCore; | ||
6 | +using MapsDb; | ||
7 | +using MapsDb.Interfeces; | ||
8 | +using MapsDb.DataService; | ||
9 | +using MapsModels.ViewModels; | ||
10 | +namespace Maps.Controllers | ||
11 | +{ | ||
12 | + public class BusStopController : Controller | ||
13 | + { | ||
14 | + private readonly IBusStopDs _busStopDs; | ||
15 | + | ||
16 | + public BusStopController(IBusStopDs BusStopDs) | ||
17 | + { | ||
18 | + _busStopDs = BusStopDs; | ||
19 | + } | ||
20 | + | ||
21 | + // GET: BusStop | ||
22 | + [HttpGet] | ||
23 | + public async Task<IActionResult> Index() | ||
24 | + { | ||
25 | + var busStops = await _busStopDs.GetAllBusStopAsync(); | ||
26 | + | ||
27 | + ListBusStopVm vm = new ListBusStopVm | ||
28 | + { | ||
29 | + busStopListDs = busStops.ToList() | ||
30 | + }; | ||
31 | + | ||
32 | + return Json(vm); | ||
33 | + } | ||
34 | + | ||
35 | + | ||
36 | + // GET: BusStop/Details/5 | ||
37 | + public async Task<IActionResult> Details(int id) | ||
38 | + { | ||
39 | + | ||
40 | + var busStop = await _busStopDs.FindOneDetailsAsync(id); | ||
41 | + if (busStop == null) | ||
42 | + { | ||
43 | + return NotFound(); | ||
44 | + } | ||
45 | + | ||
46 | + return View(busStop); | ||
47 | + } | ||
48 | + | ||
49 | + // GET: BusStop/Create | ||
50 | + public IActionResult Create() | ||
51 | + { | ||
52 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId"); | ||
53 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "Name"); | ||
54 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name"); | ||
55 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "Value"); | ||
56 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "Name"); | ||
57 | + return View(); | ||
58 | + } | ||
59 | + | ||
60 | + // POST: BusStop/Create | ||
61 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | ||
62 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | ||
63 | + [HttpPost] | ||
64 | + [ValidateAntiForgeryToken] | ||
65 | + public async Task<IActionResult> Create([Bind("BusStopId,AreaLandAvailability,AreaStopAvailability,BalanceCost,BusStationCardId,CrossSectionNumber,DateActual,LocationLeft,LocationRight,PocketAvailability,Position,RegionId,RepairCertificate,RoadId,SettlementId,StateCommonId,SurfaceTypeId,ToiletAvailability,YearBuild,YearRepair")] BusStop busStop) | ||
66 | + { | ||
67 | + if (ModelState.IsValid) | ||
68 | + { | ||
69 | + _context.Add(busStop); | ||
70 | + await _context.SaveChangesAsync(); | ||
71 | + return RedirectToAction("Index"); | ||
72 | + } | ||
73 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); | ||
74 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); | ||
75 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); | ||
76 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); | ||
77 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); | ||
78 | + return View(busStop); | ||
79 | + } | ||
80 | + | ||
81 | + // GET: BusStop/Edit/5 | ||
82 | + public async Task<IActionResult> Edit(int? id) | ||
83 | + { | ||
84 | + if (id == null) | ||
85 | + { | ||
86 | + return NotFound(); | ||
87 | + } | ||
88 | + | ||
89 | + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); | ||
90 | + if (busStop == null) | ||
91 | + { | ||
92 | + return NotFound(); | ||
93 | + } | ||
94 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); | ||
95 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); | ||
96 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); | ||
97 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); | ||
98 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); | ||
99 | + return View(busStop); | ||
100 | + } | ||
101 | + | ||
102 | + // POST: BusStop/Edit/5 | ||
103 | + // To protect from overposting attacks, please enable the specific properties you want to bind to, for | ||
104 | + // more details see http://go.microsoft.com/fwlink/?LinkId=317598. | ||
105 | + [HttpPost] | ||
106 | + [ValidateAntiForgeryToken] | ||
107 | + public async Task<IActionResult> Edit(int id, [Bind("BusStopId,AreaLandAvailability,AreaStopAvailability,BalanceCost,BusStationCardId,CrossSectionNumber,DateActual,LocationLeft,LocationRight,PocketAvailability,Position,RegionId,RepairCertificate,RoadId,SettlementId,StateCommonId,SurfaceTypeId,ToiletAvailability,YearBuild,YearRepair")] BusStop busStop) | ||
108 | + { | ||
109 | + if (id != busStop.BusStopId) | ||
110 | + { | ||
111 | + return NotFound(); | ||
112 | + } | ||
113 | + | ||
114 | + if (ModelState.IsValid) | ||
115 | + { | ||
116 | + try | ||
117 | + { | ||
118 | + _context.Update(busStop); | ||
119 | + await _context.SaveChangesAsync(); | ||
120 | + } | ||
121 | + catch (DbUpdateConcurrencyException) | ||
122 | + { | ||
123 | + if (!BusStopExists(busStop.BusStopId)) | ||
124 | + { | ||
125 | + return NotFound(); | ||
126 | + } | ||
127 | + else | ||
128 | + { | ||
129 | + throw; | ||
130 | + } | ||
131 | + } | ||
132 | + return RedirectToAction("Index"); | ||
133 | + } | ||
134 | + ViewData["RegionId"] = new SelectList(_context.Region, "RegionId", "RegionId", busStop.RegionId); | ||
135 | + ViewData["RoadId"] = new SelectList(_context.Road, "RoadId", "RoadId", busStop.RoadId); | ||
136 | + ViewData["SettlementId"] = new SelectList(_context.Settlement, "SettlementId", "Name", busStop.SettlementId); | ||
137 | + ViewData["StateCommonId"] = new SelectList(_context.StateCommon, "StateCommonId", "StateCommonId", busStop.StateCommonId); | ||
138 | + ViewData["SurfaceTypeId"] = new SelectList(_context.SurfaceType, "SurfaceTypeId", "SurfaceTypeId", busStop.SurfaceTypeId); | ||
139 | + return View(busStop); | ||
140 | + } | ||
141 | + | ||
142 | + // GET: BusStop/Delete/5 | ||
143 | + public async Task<IActionResult> Delete(int? id) | ||
144 | + { | ||
145 | + if (id == null) | ||
146 | + { | ||
147 | + return NotFound(); | ||
148 | + } | ||
149 | + | ||
150 | + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); | ||
151 | + if (busStop == null) | ||
152 | + { | ||
153 | + return NotFound(); | ||
154 | + } | ||
155 | + | ||
156 | + return View(busStop); | ||
157 | + } | ||
158 | + | ||
159 | + // POST: BusStop/Delete/5 | ||
160 | + [HttpPost, ActionName("Delete")] | ||
161 | + [ValidateAntiForgeryToken] | ||
162 | + public async Task<IActionResult> DeleteConfirmed(int id) | ||
163 | + { | ||
164 | + var busStop = await _context.BusStop.SingleOrDefaultAsync(m => m.BusStopId == id); | ||
165 | + _context.BusStop.Remove(busStop); | ||
166 | + await _context.SaveChangesAsync(); | ||
167 | + return RedirectToAction("Index"); | ||
168 | + } | ||
169 | + | ||
170 | + private bool BusStopExists(int id) | ||
171 | + { | ||
172 | + return _context.BusStop.Any(e => e.BusStopId == id); | ||
173 | + } | ||
174 | + } | ||
175 | +} |
1 | +++ a/src/Maps/Maps.sln | ||
1 | + | ||
2 | +Microsoft Visual Studio Solution File, Format Version 12.00 | ||
3 | +# Visual Studio 14 | ||
4 | +VisualStudioVersion = 14.0.25420.1 | ||
5 | +MinimumVisualStudioVersion = 10.0.40219.1 | ||
6 | +Project("{8BB2217D-0F2D-49D1-97BC-3654ED321F3B}") = "Maps", "Maps.xproj", "{C746E65B-78A5-44E0-8A27-A21E016DC9C7}" | ||
7 | +EndProject | ||
8 | +Global | ||
9 | + GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
10 | + Debug|Any CPU = Debug|Any CPU | ||
11 | + Release|Any CPU = Release|Any CPU | ||
12 | + EndGlobalSection | ||
13 | + GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
14 | + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
15 | + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
16 | + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
17 | + {C746E65B-78A5-44E0-8A27-A21E016DC9C7}.Release|Any CPU.Build.0 = Release|Any CPU | ||
18 | + EndGlobalSection | ||
19 | + GlobalSection(SolutionProperties) = preSolution | ||
20 | + HideSolutionNode = FALSE | ||
21 | + EndGlobalSection | ||
22 | +EndGlobal |
1 | +++ a/src/Maps/Maps.xproj | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
3 | + <PropertyGroup> | ||
4 | + <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0</VisualStudioVersion> | ||
5 | + <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
6 | + </PropertyGroup> | ||
7 | + <Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | ||
8 | + <PropertyGroup Label="Globals"> | ||
9 | + <ProjectGuid>c746e65b-78a5-44e0-8a27-a21e016dc9c7</ProjectGuid> | ||
10 | + <RootNamespace>Maps</RootNamespace> | ||
11 | + <BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | ||
12 | + <OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | ||
13 | + <TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> | ||
14 | + </PropertyGroup> | ||
15 | + <PropertyGroup> | ||
16 | + <SchemaVersion>2.0</SchemaVersion> | ||
17 | + </PropertyGroup> | ||
18 | + <ItemGroup> | ||
19 | + <DnxInvisibleContent Include="bower.json" /> | ||
20 | + <DnxInvisibleContent Include=".bowerrc" /> | ||
21 | + </ItemGroup> | ||
22 | + <Import Project="$(VSToolsPath)\DotNet.Web\Microsoft.DotNet.Web.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
23 | +</Project> |
1 | +++ a/src/Maps/Maps.xproj.user | ||
1 | +<?xml version="1.0" encoding="utf-8"?> | ||
2 | +<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
3 | + <PropertyGroup> | ||
4 | + <ActiveDebugProfile>IIS Express</ActiveDebugProfile> | ||
5 | + </PropertyGroup> | ||
6 | +</Project> | ||
0 | \ No newline at end of file | 7 | \ No newline at end of file |
1 | +++ a/src/Maps/Program.cs | ||
1 | +using System; | ||
2 | +using System.Collections.Generic; | ||
3 | +using System.IO; | ||
4 | +using System.Linq; | ||
5 | +using System.Threading.Tasks; | ||
6 | +using Microsoft.AspNetCore.Hosting; | ||
7 | + | ||
8 | +namespace Maps | ||
9 | +{ | ||
10 | + public class Program | ||
11 | + { | ||
12 | + public static void Main(string[] args) | ||
13 | + { | ||
14 | + var host = new WebHostBuilder() | ||
15 | + .UseKestrel() | ||
16 | + .UseContentRoot(Directory.GetCurrentDirectory()) | ||
17 | + .UseStartup<Startup>() | ||
18 | + .Build(); | ||
19 | + | ||
20 | + host.Run(); | ||
21 | + } | ||
22 | + } | ||
23 | +} |
1 | +++ a/src/Maps/Project_Readme.html | ||
1 | +<!DOCTYPE html> | ||
2 | +<html lang="en"> | ||
3 | +<head> | ||
4 | + <meta charset="utf-8" /> | ||
5 | + <title>Welcome to ASP.NET Core</title> | ||
6 | + <style> | ||
7 | + html { | ||
8 | + background: #f1f1f1; | ||
9 | + height: 100%; | ||
10 | + } | ||
11 | + | ||
12 | + body { | ||
13 | + background: #fff; | ||
14 | + color: #505050; | ||
15 | + font: 14px 'Segoe UI', tahoma, arial, helvetica, sans-serif; | ||
16 | + margin: 1%; | ||
17 | + min-height: 95.5%; | ||
18 | + border: 1px solid silver; | ||
19 | + position: relative; | ||
20 | + } | ||
21 | + | ||
22 | + #header { | ||
23 | + padding: 0; | ||
24 | + } | ||
25 | + | ||
26 | + #header h1 { | ||
27 | + font-size: 44px; | ||
28 | + font-weight: normal; | ||
29 | + margin: 0; | ||
30 | + padding: 10px 30px 10px 30px; | ||
31 | + } | ||
32 | + | ||
33 | + #header span { | ||
34 | + margin: 0; | ||
35 | + padding: 0 30px; | ||
36 | + display: block; | ||
37 | + } | ||
38 | + | ||
39 | + #header p { | ||
40 | + font-size: 20px; | ||
41 | + color: #fff; | ||
42 | + background: #007acc; | ||
43 | + padding: 0 30px; | ||
44 | + line-height: 50px; | ||
45 | + margin-top: 25px; | ||
46 | + | ||
47 | + } | ||
48 | + | ||
49 | + #header p a { | ||
50 | + color: #fff; | ||
51 | + text-decoration: underline; | ||
52 | + font-weight: bold; | ||
53 | + padding-right: 35px; | ||
54 | + background: no-repeat right bottom url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABcAAAAWCAMAAAAcqPc3AAAANlBMVEUAAAAAeswfitI9mthXp91us+KCvuaTx+mjz+2x1u+83PLH4vTR5/ba7Pjj8Pns9fv1+v3////wy3dWAAAAAXRSTlMAQObYZgAAAHxJREFUeNp9kVcSwCAIRMHUYoH7XzaxOxJ9P8oyQ1uIqNPwh3s2aLmIM2YtqrLcQIeQEylhuCeUOlhgve5yoBCfWmlnlgkN4H8ykbpaE7gR03AbUHiwoOxUH9Xp+ubd41p1HF3mBPrfC87BHeTdaB3ceeKL9HGpcvX9zu6+DdMWT9KQPvYAAAAASUVORK5CYII=); | ||
55 | + } | ||
56 | + | ||
57 | + #main { | ||
58 | + padding: 5px 30px; | ||
59 | + clear: both; | ||
60 | + } | ||
61 | + | ||
62 | + .section { | ||
63 | + width: 21.7%; | ||
64 | + float: left; | ||
65 | + margin: 0 0 0 4%; | ||
66 | + } | ||
67 | + | ||
68 | + .section h2 { | ||
69 | + font-size: 13px; | ||
70 | + text-transform: uppercase; | ||
71 | + margin: 0; | ||
72 | + border-bottom: 1px solid silver; | ||
73 | + padding-bottom: 12px; | ||
74 | + margin-bottom: 8px; | ||
75 | + } | ||
76 | + | ||
77 | + .section.first { | ||
78 | + margin-left: 0; | ||
79 | + } | ||
80 | + | ||
81 | + .section.first h2 { | ||
82 | + font-size: 24px; | ||
83 | + text-transform: none; | ||
84 | + margin-bottom: 25px; | ||
85 | + border: none; | ||
86 | + } | ||
87 | + | ||
88 | + .section.first li { | ||
89 | + border-top: 1px solid silver; | ||
90 | + padding: 8px 0; | ||
91 | + } | ||
92 | + | ||
93 | + .section.last { | ||
94 | + margin-right: 0; | ||
95 | + } | ||
96 | + | ||
97 | + ul { | ||
98 | + list-style: none; | ||
99 | + padding: 0; | ||
100 | + margin: 0; | ||
101 | + line-height: 20px; | ||
102 | + } | ||
103 | + | ||
104 | + li { | ||
105 | + padding: 4px 0; | ||
106 | + } | ||
107 | + | ||
108 | + a { | ||
109 | + color: #267cb2; | ||
110 | + text-decoration: none; | ||
111 | + } | ||
112 | + | ||
113 | + a:hover { | ||
114 | + text-decoration: underline; | ||
115 | + } | ||
116 | + | ||
117 | + #footer { | ||
118 | + clear: both; | ||
119 | + padding-top: 50px; | ||
120 | + } | ||
121 | + | ||
122 | + #footer p { | ||
123 | + position: absolute; | ||
124 | + bottom: 10px; | ||
125 | + } | ||
126 | + </style> | ||
127 | +</head> | ||
128 | +<body> | ||
129 | + | ||
130 | + <div id="header"> | ||
131 | + <h1>Welcome to ASP.NET Core</h1> | ||
132 | + <span> | ||
133 | + We've made some big updates in this release, so it’s <b>important</b> that you spend | ||
134 | + a few minutes to learn what’s new. | ||
135 | + </span> | ||
136 | + <p>You've created a new ASP.NET Core project. <a href="http://go.microsoft.com/fwlink/?LinkId=518016">Learn what's new</a></p> | ||
137 | + </div> | ||
138 | + | ||
139 | + <div id="main"> | ||
140 | + <div class="section first"> | ||
141 | + <h2>This application consists of:</h2> | ||
142 | + <ul> | ||
143 | + <li>Sample pages using ASP.NET Core MVC</li> | ||
144 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=518004">Bower</a> for managing client-side libraries</li> | ||
145 | + <li>Theming using <a href="http://go.microsoft.com/fwlink/?LinkID=398939">Bootstrap</a></li> | ||
146 | + </ul> | ||
147 | + </div> | ||
148 | + <div class="section"> | ||
149 | + <h2>How to</h2> | ||
150 | + <ul> | ||
151 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=398600">Add a Controller and View</a></li> | ||
152 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=699562">Add an appsetting in config and access it in app.</a></li> | ||
153 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699315">Manage User Secrets using Secret Manager.</a></li> | ||
154 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699316">Use logging to log a message.</a></li> | ||
155 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699317">Add packages using NuGet.</a></li> | ||
156 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699318">Add client packages using Bower.</a></li> | ||
157 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699319">Target development, staging or production environment.</a></li> | ||
158 | + </ul> | ||
159 | + </div> | ||
160 | + <div class="section"> | ||
161 | + <h2>Overview</h2> | ||
162 | + <ul> | ||
163 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=518008">Conceptual overview of what is ASP.NET Core</a></li> | ||
164 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=699320">Fundamentals of ASP.NET Core such as Startup and middleware.</a></li> | ||
165 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=398602">Working with Data</a></li> | ||
166 | + <li><a href="http://go.microsoft.com/fwlink/?LinkId=398603">Security</a></li> | ||
167 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=699321">Client side development</a></li> | ||
168 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=699322">Develop on different platforms</a></li> | ||
169 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=699323">Read more on the documentation site</a></li> | ||
170 | + </ul> | ||
171 | + </div> | ||
172 | + <div class="section last"> | ||
173 | + <h2>Run & Deploy</h2> | ||
174 | + <ul> | ||
175 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=517851">Run your app</a></li> | ||
176 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=517853">Run tools such as EF migrations and more</a></li> | ||
177 | + <li><a href="http://go.microsoft.com/fwlink/?LinkID=398609">Publish to Microsoft Azure Web Apps</a></li> | ||
178 | + </ul> | ||
179 | + </div> | ||
180 | + | ||
181 | + <div id="footer"> | ||
182 | + <p>We would love to hear your <a href="http://go.microsoft.com/fwlink/?LinkId=518015">feedback</a></p> | ||
183 | + </div> | ||
184 | + </div> | ||
185 | + | ||
186 | +</body> | ||
187 | +</html> |
1 | +++ a/src/Maps/Properties/launchSettings.json | ||
1 | +{ | ||
2 | + "iisSettings": { | ||
3 | + "windowsAuthentication": false, | ||
4 | + "anonymousAuthentication": true, | ||
5 | + "iisExpress": { | ||
6 | + "applicationUrl": "http://localhost:50882/", | ||
7 | + "sslPort": 0 | ||
8 | + } | ||
9 | + }, | ||
10 | + "profiles": { | ||
11 | + "IIS Express": { | ||
12 | + "commandName": "IISExpress", | ||
13 | + "launchBrowser": true, | ||
14 | + "environmentVariables": { | ||
15 | + "ASPNETCORE_ENVIRONMENT": "Development" | ||
16 | + } | ||
17 | + }, | ||
18 | + "Maps": { | ||
19 | + "commandName": "Project", | ||
20 | + "launchBrowser": true, | ||
21 | + "launchUrl": "http://localhost:5000", | ||
22 | + "environmentVariables": { | ||
23 | + "ASPNETCORE_ENVIRONMENT": "Development" | ||
24 | + } | ||
25 | + } | ||
26 | + } | ||
27 | +} | ||
0 | \ No newline at end of file | 28 | \ No newline at end of file |
1 | +++ a/src/Maps/Startup.cs | ||
1 | +using System; | ||
2 | +using System.Collections.Generic; | ||
3 | +using System.Linq; | ||
4 | +using System.Threading.Tasks; | ||
5 | +using Microsoft.AspNetCore.Builder; | ||
6 | +using Microsoft.AspNetCore.Hosting; | ||
7 | +using Microsoft.Extensions.Configuration; | ||
8 | +using Microsoft.Extensions.DependencyInjection; | ||
9 | +using Microsoft.Extensions.Logging; | ||
10 | +using Microsoft.EntityFrameworkCore; | ||
11 | +using MapsDb; | ||
12 | +using MapsDb.Interfeces; | ||
13 | +using MapsDb.DataService; | ||
14 | +using MapsModels; | ||
15 | +namespace Maps | ||
16 | +{ | ||
17 | + public class Startup | ||
18 | + { | ||
19 | + public Startup(IHostingEnvironment env) | ||
20 | + { | ||
21 | + var builder = new ConfigurationBuilder() | ||
22 | + .SetBasePath(env.ContentRootPath) | ||
23 | + .AddJsonFile("appsettings.json", optional: true, reloadOnChange: true) | ||
24 | + .AddJsonFile($"appsettings.{env.EnvironmentName}.json", optional: true) | ||
25 | + .AddEnvironmentVariables(); | ||
26 | + | ||
27 | + if (env.IsDevelopment()) | ||
28 | + { | ||
29 | + // This will push telemetry data through Application Insights pipeline faster, allowing you to view results immediately. | ||
30 | + builder.AddApplicationInsightsSettings(developerMode: true); | ||
31 | + } | ||
32 | + Configuration = builder.Build(); | ||
33 | + } | ||
34 | + | ||
35 | + public IConfigurationRoot Configuration { get; } | ||
36 | + | ||
37 | + // This method gets called by the runtime. Use this method to add services to the container. | ||
38 | + public void ConfigureServices(IServiceCollection services) | ||
39 | + { | ||
40 | + services.AddScoped<PostgresDbContext>(); | ||
41 | + | ||
42 | + services.AddScoped<IBusStopDs, BusStopDs>(); | ||
43 | + // Add framework services. | ||
44 | + services.AddApplicationInsightsTelemetry(Configuration); | ||
45 | + | ||
46 | + services.AddMvc(); | ||
47 | + | ||
48 | + } | ||
49 | + | ||
50 | + // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. | ||
51 | + public void Configure(IApplicationBuilder app, IHostingEnvironment env, ILoggerFactory loggerFactory) | ||
52 | + { | ||
53 | + | ||
54 | + | ||
55 | + app.UseDeveloperExceptionPage(); | ||
56 | + app.UseBrowserLink(); | ||
57 | + | ||
58 | + loggerFactory.AddConsole(Configuration.GetSection("Logging")); | ||
59 | + loggerFactory.AddDebug(); | ||
60 | + | ||
61 | + app.UseApplicationInsightsRequestTelemetry(); | ||
62 | + app.UseApplicationInsightsExceptionTelemetry(); | ||
63 | + | ||
64 | + app.UseStaticFiles(); | ||
65 | + | ||
66 | + app.UseMvc(routes => | ||
67 | + { | ||
68 | + routes.MapRoute( | ||
69 | + name: "default", | ||
70 | + template: "{controller=Home}/{action=Index}/{id?}"); | ||
71 | + }); | ||
72 | + } | ||
73 | + } | ||
74 | +} |
1 | +++ a/src/Maps/Views/BusStop/Create.cshtml | ||
1 | +@model Maps.Entities.BusStop | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | +<form asp-action="Create"> | ||
6 | + <div class="form-horizontal"> | ||
7 | + <h4>BusStop</h4> | ||
8 | + <hr /> | ||
9 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
10 | + <div class="form-group"> | ||
11 | + <label asp-for="AreaLandAvailability" class="col-md-2 control-label"></label> | ||
12 | + <div class="col-md-10"> | ||
13 | + <input asp-for="AreaLandAvailability" class="form-control" /> | ||
14 | + <span asp-validation-for="AreaLandAvailability" class="text-danger" /> | ||
15 | + </div> | ||
16 | + </div> | ||
17 | + <div class="form-group"> | ||
18 | + <label asp-for="AreaStopAvailability" class="col-md-2 control-label"></label> | ||
19 | + <div class="col-md-10"> | ||
20 | + <input asp-for="AreaStopAvailability" class="form-control" /> | ||
21 | + <span asp-validation-for="AreaStopAvailability" class="text-danger" /> | ||
22 | + </div> | ||
23 | + </div> | ||
24 | + <div class="form-group"> | ||
25 | + <label asp-for="BalanceCost" class="col-md-2 control-label"></label> | ||
26 | + <div class="col-md-10"> | ||
27 | + <input asp-for="BalanceCost" class="form-control" /> | ||
28 | + <span asp-validation-for="BalanceCost" class="text-danger" /> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + <div class="form-group"> | ||
32 | + <label asp-for="BusStationCardId" class="col-md-2 control-label"></label> | ||
33 | + <div class="col-md-10"> | ||
34 | + <input asp-for="BusStationCardId" class="form-control" /> | ||
35 | + <span asp-validation-for="BusStationCardId" class="text-danger" /> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <div class="form-group"> | ||
39 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | ||
40 | + <div class="col-md-10"> | ||
41 | + <input asp-for="CrossSectionNumber" class="form-control" /> | ||
42 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | ||
43 | + </div> | ||
44 | + </div> | ||
45 | + <div class="form-group"> | ||
46 | + <label asp-for="DateActual" class="col-md-2 control-label"></label> | ||
47 | + <div class="col-md-10"> | ||
48 | + <input asp-for="DateActual" class="form-control" /> | ||
49 | + <span asp-validation-for="DateActual" class="text-danger" /> | ||
50 | + </div> | ||
51 | + </div> | ||
52 | + <div class="form-group"> | ||
53 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
54 | + <div class="col-md-10"> | ||
55 | + <input asp-for="LocationLeft" class="form-control" /> | ||
56 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + <div class="form-group"> | ||
60 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
61 | + <div class="col-md-10"> | ||
62 | + <input asp-for="LocationRight" class="form-control" /> | ||
63 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
64 | + </div> | ||
65 | + </div> | ||
66 | + <div class="form-group"> | ||
67 | + <label asp-for="PocketAvailability" class="col-md-2 control-label"></label> | ||
68 | + <div class="col-md-10"> | ||
69 | + <input asp-for="PocketAvailability" class="form-control" /> | ||
70 | + <span asp-validation-for="PocketAvailability" class="text-danger" /> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + <div class="form-group"> | ||
74 | + <label asp-for="Position" class="col-md-2 control-label"></label> | ||
75 | + <div class="col-md-10"> | ||
76 | + <input asp-for="Position" class="form-control" /> | ||
77 | + <span asp-validation-for="Position" class="text-danger" /> | ||
78 | + </div> | ||
79 | + </div> | ||
80 | + <div class="form-group"> | ||
81 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
82 | + <div class="col-md-10"> | ||
83 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
84 | + </div> | ||
85 | + </div> | ||
86 | + <div class="form-group"> | ||
87 | + <label asp-for="RepairCertificate" class="col-md-2 control-label"></label> | ||
88 | + <div class="col-md-10"> | ||
89 | + <input asp-for="RepairCertificate" class="form-control" /> | ||
90 | + <span asp-validation-for="RepairCertificate" class="text-danger" /> | ||
91 | + </div> | ||
92 | + </div> | ||
93 | + <div class="form-group"> | ||
94 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
95 | + <div class="col-md-10"> | ||
96 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | ||
101 | + <div class="col-md-10"> | ||
102 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <div class="form-group"> | ||
106 | + <label asp-for="StateCommonId" class="col-md-2 control-label"></label> | ||
107 | + <div class="col-md-10"> | ||
108 | + <select asp-for="StateCommonId" class ="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
109 | + </div> | ||
110 | + </div> | ||
111 | + <div class="form-group"> | ||
112 | + <label asp-for="SurfaceTypeId" class="col-md-2 control-label"></label> | ||
113 | + <div class="col-md-10"> | ||
114 | + <select asp-for="SurfaceTypeId" class ="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
115 | + </div> | ||
116 | + </div> | ||
117 | + <div class="form-group"> | ||
118 | + <label asp-for="ToiletAvailability" class="col-md-2 control-label"></label> | ||
119 | + <div class="col-md-10"> | ||
120 | + <input asp-for="ToiletAvailability" class="form-control" /> | ||
121 | + <span asp-validation-for="ToiletAvailability" class="text-danger" /> | ||
122 | + </div> | ||
123 | + </div> | ||
124 | + <div class="form-group"> | ||
125 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | ||
126 | + <div class="col-md-10"> | ||
127 | + <input asp-for="YearBuild" class="form-control" /> | ||
128 | + <span asp-validation-for="YearBuild" class="text-danger" /> | ||
129 | + </div> | ||
130 | + </div> | ||
131 | + <div class="form-group"> | ||
132 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | ||
133 | + <div class="col-md-10"> | ||
134 | + <input asp-for="YearRepair" class="form-control" /> | ||
135 | + <span asp-validation-for="YearRepair" class="text-danger" /> | ||
136 | + </div> | ||
137 | + </div> | ||
138 | + <div class="form-group"> | ||
139 | + <div class="col-md-offset-2 col-md-10"> | ||
140 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
141 | + </div> | ||
142 | + </div> | ||
143 | + </div> | ||
144 | +</form> | ||
145 | + | ||
146 | +<div> | ||
147 | + <a asp-action="Index">Back to List</a> | ||
148 | +</div> |
1 | +++ a/src/Maps/Views/BusStop/Delete.cshtml | ||
1 | +@model Maps.Entities.BusStop | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | +<h3>Are you sure you want to delete this?</h3> | ||
6 | +<div> | ||
7 | + <h4>BusStop</h4> | ||
8 | + <hr /> | ||
9 | + <dl class="dl-horizontal"> | ||
10 | + <dt> | ||
11 | + @Html.DisplayNameFor(model => model.AreaLandAvailability) | ||
12 | + </dt> | ||
13 | + <dd> | ||
14 | + @Html.DisplayFor(model => model.AreaLandAvailability) | ||
15 | + </dd> | ||
16 | + <dt> | ||
17 | + @Html.DisplayNameFor(model => model.AreaStopAvailability) | ||
18 | + </dt> | ||
19 | + <dd> | ||
20 | + @Html.DisplayFor(model => model.AreaStopAvailability) | ||
21 | + </dd> | ||
22 | + <dt> | ||
23 | + @Html.DisplayNameFor(model => model.BalanceCost) | ||
24 | + </dt> | ||
25 | + <dd> | ||
26 | + @Html.DisplayFor(model => model.BalanceCost) | ||
27 | + </dd> | ||
28 | + <dt> | ||
29 | + @Html.DisplayNameFor(model => model.BusStationCardId) | ||
30 | + </dt> | ||
31 | + <dd> | ||
32 | + @Html.DisplayFor(model => model.BusStationCardId) | ||
33 | + </dd> | ||
34 | + <dt> | ||
35 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
36 | + </dt> | ||
37 | + <dd> | ||
38 | + @Html.DisplayFor(model => model.CrossSectionNumber) | ||
39 | + </dd> | ||
40 | + <dt> | ||
41 | + @Html.DisplayNameFor(model => model.DateActual) | ||
42 | + </dt> | ||
43 | + <dd> | ||
44 | + @Html.DisplayFor(model => model.DateActual) | ||
45 | + </dd> | ||
46 | + <dt> | ||
47 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
48 | + </dt> | ||
49 | + <dd> | ||
50 | + @Html.DisplayFor(model => model.LocationLeft) | ||
51 | + </dd> | ||
52 | + <dt> | ||
53 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
54 | + </dt> | ||
55 | + <dd> | ||
56 | + @Html.DisplayFor(model => model.LocationRight) | ||
57 | + </dd> | ||
58 | + <dt> | ||
59 | + @Html.DisplayNameFor(model => model.PocketAvailability) | ||
60 | + </dt> | ||
61 | + <dd> | ||
62 | + @Html.DisplayFor(model => model.PocketAvailability) | ||
63 | + </dd> | ||
64 | + <dt> | ||
65 | + @Html.DisplayNameFor(model => model.Position) | ||
66 | + </dt> | ||
67 | + <dd> | ||
68 | + @Html.DisplayFor(model => model.Position) | ||
69 | + </dd> | ||
70 | + <dt> | ||
71 | + @Html.DisplayNameFor(model => model.RepairCertificate) | ||
72 | + </dt> | ||
73 | + <dd> | ||
74 | + @Html.DisplayFor(model => model.RepairCertificate) | ||
75 | + </dd> | ||
76 | + <dt> | ||
77 | + @Html.DisplayNameFor(model => model.ToiletAvailability) | ||
78 | + </dt> | ||
79 | + <dd> | ||
80 | + @Html.DisplayFor(model => model.ToiletAvailability) | ||
81 | + </dd> | ||
82 | + <dt> | ||
83 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
84 | + </dt> | ||
85 | + <dd> | ||
86 | + @Html.DisplayFor(model => model.YearBuild) | ||
87 | + </dd> | ||
88 | + <dt> | ||
89 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
90 | + </dt> | ||
91 | + <dd> | ||
92 | + @Html.DisplayFor(model => model.YearRepair) | ||
93 | + </dd> | ||
94 | + </dl> | ||
95 | + | ||
96 | + <form asp-action="Delete"> | ||
97 | + <div class="form-actions no-color"> | ||
98 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
99 | + <a asp-action="Index">Back to List</a> | ||
100 | + </div> | ||
101 | + </form> | ||
102 | +</div> |
1 | +++ a/src/Maps/Views/BusStop/Details.cshtml | ||
1 | +@model Maps.Entities.BusStop | ||
2 | + | ||
3 | + | ||
4 | +<div> | ||
5 | + <h4>BusStop</h4> | ||
6 | + <hr /> | ||
7 | + <dl class="dl-horizontal"> | ||
8 | + <dt> | ||
9 | + @Html.DisplayNameFor(model => model.AreaLandAvailability) | ||
10 | + </dt> | ||
11 | + <dd> | ||
12 | + @Html.DisplayFor(model => model.AreaLandAvailability) | ||
13 | + </dd> | ||
14 | + <dt> | ||
15 | + @Html.DisplayNameFor(model => model.AreaStopAvailability) | ||
16 | + </dt> | ||
17 | + <dd> | ||
18 | + @Html.DisplayFor(model => model.AreaStopAvailability) | ||
19 | + </dd> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.BalanceCost) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.BalanceCost) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.BusStationCardId) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.BusStationCardId) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.CrossSectionNumber) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.DateActual) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.DateActual) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.LocationLeft) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.LocationRight) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.PocketAvailability) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.PocketAvailability) | ||
61 | + </dd> | ||
62 | + <dt> | ||
63 | + @Html.DisplayNameFor(model => model.Position) | ||
64 | + </dt> | ||
65 | + <dd> | ||
66 | + @Html.DisplayFor(model => model.Position) | ||
67 | + </dd> | ||
68 | + <dt> | ||
69 | + @Html.DisplayNameFor(model => model.RepairCertificate) | ||
70 | + </dt> | ||
71 | + <dd> | ||
72 | + @Html.DisplayFor(model => model.RepairCertificate) | ||
73 | + </dd> | ||
74 | + <dt> | ||
75 | + @Html.DisplayNameFor(model => model.ToiletAvailability) | ||
76 | + </dt> | ||
77 | + <dd> | ||
78 | + @Html.DisplayFor(model => model.ToiletAvailability) | ||
79 | + </dd> | ||
80 | + <dt> | ||
81 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
82 | + </dt> | ||
83 | + <dd> | ||
84 | + @Html.DisplayFor(model => model.YearBuild) | ||
85 | + </dd> | ||
86 | + <dt> | ||
87 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
88 | + </dt> | ||
89 | + <dd> | ||
90 | + @Html.DisplayFor(model => model.YearRepair) | ||
91 | + </dd> | ||
92 | + </dl> | ||
93 | +</div> | ||
94 | +<div> | ||
95 | + <a asp-action="Edit" asp-route-id="@Model.BusStopId">Edit</a> | | ||
96 | + <a asp-action="Index">Back to List</a> | ||
97 | +</div> | ||
0 | \ No newline at end of file | 98 | \ No newline at end of file |
1 | +++ a/src/Maps/Views/BusStop/Edit.cshtml | ||
1 | +@model Maps.Entities.BusStop | ||
2 | + | ||
3 | + | ||
4 | +<form asp-action="Edit"> | ||
5 | + <div class="form-horizontal"> | ||
6 | + <h4>BusStop</h4> | ||
7 | + <hr /> | ||
8 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
9 | + <input type="hidden" asp-for="BusStopId" /> | ||
10 | + <div class="form-group"> | ||
11 | + <label asp-for="AreaLandAvailability" class="col-md-2 control-label"></label> | ||
12 | + <div class="col-md-10"> | ||
13 | + <input asp-for="AreaLandAvailability" class="form-control" /> | ||
14 | + <span asp-validation-for="AreaLandAvailability" class="text-danger" /> | ||
15 | + </div> | ||
16 | + </div> | ||
17 | + <div class="form-group"> | ||
18 | + <label asp-for="AreaStopAvailability" class="col-md-2 control-label"></label> | ||
19 | + <div class="col-md-10"> | ||
20 | + <input asp-for="AreaStopAvailability" class="form-control" /> | ||
21 | + <span asp-validation-for="AreaStopAvailability" class="text-danger" /> | ||
22 | + </div> | ||
23 | + </div> | ||
24 | + <div class="form-group"> | ||
25 | + <label asp-for="BalanceCost" class="col-md-2 control-label"></label> | ||
26 | + <div class="col-md-10"> | ||
27 | + <input asp-for="BalanceCost" class="form-control" /> | ||
28 | + <span asp-validation-for="BalanceCost" class="text-danger" /> | ||
29 | + </div> | ||
30 | + </div> | ||
31 | + <div class="form-group"> | ||
32 | + <label asp-for="BusStationCardId" class="col-md-2 control-label"></label> | ||
33 | + <div class="col-md-10"> | ||
34 | + <input asp-for="BusStationCardId" class="form-control" /> | ||
35 | + <span asp-validation-for="BusStationCardId" class="text-danger" /> | ||
36 | + </div> | ||
37 | + </div> | ||
38 | + <div class="form-group"> | ||
39 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | ||
40 | + <div class="col-md-10"> | ||
41 | + <input asp-for="CrossSectionNumber" class="form-control" /> | ||
42 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | ||
43 | + </div> | ||
44 | + </div> | ||
45 | + <div class="form-group"> | ||
46 | + <label asp-for="DateActual" class="col-md-2 control-label"></label> | ||
47 | + <div class="col-md-10"> | ||
48 | + <input asp-for="DateActual" class="form-control" /> | ||
49 | + <span asp-validation-for="DateActual" class="text-danger" /> | ||
50 | + </div> | ||
51 | + </div> | ||
52 | + <div class="form-group"> | ||
53 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
54 | + <div class="col-md-10"> | ||
55 | + <input asp-for="LocationLeft" class="form-control" /> | ||
56 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + <div class="form-group"> | ||
60 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
61 | + <div class="col-md-10"> | ||
62 | + <input asp-for="LocationRight" class="form-control" /> | ||
63 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
64 | + </div> | ||
65 | + </div> | ||
66 | + <div class="form-group"> | ||
67 | + <label asp-for="PocketAvailability" class="col-md-2 control-label"></label> | ||
68 | + <div class="col-md-10"> | ||
69 | + <input asp-for="PocketAvailability" class="form-control" /> | ||
70 | + <span asp-validation-for="PocketAvailability" class="text-danger" /> | ||
71 | + </div> | ||
72 | + </div> | ||
73 | + <div class="form-group"> | ||
74 | + <label asp-for="Position" class="col-md-2 control-label"></label> | ||
75 | + <div class="col-md-10"> | ||
76 | + <input asp-for="Position" class="form-control" /> | ||
77 | + <span asp-validation-for="Position" class="text-danger" /> | ||
78 | + </div> | ||
79 | + </div> | ||
80 | + <div class="form-group"> | ||
81 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
82 | + <div class="col-md-10"> | ||
83 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
84 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
85 | + </div> | ||
86 | + </div> | ||
87 | + <div class="form-group"> | ||
88 | + <label asp-for="RepairCertificate" class="col-md-2 control-label"></label> | ||
89 | + <div class="col-md-10"> | ||
90 | + <input asp-for="RepairCertificate" class="form-control" /> | ||
91 | + <span asp-validation-for="RepairCertificate" class="text-danger" /> | ||
92 | + </div> | ||
93 | + </div> | ||
94 | + <div class="form-group"> | ||
95 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
96 | + <div class="col-md-10"> | ||
97 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
98 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
99 | + </div> | ||
100 | + </div> | ||
101 | + <div class="form-group"> | ||
102 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | ||
103 | + <div class="col-md-10"> | ||
104 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | ||
105 | + <span asp-validation-for="SettlementId" class="text-danger" /> | ||
106 | + </div> | ||
107 | + </div> | ||
108 | + <div class="form-group"> | ||
109 | + <label asp-for="StateCommonId" class="control-label col-md-2"></label> | ||
110 | + <div class="col-md-10"> | ||
111 | + <select asp-for="StateCommonId" class="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
112 | + <span asp-validation-for="StateCommonId" class="text-danger" /> | ||
113 | + </div> | ||
114 | + </div> | ||
115 | + <div class="form-group"> | ||
116 | + <label asp-for="SurfaceTypeId" class="control-label col-md-2"></label> | ||
117 | + <div class="col-md-10"> | ||
118 | + <select asp-for="SurfaceTypeId" class="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
119 | + <span asp-validation-for="SurfaceTypeId" class="text-danger" /> | ||
120 | + </div> | ||
121 | + </div> | ||
122 | + <div class="form-group"> | ||
123 | + <label asp-for="ToiletAvailability" class="col-md-2 control-label"></label> | ||
124 | + <div class="col-md-10"> | ||
125 | + <input asp-for="ToiletAvailability" class="form-control" /> | ||
126 | + <span asp-validation-for="ToiletAvailability" class="text-danger" /> | ||
127 | + </div> | ||
128 | + </div> | ||
129 | + <div class="form-group"> | ||
130 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | ||
131 | + <div class="col-md-10"> | ||
132 | + <input asp-for="YearBuild" class="form-control" /> | ||
133 | + <span asp-validation-for="YearBuild" class="text-danger" /> | ||
134 | + </div> | ||
135 | + </div> | ||
136 | + <div class="form-group"> | ||
137 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | ||
138 | + <div class="col-md-10"> | ||
139 | + <input asp-for="YearRepair" class="form-control" /> | ||
140 | + <span asp-validation-for="YearRepair" class="text-danger" /> | ||
141 | + </div> | ||
142 | + </div> | ||
143 | + <div class="form-group"> | ||
144 | + <div class="col-md-offset-2 col-md-10"> | ||
145 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
146 | + </div> | ||
147 | + </div> | ||
148 | + </div> | ||
149 | +</form> | ||
150 | + | ||
151 | +<div> | ||
152 | + <a asp-action="Index">Back to List</a> | ||
153 | +</div> |
1 | +++ a/src/Maps/Views/BusStop/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.BusStop> | ||
2 | + | ||
3 | + | ||
4 | +<p> | ||
5 | + <a asp-action="Create">Create New</a> | ||
6 | +</p> | ||
7 | +<table class="table"> | ||
8 | + <thead> | ||
9 | + <tr> | ||
10 | + <th> | ||
11 | + @Html.DisplayNameFor(model => model.AreaLandAvailability) | ||
12 | + </th> | ||
13 | + <th> | ||
14 | + @Html.DisplayNameFor(model => model.AreaStopAvailability) | ||
15 | + </th> | ||
16 | + <th> | ||
17 | + @Html.DisplayNameFor(model => model.BalanceCost) | ||
18 | + </th> | ||
19 | + <th> | ||
20 | + @Html.DisplayNameFor(model => model.BusStationCardId) | ||
21 | + </th> | ||
22 | + <th> | ||
23 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
24 | + </th> | ||
25 | + <th> | ||
26 | + @Html.DisplayNameFor(model => model.DateActual) | ||
27 | + </th> | ||
28 | + <th> | ||
29 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
30 | + </th> | ||
31 | + <th> | ||
32 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
33 | + </th> | ||
34 | + <th> | ||
35 | + @Html.DisplayNameFor(model => model.PocketAvailability) | ||
36 | + </th> | ||
37 | + <th> | ||
38 | + @Html.DisplayNameFor(model => model.Position) | ||
39 | + </th> | ||
40 | + <th> | ||
41 | + @Html.DisplayNameFor(model => model.RepairCertificate) | ||
42 | + </th> | ||
43 | + <th> | ||
44 | + @Html.DisplayNameFor(model => model.ToiletAvailability) | ||
45 | + </th> | ||
46 | + <th> | ||
47 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
48 | + </th> | ||
49 | + <th> | ||
50 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
51 | + </th> | ||
52 | + <th></th> | ||
53 | + </tr> | ||
54 | + </thead> | ||
55 | + <tbody> | ||
56 | +@foreach (var item in Model) { | ||
57 | + <tr> | ||
58 | + <td> | ||
59 | + @Html.DisplayFor(modelItem => item.AreaLandAvailability) | ||
60 | + </td> | ||
61 | + <td> | ||
62 | + @Html.DisplayFor(modelItem => item.AreaStopAvailability) | ||
63 | + </td> | ||
64 | + <td> | ||
65 | + @Html.DisplayFor(modelItem => item.BalanceCost) | ||
66 | + </td> | ||
67 | + <td> | ||
68 | + @Html.DisplayFor(modelItem => item.BusStationCardId) | ||
69 | + </td> | ||
70 | + <td> | ||
71 | + @Html.DisplayFor(modelItem => item.CrossSectionNumber) | ||
72 | + </td> | ||
73 | + <td> | ||
74 | + @Html.DisplayFor(modelItem => item.DateActual) | ||
75 | + </td> | ||
76 | + <td> | ||
77 | + @Html.DisplayFor(modelItem => item.LocationLeft) | ||
78 | + </td> | ||
79 | + <td> | ||
80 | + @Html.DisplayFor(modelItem => item.LocationRight) | ||
81 | + </td> | ||
82 | + <td> | ||
83 | + @Html.DisplayFor(modelItem => item.PocketAvailability) | ||
84 | + </td> | ||
85 | + <td> | ||
86 | + @Html.DisplayFor(modelItem => item.Position) | ||
87 | + </td> | ||
88 | + <td> | ||
89 | + @Html.DisplayFor(modelItem => item.RepairCertificate) | ||
90 | + </td> | ||
91 | + <td> | ||
92 | + @Html.DisplayFor(modelItem => item.ToiletAvailability) | ||
93 | + </td> | ||
94 | + <td> | ||
95 | + @Html.DisplayFor(modelItem => item.YearBuild) | ||
96 | + </td> | ||
97 | + <td> | ||
98 | + @Html.DisplayFor(modelItem => item.YearRepair) | ||
99 | + </td> | ||
100 | + <td> | ||
101 | + <a asp-action="Edit" asp-route-id="@item.BusStopId">Edit</a> | | ||
102 | + <a asp-action="Details" asp-route-id="@item.BusStopId">Details</a> | | ||
103 | + <a asp-action="Delete" asp-route-id="@item.BusStopId">Delete</a> | ||
104 | + </td> | ||
105 | + </tr> | ||
106 | +} | ||
107 | + </tbody> | ||
108 | +</table> | ||
109 | + |
1 | +++ a/src/Maps/Views/CrossSection/Create.cshtml | ||
1 | +@model Maps.Entities.CrossSection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>CrossSection</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Angle" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Angle" class="form-control" /> | ||
25 | + <span asp-validation-for="Angle" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Direction" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Direction" class="form-control" /> | ||
32 | + <span asp-validation-for="Direction" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="DistanceEdge" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="DistanceEdge" class="form-control" /> | ||
39 | + <span asp-validation-for="DistanceEdge" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="LengthSection" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <input asp-for="LengthSection" class="form-control" /> | ||
46 | + <span asp-validation-for="LengthSection" class="text-danger" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="form-group"> | ||
50 | + <label asp-for="LengthSurface" class="col-md-2 control-label"></label> | ||
51 | + <div class="col-md-10"> | ||
52 | + <input asp-for="LengthSurface" class="form-control" /> | ||
53 | + <span asp-validation-for="LengthSurface" class="text-danger" /> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div class="form-group"> | ||
57 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
58 | + <div class="col-md-10"> | ||
59 | + <input asp-for="LocationLeft" class="form-control" /> | ||
60 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
61 | + </div> | ||
62 | + </div> | ||
63 | + <div class="form-group"> | ||
64 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
65 | + <div class="col-md-10"> | ||
66 | + <input asp-for="LocationRight" class="form-control" /> | ||
67 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="form-group"> | ||
71 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
72 | + <div class="col-md-10"> | ||
73 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
74 | + </div> | ||
75 | + </div> | ||
76 | + <div class="form-group"> | ||
77 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
78 | + <div class="col-md-10"> | ||
79 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
80 | + </div> | ||
81 | + </div> | ||
82 | + <div class="form-group"> | ||
83 | + <label asp-for="SafetyAvailability" class="col-md-2 control-label"></label> | ||
84 | + <div class="col-md-10"> | ||
85 | + <input asp-for="SafetyAvailability" class="form-control" /> | ||
86 | + <span asp-validation-for="SafetyAvailability" class="text-danger" /> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + <div class="form-group"> | ||
90 | + <label asp-for="StateCommonId" class="col-md-2 control-label"></label> | ||
91 | + <div class="col-md-10"> | ||
92 | + <select asp-for="StateCommonId" class ="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
93 | + </div> | ||
94 | + </div> | ||
95 | + <div class="form-group"> | ||
96 | + <label asp-for="SurfaceTypeId" class="col-md-2 control-label"></label> | ||
97 | + <div class="col-md-10"> | ||
98 | + <select asp-for="SurfaceTypeId" class ="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
99 | + </div> | ||
100 | + </div> | ||
101 | + <div class="form-group"> | ||
102 | + <label asp-for="TubeAvailability" class="col-md-2 control-label"></label> | ||
103 | + <div class="col-md-10"> | ||
104 | + <input asp-for="TubeAvailability" class="form-control" /> | ||
105 | + <span asp-validation-for="TubeAvailability" class="text-danger" /> | ||
106 | + </div> | ||
107 | + </div> | ||
108 | + <div class="form-group"> | ||
109 | + <label asp-for="Width" class="col-md-2 control-label"></label> | ||
110 | + <div class="col-md-10"> | ||
111 | + <input asp-for="Width" class="form-control" /> | ||
112 | + <span asp-validation-for="Width" class="text-danger" /> | ||
113 | + </div> | ||
114 | + </div> | ||
115 | + <div class="form-group"> | ||
116 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | ||
117 | + <div class="col-md-10"> | ||
118 | + <input asp-for="YearBuild" class="form-control" /> | ||
119 | + <span asp-validation-for="YearBuild" class="text-danger" /> | ||
120 | + </div> | ||
121 | + </div> | ||
122 | + <div class="form-group"> | ||
123 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | ||
124 | + <div class="col-md-10"> | ||
125 | + <input asp-for="YearRepair" class="form-control" /> | ||
126 | + <span asp-validation-for="YearRepair" class="text-danger" /> | ||
127 | + </div> | ||
128 | + </div> | ||
129 | + <div class="form-group"> | ||
130 | + <div class="col-md-offset-2 col-md-10"> | ||
131 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + </div> | ||
135 | +</form> | ||
136 | + | ||
137 | +<div> | ||
138 | + <a asp-action="Index">Back to List</a> | ||
139 | +</div> | ||
140 | + | ||
141 | +</body> | ||
142 | +</html> |
1 | +++ a/src/Maps/Views/CrossSection/Delete.cshtml | ||
1 | +@model Maps.Entities.CrossSection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>CrossSection</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Angle) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Angle) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Direction) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Direction) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.DistanceEdge) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.DistanceEdge) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.LengthSection) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.LengthSection) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.LengthSurface) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.LengthSurface) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.LocationLeft) | ||
56 | + </dd> | ||
57 | + <dt> | ||
58 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
59 | + </dt> | ||
60 | + <dd> | ||
61 | + @Html.DisplayFor(model => model.LocationRight) | ||
62 | + </dd> | ||
63 | + <dt> | ||
64 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | ||
65 | + </dt> | ||
66 | + <dd> | ||
67 | + @Html.DisplayFor(model => model.SafetyAvailability) | ||
68 | + </dd> | ||
69 | + <dt> | ||
70 | + @Html.DisplayNameFor(model => model.TubeAvailability) | ||
71 | + </dt> | ||
72 | + <dd> | ||
73 | + @Html.DisplayFor(model => model.TubeAvailability) | ||
74 | + </dd> | ||
75 | + <dt> | ||
76 | + @Html.DisplayNameFor(model => model.Width) | ||
77 | + </dt> | ||
78 | + <dd> | ||
79 | + @Html.DisplayFor(model => model.Width) | ||
80 | + </dd> | ||
81 | + <dt> | ||
82 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
83 | + </dt> | ||
84 | + <dd> | ||
85 | + @Html.DisplayFor(model => model.YearBuild) | ||
86 | + </dd> | ||
87 | + <dt> | ||
88 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
89 | + </dt> | ||
90 | + <dd> | ||
91 | + @Html.DisplayFor(model => model.YearRepair) | ||
92 | + </dd> | ||
93 | + </dl> | ||
94 | + | ||
95 | + <form asp-action="Delete"> | ||
96 | + <div class="form-actions no-color"> | ||
97 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
98 | + <a asp-action="Index">Back to List</a> | ||
99 | + </div> | ||
100 | + </form> | ||
101 | +</div> | ||
102 | +</body> | ||
103 | +</html> |
1 | +++ a/src/Maps/Views/CrossSection/Details.cshtml | ||
1 | +@model Maps.Entities.CrossSection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>CrossSection</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Angle) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Angle) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Direction) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Direction) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.DistanceEdge) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.DistanceEdge) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.LengthSection) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.LengthSection) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.LengthSurface) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.LengthSurface) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.LocationLeft) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.LocationRight) | ||
61 | + </dd> | ||
62 | + <dt> | ||
63 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | ||
64 | + </dt> | ||
65 | + <dd> | ||
66 | + @Html.DisplayFor(model => model.SafetyAvailability) | ||
67 | + </dd> | ||
68 | + <dt> | ||
69 | + @Html.DisplayNameFor(model => model.TubeAvailability) | ||
70 | + </dt> | ||
71 | + <dd> | ||
72 | + @Html.DisplayFor(model => model.TubeAvailability) | ||
73 | + </dd> | ||
74 | + <dt> | ||
75 | + @Html.DisplayNameFor(model => model.Width) | ||
76 | + </dt> | ||
77 | + <dd> | ||
78 | + @Html.DisplayFor(model => model.Width) | ||
79 | + </dd> | ||
80 | + <dt> | ||
81 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
82 | + </dt> | ||
83 | + <dd> | ||
84 | + @Html.DisplayFor(model => model.YearBuild) | ||
85 | + </dd> | ||
86 | + <dt> | ||
87 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
88 | + </dt> | ||
89 | + <dd> | ||
90 | + @Html.DisplayFor(model => model.YearRepair) | ||
91 | + </dd> | ||
92 | + </dl> | ||
93 | +</div> | ||
94 | +<div> | ||
95 | + <a asp-action="Edit" asp-route-id="@Model.CrossSectionId">Edit</a> | | ||
96 | + <a asp-action="Index">Back to List</a> | ||
97 | +</div> | ||
98 | +</body> | ||
99 | +</html> |
1 | +++ a/src/Maps/Views/CrossSection/Edit.cshtml | ||
1 | +@model Maps.Entities.CrossSection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>CrossSection</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="CrossSectionId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Angle" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Angle" class="form-control" /> | ||
26 | + <span asp-validation-for="Angle" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Direction" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Direction" class="form-control" /> | ||
33 | + <span asp-validation-for="Direction" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="DistanceEdge" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="DistanceEdge" class="form-control" /> | ||
40 | + <span asp-validation-for="DistanceEdge" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="LengthSection" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="LengthSection" class="form-control" /> | ||
47 | + <span asp-validation-for="LengthSection" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="LengthSurface" class="col-md-2 control-label"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <input asp-for="LengthSurface" class="form-control" /> | ||
54 | + <span asp-validation-for="LengthSurface" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <input asp-for="LocationLeft" class="form-control" /> | ||
61 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="LocationRight" class="form-control" /> | ||
68 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
75 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="SafetyAvailability" class="col-md-2 control-label"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <input asp-for="SafetyAvailability" class="form-control" /> | ||
89 | + <span asp-validation-for="SafetyAvailability" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="StateCommonId" class="control-label col-md-2"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <select asp-for="StateCommonId" class="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
96 | + <span asp-validation-for="StateCommonId" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <label asp-for="SurfaceTypeId" class="control-label col-md-2"></label> | ||
101 | + <div class="col-md-10"> | ||
102 | + <select asp-for="SurfaceTypeId" class="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
103 | + <span asp-validation-for="SurfaceTypeId" class="text-danger" /> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + <div class="form-group"> | ||
107 | + <label asp-for="TubeAvailability" class="col-md-2 control-label"></label> | ||
108 | + <div class="col-md-10"> | ||
109 | + <input asp-for="TubeAvailability" class="form-control" /> | ||
110 | + <span asp-validation-for="TubeAvailability" class="text-danger" /> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + <div class="form-group"> | ||
114 | + <label asp-for="Width" class="col-md-2 control-label"></label> | ||
115 | + <div class="col-md-10"> | ||
116 | + <input asp-for="Width" class="form-control" /> | ||
117 | + <span asp-validation-for="Width" class="text-danger" /> | ||
118 | + </div> | ||
119 | + </div> | ||
120 | + <div class="form-group"> | ||
121 | + <label asp-for="YearBuild" class="col-md-2 control-label"></label> | ||
122 | + <div class="col-md-10"> | ||
123 | + <input asp-for="YearBuild" class="form-control" /> | ||
124 | + <span asp-validation-for="YearBuild" class="text-danger" /> | ||
125 | + </div> | ||
126 | + </div> | ||
127 | + <div class="form-group"> | ||
128 | + <label asp-for="YearRepair" class="col-md-2 control-label"></label> | ||
129 | + <div class="col-md-10"> | ||
130 | + <input asp-for="YearRepair" class="form-control" /> | ||
131 | + <span asp-validation-for="YearRepair" class="text-danger" /> | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + <div class="form-group"> | ||
135 | + <div class="col-md-offset-2 col-md-10"> | ||
136 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
137 | + </div> | ||
138 | + </div> | ||
139 | + </div> | ||
140 | +</form> | ||
141 | + | ||
142 | +<div> | ||
143 | + <a asp-action="Index">Back to List</a> | ||
144 | +</div> | ||
145 | + | ||
146 | +</body> | ||
147 | +</html> |
1 | +++ a/src/Maps/Views/CrossSection/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.CrossSection> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Angle) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Direction) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.DistanceEdge) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.LengthSection) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.LengthSurface) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
38 | + </th> | ||
39 | + <th> | ||
40 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
41 | + </th> | ||
42 | + <th> | ||
43 | + @Html.DisplayNameFor(model => model.SafetyAvailability) | ||
44 | + </th> | ||
45 | + <th> | ||
46 | + @Html.DisplayNameFor(model => model.TubeAvailability) | ||
47 | + </th> | ||
48 | + <th> | ||
49 | + @Html.DisplayNameFor(model => model.Width) | ||
50 | + </th> | ||
51 | + <th> | ||
52 | + @Html.DisplayNameFor(model => model.YearBuild) | ||
53 | + </th> | ||
54 | + <th> | ||
55 | + @Html.DisplayNameFor(model => model.YearRepair) | ||
56 | + </th> | ||
57 | + <th></th> | ||
58 | + </tr> | ||
59 | + </thead> | ||
60 | + <tbody> | ||
61 | +@foreach (var item in Model) { | ||
62 | + <tr> | ||
63 | + <td> | ||
64 | + @Html.DisplayFor(modelItem => item.Angle) | ||
65 | + </td> | ||
66 | + <td> | ||
67 | + @Html.DisplayFor(modelItem => item.Direction) | ||
68 | + </td> | ||
69 | + <td> | ||
70 | + @Html.DisplayFor(modelItem => item.DistanceEdge) | ||
71 | + </td> | ||
72 | + <td> | ||
73 | + @Html.DisplayFor(modelItem => item.LengthSection) | ||
74 | + </td> | ||
75 | + <td> | ||
76 | + @Html.DisplayFor(modelItem => item.LengthSurface) | ||
77 | + </td> | ||
78 | + <td> | ||
79 | + @Html.DisplayFor(modelItem => item.LocationLeft) | ||
80 | + </td> | ||
81 | + <td> | ||
82 | + @Html.DisplayFor(modelItem => item.LocationRight) | ||
83 | + </td> | ||
84 | + <td> | ||
85 | + @Html.DisplayFor(modelItem => item.SafetyAvailability) | ||
86 | + </td> | ||
87 | + <td> | ||
88 | + @Html.DisplayFor(modelItem => item.TubeAvailability) | ||
89 | + </td> | ||
90 | + <td> | ||
91 | + @Html.DisplayFor(modelItem => item.Width) | ||
92 | + </td> | ||
93 | + <td> | ||
94 | + @Html.DisplayFor(modelItem => item.YearBuild) | ||
95 | + </td> | ||
96 | + <td> | ||
97 | + @Html.DisplayFor(modelItem => item.YearRepair) | ||
98 | + </td> | ||
99 | + <td> | ||
100 | + <a asp-action="Edit" asp-route-id="@item.CrossSectionId">Edit</a> | | ||
101 | + <a asp-action="Details" asp-route-id="@item.CrossSectionId">Details</a> | | ||
102 | + <a asp-action="Delete" asp-route-id="@item.CrossSectionId">Delete</a> | ||
103 | + </td> | ||
104 | + </tr> | ||
105 | +} | ||
106 | + </tbody> | ||
107 | +</table> | ||
108 | +</body> | ||
109 | +</html> |
1 | +++ a/src/Maps/Views/DepartmentAffiliation/Create.cshtml | ||
1 | +@model Maps.Entities.DepartmentAffiliation | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>DepartmentAffiliation</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Name" class="form-control" /> | ||
25 | + <span asp-validation-for="Name" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <div class="col-md-offset-2 col-md-10"> | ||
30 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | +</form> | ||
35 | + | ||
36 | +<div> | ||
37 | + <a asp-action="Index">Back to List</a> | ||
38 | +</div> | ||
39 | + | ||
40 | +</body> | ||
41 | +</html> |
1 | +++ a/src/Maps/Views/DepartmentAffiliation/Delete.cshtml | ||
1 | +@model Maps.Entities.DepartmentAffiliation | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>DepartmentAffiliation</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Name) | ||
26 | + </dd> | ||
27 | + </dl> | ||
28 | + | ||
29 | + <form asp-action="Delete"> | ||
30 | + <div class="form-actions no-color"> | ||
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
32 | + <a asp-action="Index">Back to List</a> | ||
33 | + </div> | ||
34 | + </form> | ||
35 | +</div> | ||
36 | +</body> | ||
37 | +</html> |
src/Maps/Views/DepartmentAffiliation/Details.cshtml
0 → 100755
1 | +++ a/src/Maps/Views/DepartmentAffiliation/Details.cshtml | ||
1 | +@model Maps.Entities.DepartmentAffiliation | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>DepartmentAffiliation</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Name) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Name) | ||
25 | + </dd> | ||
26 | + </dl> | ||
27 | +</div> | ||
28 | +<div> | ||
29 | + <a asp-action="Edit" asp-route-id="@Model.DepartmentAffiliationId">Edit</a> | | ||
30 | + <a asp-action="Index">Back to List</a> | ||
31 | +</div> | ||
32 | +</body> | ||
33 | +</html> |
1 | +++ a/src/Maps/Views/DepartmentAffiliation/Edit.cshtml | ||
1 | +@model Maps.Entities.DepartmentAffiliation | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>DepartmentAffiliation</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="DepartmentAffiliationId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Name" class="form-control" /> | ||
26 | + <span asp-validation-for="Name" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <div class="col-md-offset-2 col-md-10"> | ||
31 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | +</form> | ||
36 | + | ||
37 | +<div> | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | +</div> | ||
40 | + | ||
41 | +</body> | ||
42 | +</html> |
1 | +++ a/src/Maps/Views/DepartmentAffiliation/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.DepartmentAffiliation> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </th> | ||
24 | + <th></th> | ||
25 | + </tr> | ||
26 | + </thead> | ||
27 | + <tbody> | ||
28 | +@foreach (var item in Model) { | ||
29 | + <tr> | ||
30 | + <td> | ||
31 | + @Html.DisplayFor(modelItem => item.Name) | ||
32 | + </td> | ||
33 | + <td> | ||
34 | + <a asp-action="Edit" asp-route-id="@item.DepartmentAffiliationId">Edit</a> | | ||
35 | + <a asp-action="Details" asp-route-id="@item.DepartmentAffiliationId">Details</a> | | ||
36 | + <a asp-action="Delete" asp-route-id="@item.DepartmentAffiliationId">Delete</a> | ||
37 | + </td> | ||
38 | + </tr> | ||
39 | +} | ||
40 | + </tbody> | ||
41 | +</table> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/FlowIntensity/Create.cshtml | ||
1 | +@model Maps.Entities.FlowIntensity | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>FlowIntensity</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="DateAdd" class="form-control" /> | ||
32 | + <span asp-validation-for="DateAdd" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="End" class="form-control" /> | ||
39 | + <span asp-validation-for="End" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="IntensityBus" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <input asp-for="IntensityBus" class="form-control" /> | ||
46 | + <span asp-validation-for="IntensityBus" class="text-danger" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="form-group"> | ||
50 | + <label asp-for="IntensityBusCoupled" class="col-md-2 control-label"></label> | ||
51 | + <div class="col-md-10"> | ||
52 | + <input asp-for="IntensityBusCoupled" class="form-control" /> | ||
53 | + <span asp-validation-for="IntensityBusCoupled" class="text-danger" /> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div class="form-group"> | ||
57 | + <label asp-for="IntensityCar" class="col-md-2 control-label"></label> | ||
58 | + <div class="col-md-10"> | ||
59 | + <input asp-for="IntensityCar" class="form-control" /> | ||
60 | + <span asp-validation-for="IntensityCar" class="text-danger" /> | ||
61 | + </div> | ||
62 | + </div> | ||
63 | + <div class="form-group"> | ||
64 | + <label asp-for="IntensityIncrease" class="col-md-2 control-label"></label> | ||
65 | + <div class="col-md-10"> | ||
66 | + <input asp-for="IntensityIncrease" class="form-control" /> | ||
67 | + <span asp-validation-for="IntensityIncrease" class="text-danger" /> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="form-group"> | ||
71 | + <label asp-for="IntensityLorryThirty" class="col-md-2 control-label"></label> | ||
72 | + <div class="col-md-10"> | ||
73 | + <input asp-for="IntensityLorryThirty" class="form-control" /> | ||
74 | + <span asp-validation-for="IntensityLorryThirty" class="text-danger" /> | ||
75 | + </div> | ||
76 | + </div> | ||
77 | + <div class="form-group"> | ||
78 | + <label asp-for="IntensityLorryTwelve" class="col-md-2 control-label"></label> | ||
79 | + <div class="col-md-10"> | ||
80 | + <input asp-for="IntensityLorryTwelve" class="form-control" /> | ||
81 | + <span asp-validation-for="IntensityLorryTwelve" class="text-danger" /> | ||
82 | + </div> | ||
83 | + </div> | ||
84 | + <div class="form-group"> | ||
85 | + <label asp-for="IntensityLorryTwelveTwenty" class="col-md-2 control-label"></label> | ||
86 | + <div class="col-md-10"> | ||
87 | + <input asp-for="IntensityLorryTwelveTwenty" class="form-control" /> | ||
88 | + <span asp-validation-for="IntensityLorryTwelveTwenty" class="text-danger" /> | ||
89 | + </div> | ||
90 | + </div> | ||
91 | + <div class="form-group"> | ||
92 | + <label asp-for="IntensityLorryTwentyThirty" class="col-md-2 control-label"></label> | ||
93 | + <div class="col-md-10"> | ||
94 | + <input asp-for="IntensityLorryTwentyThirty" class="form-control" /> | ||
95 | + <span asp-validation-for="IntensityLorryTwentyThirty" class="text-danger" /> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | + <div class="form-group"> | ||
99 | + <label asp-for="IntensityMoto" class="col-md-2 control-label"></label> | ||
100 | + <div class="col-md-10"> | ||
101 | + <input asp-for="IntensityMoto" class="form-control" /> | ||
102 | + <span asp-validation-for="IntensityMoto" class="text-danger" /> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | + <div class="form-group"> | ||
106 | + <label asp-for="IntensityMotoSidecar" class="col-md-2 control-label"></label> | ||
107 | + <div class="col-md-10"> | ||
108 | + <input asp-for="IntensityMotoSidecar" class="form-control" /> | ||
109 | + <span asp-validation-for="IntensityMotoSidecar" class="text-danger" /> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | + <div class="form-group"> | ||
113 | + <label asp-for="IntensityTotal" class="col-md-2 control-label"></label> | ||
114 | + <div class="col-md-10"> | ||
115 | + <input asp-for="IntensityTotal" class="form-control" /> | ||
116 | + <span asp-validation-for="IntensityTotal" class="text-danger" /> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | + <div class="form-group"> | ||
120 | + <label asp-for="IntensityTractorOverTen" class="col-md-2 control-label"></label> | ||
121 | + <div class="col-md-10"> | ||
122 | + <input asp-for="IntensityTractorOverTen" class="form-control" /> | ||
123 | + <span asp-validation-for="IntensityTractorOverTen" class="text-danger" /> | ||
124 | + </div> | ||
125 | + </div> | ||
126 | + <div class="form-group"> | ||
127 | + <label asp-for="IntensityTractorUnderTen" class="col-md-2 control-label"></label> | ||
128 | + <div class="col-md-10"> | ||
129 | + <input asp-for="IntensityTractorUnderTen" class="form-control" /> | ||
130 | + <span asp-validation-for="IntensityTractorUnderTen" class="text-danger" /> | ||
131 | + </div> | ||
132 | + </div> | ||
133 | + <div class="form-group"> | ||
134 | + <label asp-for="IntensityTruckEightFourteen" class="col-md-2 control-label"></label> | ||
135 | + <div class="col-md-10"> | ||
136 | + <input asp-for="IntensityTruckEightFourteen" class="form-control" /> | ||
137 | + <span asp-validation-for="IntensityTruckEightFourteen" class="text-danger" /> | ||
138 | + </div> | ||
139 | + </div> | ||
140 | + <div class="form-group"> | ||
141 | + <label asp-for="IntensityTruckFourteen" class="col-md-2 control-label"></label> | ||
142 | + <div class="col-md-10"> | ||
143 | + <input asp-for="IntensityTruckFourteen" class="form-control" /> | ||
144 | + <span asp-validation-for="IntensityTruckFourteen" class="text-danger" /> | ||
145 | + </div> | ||
146 | + </div> | ||
147 | + <div class="form-group"> | ||
148 | + <label asp-for="IntensityTruckSixEight" class="col-md-2 control-label"></label> | ||
149 | + <div class="col-md-10"> | ||
150 | + <input asp-for="IntensityTruckSixEight" class="form-control" /> | ||
151 | + <span asp-validation-for="IntensityTruckSixEight" class="text-danger" /> | ||
152 | + </div> | ||
153 | + </div> | ||
154 | + <div class="form-group"> | ||
155 | + <label asp-for="IntensityTruckTwo" class="col-md-2 control-label"></label> | ||
156 | + <div class="col-md-10"> | ||
157 | + <input asp-for="IntensityTruckTwo" class="form-control" /> | ||
158 | + <span asp-validation-for="IntensityTruckTwo" class="text-danger" /> | ||
159 | + </div> | ||
160 | + </div> | ||
161 | + <div class="form-group"> | ||
162 | + <label asp-for="IntensityTruckTwoSix" class="col-md-2 control-label"></label> | ||
163 | + <div class="col-md-10"> | ||
164 | + <input asp-for="IntensityTruckTwoSix" class="form-control" /> | ||
165 | + <span asp-validation-for="IntensityTruckTwoSix" class="text-danger" /> | ||
166 | + </div> | ||
167 | + </div> | ||
168 | + <div class="form-group"> | ||
169 | + <label asp-for="Location" class="col-md-2 control-label"></label> | ||
170 | + <div class="col-md-10"> | ||
171 | + <input asp-for="Location" class="form-control" /> | ||
172 | + <span asp-validation-for="Location" class="text-danger" /> | ||
173 | + </div> | ||
174 | + </div> | ||
175 | + <div class="form-group"> | ||
176 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
177 | + <div class="col-md-10"> | ||
178 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
179 | + </div> | ||
180 | + </div> | ||
181 | + <div class="form-group"> | ||
182 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | ||
183 | + <div class="col-md-10"> | ||
184 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
185 | + </div> | ||
186 | + </div> | ||
187 | + <div class="form-group"> | ||
188 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
189 | + <div class="col-md-10"> | ||
190 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
191 | + </div> | ||
192 | + </div> | ||
193 | + <div class="form-group"> | ||
194 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | ||
195 | + <div class="col-md-10"> | ||
196 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | ||
197 | + </div> | ||
198 | + </div> | ||
199 | + <div class="form-group"> | ||
200 | + <div class="col-md-offset-2 col-md-10"> | ||
201 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
202 | + </div> | ||
203 | + </div> | ||
204 | + </div> | ||
205 | +</form> | ||
206 | + | ||
207 | +<div> | ||
208 | + <a asp-action="Index">Back to List</a> | ||
209 | +</div> | ||
210 | + | ||
211 | +</body> | ||
212 | +</html> |
1 | +++ a/src/Maps/Views/FlowIntensity/Delete.cshtml | ||
1 | +@model Maps.Entities.FlowIntensity | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>FlowIntensity</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.DateAdd) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.End) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.End) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.IntensityBus) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.IntensityBus) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.IntensityBusCoupled) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.IntensityCar) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.IntensityCar) | ||
56 | + </dd> | ||
57 | + <dt> | ||
58 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | ||
59 | + </dt> | ||
60 | + <dd> | ||
61 | + @Html.DisplayFor(model => model.IntensityIncrease) | ||
62 | + </dd> | ||
63 | + <dt> | ||
64 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | ||
65 | + </dt> | ||
66 | + <dd> | ||
67 | + @Html.DisplayFor(model => model.IntensityLorryThirty) | ||
68 | + </dd> | ||
69 | + <dt> | ||
70 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | ||
71 | + </dt> | ||
72 | + <dd> | ||
73 | + @Html.DisplayFor(model => model.IntensityLorryTwelve) | ||
74 | + </dd> | ||
75 | + <dt> | ||
76 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | ||
77 | + </dt> | ||
78 | + <dd> | ||
79 | + @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) | ||
80 | + </dd> | ||
81 | + <dt> | ||
82 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | ||
83 | + </dt> | ||
84 | + <dd> | ||
85 | + @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) | ||
86 | + </dd> | ||
87 | + <dt> | ||
88 | + @Html.DisplayNameFor(model => model.IntensityMoto) | ||
89 | + </dt> | ||
90 | + <dd> | ||
91 | + @Html.DisplayFor(model => model.IntensityMoto) | ||
92 | + </dd> | ||
93 | + <dt> | ||
94 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | ||
95 | + </dt> | ||
96 | + <dd> | ||
97 | + @Html.DisplayFor(model => model.IntensityMotoSidecar) | ||
98 | + </dd> | ||
99 | + <dt> | ||
100 | + @Html.DisplayNameFor(model => model.IntensityTotal) | ||
101 | + </dt> | ||
102 | + <dd> | ||
103 | + @Html.DisplayFor(model => model.IntensityTotal) | ||
104 | + </dd> | ||
105 | + <dt> | ||
106 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | ||
107 | + </dt> | ||
108 | + <dd> | ||
109 | + @Html.DisplayFor(model => model.IntensityTractorOverTen) | ||
110 | + </dd> | ||
111 | + <dt> | ||
112 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | ||
113 | + </dt> | ||
114 | + <dd> | ||
115 | + @Html.DisplayFor(model => model.IntensityTractorUnderTen) | ||
116 | + </dd> | ||
117 | + <dt> | ||
118 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | ||
119 | + </dt> | ||
120 | + <dd> | ||
121 | + @Html.DisplayFor(model => model.IntensityTruckEightFourteen) | ||
122 | + </dd> | ||
123 | + <dt> | ||
124 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | ||
125 | + </dt> | ||
126 | + <dd> | ||
127 | + @Html.DisplayFor(model => model.IntensityTruckFourteen) | ||
128 | + </dd> | ||
129 | + <dt> | ||
130 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | ||
131 | + </dt> | ||
132 | + <dd> | ||
133 | + @Html.DisplayFor(model => model.IntensityTruckSixEight) | ||
134 | + </dd> | ||
135 | + <dt> | ||
136 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | ||
137 | + </dt> | ||
138 | + <dd> | ||
139 | + @Html.DisplayFor(model => model.IntensityTruckTwo) | ||
140 | + </dd> | ||
141 | + <dt> | ||
142 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | ||
143 | + </dt> | ||
144 | + <dd> | ||
145 | + @Html.DisplayFor(model => model.IntensityTruckTwoSix) | ||
146 | + </dd> | ||
147 | + <dt> | ||
148 | + @Html.DisplayNameFor(model => model.Location) | ||
149 | + </dt> | ||
150 | + <dd> | ||
151 | + @Html.DisplayFor(model => model.Location) | ||
152 | + </dd> | ||
153 | + </dl> | ||
154 | + | ||
155 | + <form asp-action="Delete"> | ||
156 | + <div class="form-actions no-color"> | ||
157 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
158 | + <a asp-action="Index">Back to List</a> | ||
159 | + </div> | ||
160 | + </form> | ||
161 | +</div> | ||
162 | +</body> | ||
163 | +</html> |
1 | +++ a/src/Maps/Views/FlowIntensity/Details.cshtml | ||
1 | +@model Maps.Entities.FlowIntensity | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>FlowIntensity</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.DateAdd) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.End) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.End) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.IntensityBus) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.IntensityBus) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.IntensityBusCoupled) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.IntensityCar) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.IntensityCar) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.IntensityIncrease) | ||
61 | + </dd> | ||
62 | + <dt> | ||
63 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | ||
64 | + </dt> | ||
65 | + <dd> | ||
66 | + @Html.DisplayFor(model => model.IntensityLorryThirty) | ||
67 | + </dd> | ||
68 | + <dt> | ||
69 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | ||
70 | + </dt> | ||
71 | + <dd> | ||
72 | + @Html.DisplayFor(model => model.IntensityLorryTwelve) | ||
73 | + </dd> | ||
74 | + <dt> | ||
75 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | ||
76 | + </dt> | ||
77 | + <dd> | ||
78 | + @Html.DisplayFor(model => model.IntensityLorryTwelveTwenty) | ||
79 | + </dd> | ||
80 | + <dt> | ||
81 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | ||
82 | + </dt> | ||
83 | + <dd> | ||
84 | + @Html.DisplayFor(model => model.IntensityLorryTwentyThirty) | ||
85 | + </dd> | ||
86 | + <dt> | ||
87 | + @Html.DisplayNameFor(model => model.IntensityMoto) | ||
88 | + </dt> | ||
89 | + <dd> | ||
90 | + @Html.DisplayFor(model => model.IntensityMoto) | ||
91 | + </dd> | ||
92 | + <dt> | ||
93 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | ||
94 | + </dt> | ||
95 | + <dd> | ||
96 | + @Html.DisplayFor(model => model.IntensityMotoSidecar) | ||
97 | + </dd> | ||
98 | + <dt> | ||
99 | + @Html.DisplayNameFor(model => model.IntensityTotal) | ||
100 | + </dt> | ||
101 | + <dd> | ||
102 | + @Html.DisplayFor(model => model.IntensityTotal) | ||
103 | + </dd> | ||
104 | + <dt> | ||
105 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | ||
106 | + </dt> | ||
107 | + <dd> | ||
108 | + @Html.DisplayFor(model => model.IntensityTractorOverTen) | ||
109 | + </dd> | ||
110 | + <dt> | ||
111 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | ||
112 | + </dt> | ||
113 | + <dd> | ||
114 | + @Html.DisplayFor(model => model.IntensityTractorUnderTen) | ||
115 | + </dd> | ||
116 | + <dt> | ||
117 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | ||
118 | + </dt> | ||
119 | + <dd> | ||
120 | + @Html.DisplayFor(model => model.IntensityTruckEightFourteen) | ||
121 | + </dd> | ||
122 | + <dt> | ||
123 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | ||
124 | + </dt> | ||
125 | + <dd> | ||
126 | + @Html.DisplayFor(model => model.IntensityTruckFourteen) | ||
127 | + </dd> | ||
128 | + <dt> | ||
129 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | ||
130 | + </dt> | ||
131 | + <dd> | ||
132 | + @Html.DisplayFor(model => model.IntensityTruckSixEight) | ||
133 | + </dd> | ||
134 | + <dt> | ||
135 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | ||
136 | + </dt> | ||
137 | + <dd> | ||
138 | + @Html.DisplayFor(model => model.IntensityTruckTwo) | ||
139 | + </dd> | ||
140 | + <dt> | ||
141 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | ||
142 | + </dt> | ||
143 | + <dd> | ||
144 | + @Html.DisplayFor(model => model.IntensityTruckTwoSix) | ||
145 | + </dd> | ||
146 | + <dt> | ||
147 | + @Html.DisplayNameFor(model => model.Location) | ||
148 | + </dt> | ||
149 | + <dd> | ||
150 | + @Html.DisplayFor(model => model.Location) | ||
151 | + </dd> | ||
152 | + </dl> | ||
153 | +</div> | ||
154 | +<div> | ||
155 | + <a asp-action="Edit" asp-route-id="@Model.FlowIntensityId">Edit</a> | | ||
156 | + <a asp-action="Index">Back to List</a> | ||
157 | +</div> | ||
158 | +</body> | ||
159 | +</html> |
1 | +++ a/src/Maps/Views/FlowIntensity/Edit.cshtml | ||
1 | +@model Maps.Entities.FlowIntensity | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>FlowIntensity</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="FlowIntensityId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="DateAdd" class="form-control" /> | ||
33 | + <span asp-validation-for="DateAdd" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="End" class="form-control" /> | ||
40 | + <span asp-validation-for="End" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="IntensityBus" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="IntensityBus" class="form-control" /> | ||
47 | + <span asp-validation-for="IntensityBus" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="IntensityBusCoupled" class="col-md-2 control-label"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <input asp-for="IntensityBusCoupled" class="form-control" /> | ||
54 | + <span asp-validation-for="IntensityBusCoupled" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="IntensityCar" class="col-md-2 control-label"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <input asp-for="IntensityCar" class="form-control" /> | ||
61 | + <span asp-validation-for="IntensityCar" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="IntensityIncrease" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="IntensityIncrease" class="form-control" /> | ||
68 | + <span asp-validation-for="IntensityIncrease" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="IntensityLorryThirty" class="col-md-2 control-label"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <input asp-for="IntensityLorryThirty" class="form-control" /> | ||
75 | + <span asp-validation-for="IntensityLorryThirty" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="IntensityLorryTwelve" class="col-md-2 control-label"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <input asp-for="IntensityLorryTwelve" class="form-control" /> | ||
82 | + <span asp-validation-for="IntensityLorryTwelve" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="IntensityLorryTwelveTwenty" class="col-md-2 control-label"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <input asp-for="IntensityLorryTwelveTwenty" class="form-control" /> | ||
89 | + <span asp-validation-for="IntensityLorryTwelveTwenty" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="IntensityLorryTwentyThirty" class="col-md-2 control-label"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <input asp-for="IntensityLorryTwentyThirty" class="form-control" /> | ||
96 | + <span asp-validation-for="IntensityLorryTwentyThirty" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <label asp-for="IntensityMoto" class="col-md-2 control-label"></label> | ||
101 | + <div class="col-md-10"> | ||
102 | + <input asp-for="IntensityMoto" class="form-control" /> | ||
103 | + <span asp-validation-for="IntensityMoto" class="text-danger" /> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + <div class="form-group"> | ||
107 | + <label asp-for="IntensityMotoSidecar" class="col-md-2 control-label"></label> | ||
108 | + <div class="col-md-10"> | ||
109 | + <input asp-for="IntensityMotoSidecar" class="form-control" /> | ||
110 | + <span asp-validation-for="IntensityMotoSidecar" class="text-danger" /> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + <div class="form-group"> | ||
114 | + <label asp-for="IntensityTotal" class="col-md-2 control-label"></label> | ||
115 | + <div class="col-md-10"> | ||
116 | + <input asp-for="IntensityTotal" class="form-control" /> | ||
117 | + <span asp-validation-for="IntensityTotal" class="text-danger" /> | ||
118 | + </div> | ||
119 | + </div> | ||
120 | + <div class="form-group"> | ||
121 | + <label asp-for="IntensityTractorOverTen" class="col-md-2 control-label"></label> | ||
122 | + <div class="col-md-10"> | ||
123 | + <input asp-for="IntensityTractorOverTen" class="form-control" /> | ||
124 | + <span asp-validation-for="IntensityTractorOverTen" class="text-danger" /> | ||
125 | + </div> | ||
126 | + </div> | ||
127 | + <div class="form-group"> | ||
128 | + <label asp-for="IntensityTractorUnderTen" class="col-md-2 control-label"></label> | ||
129 | + <div class="col-md-10"> | ||
130 | + <input asp-for="IntensityTractorUnderTen" class="form-control" /> | ||
131 | + <span asp-validation-for="IntensityTractorUnderTen" class="text-danger" /> | ||
132 | + </div> | ||
133 | + </div> | ||
134 | + <div class="form-group"> | ||
135 | + <label asp-for="IntensityTruckEightFourteen" class="col-md-2 control-label"></label> | ||
136 | + <div class="col-md-10"> | ||
137 | + <input asp-for="IntensityTruckEightFourteen" class="form-control" /> | ||
138 | + <span asp-validation-for="IntensityTruckEightFourteen" class="text-danger" /> | ||
139 | + </div> | ||
140 | + </div> | ||
141 | + <div class="form-group"> | ||
142 | + <label asp-for="IntensityTruckFourteen" class="col-md-2 control-label"></label> | ||
143 | + <div class="col-md-10"> | ||
144 | + <input asp-for="IntensityTruckFourteen" class="form-control" /> | ||
145 | + <span asp-validation-for="IntensityTruckFourteen" class="text-danger" /> | ||
146 | + </div> | ||
147 | + </div> | ||
148 | + <div class="form-group"> | ||
149 | + <label asp-for="IntensityTruckSixEight" class="col-md-2 control-label"></label> | ||
150 | + <div class="col-md-10"> | ||
151 | + <input asp-for="IntensityTruckSixEight" class="form-control" /> | ||
152 | + <span asp-validation-for="IntensityTruckSixEight" class="text-danger" /> | ||
153 | + </div> | ||
154 | + </div> | ||
155 | + <div class="form-group"> | ||
156 | + <label asp-for="IntensityTruckTwo" class="col-md-2 control-label"></label> | ||
157 | + <div class="col-md-10"> | ||
158 | + <input asp-for="IntensityTruckTwo" class="form-control" /> | ||
159 | + <span asp-validation-for="IntensityTruckTwo" class="text-danger" /> | ||
160 | + </div> | ||
161 | + </div> | ||
162 | + <div class="form-group"> | ||
163 | + <label asp-for="IntensityTruckTwoSix" class="col-md-2 control-label"></label> | ||
164 | + <div class="col-md-10"> | ||
165 | + <input asp-for="IntensityTruckTwoSix" class="form-control" /> | ||
166 | + <span asp-validation-for="IntensityTruckTwoSix" class="text-danger" /> | ||
167 | + </div> | ||
168 | + </div> | ||
169 | + <div class="form-group"> | ||
170 | + <label asp-for="Location" class="col-md-2 control-label"></label> | ||
171 | + <div class="col-md-10"> | ||
172 | + <input asp-for="Location" class="form-control" /> | ||
173 | + <span asp-validation-for="Location" class="text-danger" /> | ||
174 | + </div> | ||
175 | + </div> | ||
176 | + <div class="form-group"> | ||
177 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
178 | + <div class="col-md-10"> | ||
179 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
180 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
181 | + </div> | ||
182 | + </div> | ||
183 | + <div class="form-group"> | ||
184 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | ||
185 | + <div class="col-md-10"> | ||
186 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
187 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | ||
188 | + </div> | ||
189 | + </div> | ||
190 | + <div class="form-group"> | ||
191 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
192 | + <div class="col-md-10"> | ||
193 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
194 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
195 | + </div> | ||
196 | + </div> | ||
197 | + <div class="form-group"> | ||
198 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | ||
199 | + <div class="col-md-10"> | ||
200 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | ||
201 | + <span asp-validation-for="SettlementId" class="text-danger" /> | ||
202 | + </div> | ||
203 | + </div> | ||
204 | + <div class="form-group"> | ||
205 | + <div class="col-md-offset-2 col-md-10"> | ||
206 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
207 | + </div> | ||
208 | + </div> | ||
209 | + </div> | ||
210 | +</form> | ||
211 | + | ||
212 | +<div> | ||
213 | + <a asp-action="Index">Back to List</a> | ||
214 | +</div> | ||
215 | + | ||
216 | +</body> | ||
217 | +</html> |
1 | +++ a/src/Maps/Views/FlowIntensity/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.FlowIntensity> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.End) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.IntensityBus) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.IntensityBusCoupled) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.IntensityCar) | ||
38 | + </th> | ||
39 | + <th> | ||
40 | + @Html.DisplayNameFor(model => model.IntensityIncrease) | ||
41 | + </th> | ||
42 | + <th> | ||
43 | + @Html.DisplayNameFor(model => model.IntensityLorryThirty) | ||
44 | + </th> | ||
45 | + <th> | ||
46 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelve) | ||
47 | + </th> | ||
48 | + <th> | ||
49 | + @Html.DisplayNameFor(model => model.IntensityLorryTwelveTwenty) | ||
50 | + </th> | ||
51 | + <th> | ||
52 | + @Html.DisplayNameFor(model => model.IntensityLorryTwentyThirty) | ||
53 | + </th> | ||
54 | + <th> | ||
55 | + @Html.DisplayNameFor(model => model.IntensityMoto) | ||
56 | + </th> | ||
57 | + <th> | ||
58 | + @Html.DisplayNameFor(model => model.IntensityMotoSidecar) | ||
59 | + </th> | ||
60 | + <th> | ||
61 | + @Html.DisplayNameFor(model => model.IntensityTotal) | ||
62 | + </th> | ||
63 | + <th> | ||
64 | + @Html.DisplayNameFor(model => model.IntensityTractorOverTen) | ||
65 | + </th> | ||
66 | + <th> | ||
67 | + @Html.DisplayNameFor(model => model.IntensityTractorUnderTen) | ||
68 | + </th> | ||
69 | + <th> | ||
70 | + @Html.DisplayNameFor(model => model.IntensityTruckEightFourteen) | ||
71 | + </th> | ||
72 | + <th> | ||
73 | + @Html.DisplayNameFor(model => model.IntensityTruckFourteen) | ||
74 | + </th> | ||
75 | + <th> | ||
76 | + @Html.DisplayNameFor(model => model.IntensityTruckSixEight) | ||
77 | + </th> | ||
78 | + <th> | ||
79 | + @Html.DisplayNameFor(model => model.IntensityTruckTwo) | ||
80 | + </th> | ||
81 | + <th> | ||
82 | + @Html.DisplayNameFor(model => model.IntensityTruckTwoSix) | ||
83 | + </th> | ||
84 | + <th> | ||
85 | + @Html.DisplayNameFor(model => model.Location) | ||
86 | + </th> | ||
87 | + <th></th> | ||
88 | + </tr> | ||
89 | + </thead> | ||
90 | + <tbody> | ||
91 | +@foreach (var item in Model) { | ||
92 | + <tr> | ||
93 | + <td> | ||
94 | + @Html.DisplayFor(modelItem => item.Begin) | ||
95 | + </td> | ||
96 | + <td> | ||
97 | + @Html.DisplayFor(modelItem => item.DateAdd) | ||
98 | + </td> | ||
99 | + <td> | ||
100 | + @Html.DisplayFor(modelItem => item.End) | ||
101 | + </td> | ||
102 | + <td> | ||
103 | + @Html.DisplayFor(modelItem => item.IntensityBus) | ||
104 | + </td> | ||
105 | + <td> | ||
106 | + @Html.DisplayFor(modelItem => item.IntensityBusCoupled) | ||
107 | + </td> | ||
108 | + <td> | ||
109 | + @Html.DisplayFor(modelItem => item.IntensityCar) | ||
110 | + </td> | ||
111 | + <td> | ||
112 | + @Html.DisplayFor(modelItem => item.IntensityIncrease) | ||
113 | + </td> | ||
114 | + <td> | ||
115 | + @Html.DisplayFor(modelItem => item.IntensityLorryThirty) | ||
116 | + </td> | ||
117 | + <td> | ||
118 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwelve) | ||
119 | + </td> | ||
120 | + <td> | ||
121 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwelveTwenty) | ||
122 | + </td> | ||
123 | + <td> | ||
124 | + @Html.DisplayFor(modelItem => item.IntensityLorryTwentyThirty) | ||
125 | + </td> | ||
126 | + <td> | ||
127 | + @Html.DisplayFor(modelItem => item.IntensityMoto) | ||
128 | + </td> | ||
129 | + <td> | ||
130 | + @Html.DisplayFor(modelItem => item.IntensityMotoSidecar) | ||
131 | + </td> | ||
132 | + <td> | ||
133 | + @Html.DisplayFor(modelItem => item.IntensityTotal) | ||
134 | + </td> | ||
135 | + <td> | ||
136 | + @Html.DisplayFor(modelItem => item.IntensityTractorOverTen) | ||
137 | + </td> | ||
138 | + <td> | ||
139 | + @Html.DisplayFor(modelItem => item.IntensityTractorUnderTen) | ||
140 | + </td> | ||
141 | + <td> | ||
142 | + @Html.DisplayFor(modelItem => item.IntensityTruckEightFourteen) | ||
143 | + </td> | ||
144 | + <td> | ||
145 | + @Html.DisplayFor(modelItem => item.IntensityTruckFourteen) | ||
146 | + </td> | ||
147 | + <td> | ||
148 | + @Html.DisplayFor(modelItem => item.IntensityTruckSixEight) | ||
149 | + </td> | ||
150 | + <td> | ||
151 | + @Html.DisplayFor(modelItem => item.IntensityTruckTwo) | ||
152 | + </td> | ||
153 | + <td> | ||
154 | + @Html.DisplayFor(modelItem => item.IntensityTruckTwoSix) | ||
155 | + </td> | ||
156 | + <td> | ||
157 | + @Html.DisplayFor(modelItem => item.Location) | ||
158 | + </td> | ||
159 | + <td> | ||
160 | + <a asp-action="Edit" asp-route-id="@item.FlowIntensityId">Edit</a> | | ||
161 | + <a asp-action="Details" asp-route-id="@item.FlowIntensityId">Details</a> | | ||
162 | + <a asp-action="Delete" asp-route-id="@item.FlowIntensityId">Delete</a> | ||
163 | + </td> | ||
164 | + </tr> | ||
165 | +} | ||
166 | + </tbody> | ||
167 | +</table> | ||
168 | +</body> | ||
169 | +</html> |
1 | +++ a/src/Maps/Views/Organization/Create.cshtml | ||
1 | +@model Maps.Entities.Organization | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Organization</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="DateAdd" class="form-control" /> | ||
25 | + <span asp-validation-for="DateAdd" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Name" class="form-control" /> | ||
32 | + <span asp-validation-for="Name" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <div class="col-md-offset-2 col-md-10"> | ||
37 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | +</form> | ||
42 | + | ||
43 | +<div> | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | +</div> | ||
46 | + | ||
47 | +</body> | ||
48 | +</html> |
1 | +++ a/src/Maps/Views/Organization/Delete.cshtml | ||
1 | +@model Maps.Entities.Organization | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>Organization</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.DateAdd) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Name) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Name) | ||
32 | + </dd> | ||
33 | + </dl> | ||
34 | + | ||
35 | + <form asp-action="Delete"> | ||
36 | + <div class="form-actions no-color"> | ||
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | + </div> | ||
40 | + </form> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/Organization/Details.cshtml | ||
1 | +@model Maps.Entities.Organization | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>Organization</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.DateAdd) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Name) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Name) | ||
31 | + </dd> | ||
32 | + </dl> | ||
33 | +</div> | ||
34 | +<div> | ||
35 | + <a asp-action="Edit" asp-route-id="@Model.OrganizationId">Edit</a> | | ||
36 | + <a asp-action="Index">Back to List</a> | ||
37 | +</div> | ||
38 | +</body> | ||
39 | +</html> |
1 | +++ a/src/Maps/Views/Organization/Edit.cshtml | ||
1 | +@model Maps.Entities.Organization | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Organization</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="OrganizationId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="DateAdd" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="DateAdd" class="form-control" /> | ||
26 | + <span asp-validation-for="DateAdd" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Name" class="form-control" /> | ||
33 | + <span asp-validation-for="Name" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <div class="col-md-offset-2 col-md-10"> | ||
38 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | +</form> | ||
43 | + | ||
44 | +<div> | ||
45 | + <a asp-action="Index">Back to List</a> | ||
46 | +</div> | ||
47 | + | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/Organization/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.Organization> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.DateAdd) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Name) | ||
26 | + </th> | ||
27 | + <th></th> | ||
28 | + </tr> | ||
29 | + </thead> | ||
30 | + <tbody> | ||
31 | +@foreach (var item in Model) { | ||
32 | + <tr> | ||
33 | + <td> | ||
34 | + @Html.DisplayFor(modelItem => item.DateAdd) | ||
35 | + </td> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.Name) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + <a asp-action="Edit" asp-route-id="@item.OrganizationId">Edit</a> | | ||
41 | + <a asp-action="Details" asp-route-id="@item.OrganizationId">Details</a> | | ||
42 | + <a asp-action="Delete" asp-route-id="@item.OrganizationId">Delete</a> | ||
43 | + </td> | ||
44 | + </tr> | ||
45 | +} | ||
46 | + </tbody> | ||
47 | +</table> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/Region/Create.cshtml | ||
1 | +@model Maps.Entities.Region | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Region</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Index" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Index" class="form-control" /> | ||
25 | + <span asp-validation-for="Index" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Name" class="form-control" /> | ||
32 | + <span asp-validation-for="Name" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <div class="col-md-offset-2 col-md-10"> | ||
37 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | +</form> | ||
42 | + | ||
43 | +<div> | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | +</div> | ||
46 | + | ||
47 | +</body> | ||
48 | +</html> |
1 | +++ a/src/Maps/Views/Region/Delete.cshtml | ||
1 | +@model Maps.Entities.Region | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>Region</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Index) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Index) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Name) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Name) | ||
32 | + </dd> | ||
33 | + </dl> | ||
34 | + | ||
35 | + <form asp-action="Delete"> | ||
36 | + <div class="form-actions no-color"> | ||
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | + </div> | ||
40 | + </form> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/Region/Details.cshtml | ||
1 | +@model Maps.Entities.Region | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>Region</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Index) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Index) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Name) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Name) | ||
31 | + </dd> | ||
32 | + </dl> | ||
33 | +</div> | ||
34 | +<div> | ||
35 | + <a asp-action="Edit" asp-route-id="@Model.RegionId">Edit</a> | | ||
36 | + <a asp-action="Index">Back to List</a> | ||
37 | +</div> | ||
38 | +</body> | ||
39 | +</html> |
1 | +++ a/src/Maps/Views/Region/Edit.cshtml | ||
1 | +@model Maps.Entities.Region | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Region</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RegionId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Index" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Index" class="form-control" /> | ||
26 | + <span asp-validation-for="Index" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Name" class="form-control" /> | ||
33 | + <span asp-validation-for="Name" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <div class="col-md-offset-2 col-md-10"> | ||
38 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | +</form> | ||
43 | + | ||
44 | +<div> | ||
45 | + <a asp-action="Index">Back to List</a> | ||
46 | +</div> | ||
47 | + | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/Region/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.Region> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Index) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Name) | ||
26 | + </th> | ||
27 | + <th></th> | ||
28 | + </tr> | ||
29 | + </thead> | ||
30 | + <tbody> | ||
31 | +@foreach (var item in Model) { | ||
32 | + <tr> | ||
33 | + <td> | ||
34 | + @Html.DisplayFor(modelItem => item.Index) | ||
35 | + </td> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.Name) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + <a asp-action="Edit" asp-route-id="@item.RegionId">Edit</a> | | ||
41 | + <a asp-action="Details" asp-route-id="@item.RegionId">Details</a> | | ||
42 | + <a asp-action="Delete" asp-route-id="@item.RegionId">Delete</a> | ||
43 | + </td> | ||
44 | + </tr> | ||
45 | +} | ||
46 | + </tbody> | ||
47 | +</table> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/Road/Create.cshtml | ||
1 | +@model Maps.Entities.Road | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Road</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="AcceptTransferDoc" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="AcceptTransferDoc" class="form-control" /> | ||
25 | + <span asp-validation-for="AcceptTransferDoc" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="AcceptanceDoc" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="AcceptanceDoc" class="form-control" /> | ||
32 | + <span asp-validation-for="AcceptanceDoc" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="AuthorityAct" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="AuthorityAct" class="form-control" /> | ||
39 | + <span asp-validation-for="AuthorityAct" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="EconomicValue" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <input asp-for="EconomicValue" class="form-control" /> | ||
46 | + <span asp-validation-for="EconomicValue" class="text-danger" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="form-group"> | ||
50 | + <label asp-for="HistoricalBackground" class="col-md-2 control-label"></label> | ||
51 | + <div class="col-md-10"> | ||
52 | + <input asp-for="HistoricalBackground" class="form-control" /> | ||
53 | + <span asp-validation-for="HistoricalBackground" class="text-danger" /> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div class="form-group"> | ||
57 | + <label asp-for="Index" class="col-md-2 control-label"></label> | ||
58 | + <div class="col-md-10"> | ||
59 | + <input asp-for="Index" class="form-control" /> | ||
60 | + <span asp-validation-for="Index" class="text-danger" /> | ||
61 | + </div> | ||
62 | + </div> | ||
63 | + <div class="form-group"> | ||
64 | + <label asp-for="LawDoc" class="col-md-2 control-label"></label> | ||
65 | + <div class="col-md-10"> | ||
66 | + <input asp-for="LawDoc" class="form-control" /> | ||
67 | + <span asp-validation-for="LawDoc" class="text-danger" /> | ||
68 | + </div> | ||
69 | + </div> | ||
70 | + <div class="form-group"> | ||
71 | + <label asp-for="Length" class="col-md-2 control-label"></label> | ||
72 | + <div class="col-md-10"> | ||
73 | + <input asp-for="Length" class="form-control" /> | ||
74 | + <span asp-validation-for="Length" class="text-danger" /> | ||
75 | + </div> | ||
76 | + </div> | ||
77 | + <div class="form-group"> | ||
78 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
79 | + <div class="col-md-10"> | ||
80 | + <input asp-for="Name" class="form-control" /> | ||
81 | + <span asp-validation-for="Name" class="text-danger" /> | ||
82 | + </div> | ||
83 | + </div> | ||
84 | + <div class="form-group"> | ||
85 | + <label asp-for="RoadTypeId" class="col-md-2 control-label"></label> | ||
86 | + <div class="col-md-10"> | ||
87 | + <select asp-for="RoadTypeId" class ="form-control" asp-items="ViewBag.RoadTypeId"></select> | ||
88 | + </div> | ||
89 | + </div> | ||
90 | + <div class="form-group"> | ||
91 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
92 | + <div class="col-md-10"> | ||
93 | + <input asp-for="Value" class="form-control" /> | ||
94 | + <span asp-validation-for="Value" class="text-danger" /> | ||
95 | + </div> | ||
96 | + </div> | ||
97 | + <div class="form-group"> | ||
98 | + <div class="col-md-offset-2 col-md-10"> | ||
99 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
100 | + </div> | ||
101 | + </div> | ||
102 | + </div> | ||
103 | +</form> | ||
104 | + | ||
105 | +<div> | ||
106 | + <a asp-action="Index">Back to List</a> | ||
107 | +</div> | ||
108 | + | ||
109 | +</body> | ||
110 | +</html> |
1 | +++ a/src/Maps/Views/Road/Delete.cshtml | ||
1 | +@model Maps.Entities.Road | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>Road</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.AcceptTransferDoc) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.AcceptanceDoc) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.AuthorityAct) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.AuthorityAct) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.EconomicValue) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.EconomicValue) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.HistoricalBackground) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.Index) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.Index) | ||
56 | + </dd> | ||
57 | + <dt> | ||
58 | + @Html.DisplayNameFor(model => model.LawDoc) | ||
59 | + </dt> | ||
60 | + <dd> | ||
61 | + @Html.DisplayFor(model => model.LawDoc) | ||
62 | + </dd> | ||
63 | + <dt> | ||
64 | + @Html.DisplayNameFor(model => model.Length) | ||
65 | + </dt> | ||
66 | + <dd> | ||
67 | + @Html.DisplayFor(model => model.Length) | ||
68 | + </dd> | ||
69 | + <dt> | ||
70 | + @Html.DisplayNameFor(model => model.Name) | ||
71 | + </dt> | ||
72 | + <dd> | ||
73 | + @Html.DisplayFor(model => model.Name) | ||
74 | + </dd> | ||
75 | + <dt> | ||
76 | + @Html.DisplayNameFor(model => model.Value) | ||
77 | + </dt> | ||
78 | + <dd> | ||
79 | + @Html.DisplayFor(model => model.Value) | ||
80 | + </dd> | ||
81 | + </dl> | ||
82 | + | ||
83 | + <form asp-action="Delete"> | ||
84 | + <div class="form-actions no-color"> | ||
85 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
86 | + <a asp-action="Index">Back to List</a> | ||
87 | + </div> | ||
88 | + </form> | ||
89 | +</div> | ||
90 | +</body> | ||
91 | +</html> |
1 | +++ a/src/Maps/Views/Road/Details.cshtml | ||
1 | +@model Maps.Entities.Road | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>Road</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.AcceptTransferDoc) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.AcceptanceDoc) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.AuthorityAct) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.AuthorityAct) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.EconomicValue) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.EconomicValue) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.HistoricalBackground) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.Index) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.Index) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.LawDoc) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.LawDoc) | ||
61 | + </dd> | ||
62 | + <dt> | ||
63 | + @Html.DisplayNameFor(model => model.Length) | ||
64 | + </dt> | ||
65 | + <dd> | ||
66 | + @Html.DisplayFor(model => model.Length) | ||
67 | + </dd> | ||
68 | + <dt> | ||
69 | + @Html.DisplayNameFor(model => model.Name) | ||
70 | + </dt> | ||
71 | + <dd> | ||
72 | + @Html.DisplayFor(model => model.Name) | ||
73 | + </dd> | ||
74 | + <dt> | ||
75 | + @Html.DisplayNameFor(model => model.Value) | ||
76 | + </dt> | ||
77 | + <dd> | ||
78 | + @Html.DisplayFor(model => model.Value) | ||
79 | + </dd> | ||
80 | + </dl> | ||
81 | +</div> | ||
82 | +<div> | ||
83 | + <a asp-action="Edit" asp-route-id="@Model.RoadId">Edit</a> | | ||
84 | + <a asp-action="Index">Back to List</a> | ||
85 | +</div> | ||
86 | +</body> | ||
87 | +</html> |
1 | +++ a/src/Maps/Views/Road/Edit.cshtml | ||
1 | +@model Maps.Entities.Road | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Road</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="AcceptTransferDoc" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="AcceptTransferDoc" class="form-control" /> | ||
26 | + <span asp-validation-for="AcceptTransferDoc" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="AcceptanceDoc" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="AcceptanceDoc" class="form-control" /> | ||
33 | + <span asp-validation-for="AcceptanceDoc" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="AuthorityAct" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="AuthorityAct" class="form-control" /> | ||
40 | + <span asp-validation-for="AuthorityAct" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="EconomicValue" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="EconomicValue" class="form-control" /> | ||
47 | + <span asp-validation-for="EconomicValue" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="HistoricalBackground" class="col-md-2 control-label"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <input asp-for="HistoricalBackground" class="form-control" /> | ||
54 | + <span asp-validation-for="HistoricalBackground" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="Index" class="col-md-2 control-label"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <input asp-for="Index" class="form-control" /> | ||
61 | + <span asp-validation-for="Index" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="LawDoc" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="LawDoc" class="form-control" /> | ||
68 | + <span asp-validation-for="LawDoc" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="Length" class="col-md-2 control-label"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <input asp-for="Length" class="form-control" /> | ||
75 | + <span asp-validation-for="Length" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <input asp-for="Name" class="form-control" /> | ||
82 | + <span asp-validation-for="Name" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="RoadTypeId" class="control-label col-md-2"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <select asp-for="RoadTypeId" class="form-control" asp-items="ViewBag.RoadTypeId"></select> | ||
89 | + <span asp-validation-for="RoadTypeId" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <input asp-for="Value" class="form-control" /> | ||
96 | + <span asp-validation-for="Value" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <div class="col-md-offset-2 col-md-10"> | ||
101 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
102 | + </div> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | +</form> | ||
106 | + | ||
107 | +<div> | ||
108 | + <a asp-action="Index">Back to List</a> | ||
109 | +</div> | ||
110 | + | ||
111 | +</body> | ||
112 | +</html> |
1 | +++ a/src/Maps/Views/Road/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.Road> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.AcceptTransferDoc) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.AcceptanceDoc) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.AuthorityAct) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.EconomicValue) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.HistoricalBackground) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.Index) | ||
38 | + </th> | ||
39 | + <th> | ||
40 | + @Html.DisplayNameFor(model => model.LawDoc) | ||
41 | + </th> | ||
42 | + <th> | ||
43 | + @Html.DisplayNameFor(model => model.Length) | ||
44 | + </th> | ||
45 | + <th> | ||
46 | + @Html.DisplayNameFor(model => model.Name) | ||
47 | + </th> | ||
48 | + <th> | ||
49 | + @Html.DisplayNameFor(model => model.Value) | ||
50 | + </th> | ||
51 | + <th></th> | ||
52 | + </tr> | ||
53 | + </thead> | ||
54 | + <tbody> | ||
55 | +@foreach (var item in Model) { | ||
56 | + <tr> | ||
57 | + <td> | ||
58 | + @Html.DisplayFor(modelItem => item.AcceptTransferDoc) | ||
59 | + </td> | ||
60 | + <td> | ||
61 | + @Html.DisplayFor(modelItem => item.AcceptanceDoc) | ||
62 | + </td> | ||
63 | + <td> | ||
64 | + @Html.DisplayFor(modelItem => item.AuthorityAct) | ||
65 | + </td> | ||
66 | + <td> | ||
67 | + @Html.DisplayFor(modelItem => item.EconomicValue) | ||
68 | + </td> | ||
69 | + <td> | ||
70 | + @Html.DisplayFor(modelItem => item.HistoricalBackground) | ||
71 | + </td> | ||
72 | + <td> | ||
73 | + @Html.DisplayFor(modelItem => item.Index) | ||
74 | + </td> | ||
75 | + <td> | ||
76 | + @Html.DisplayFor(modelItem => item.LawDoc) | ||
77 | + </td> | ||
78 | + <td> | ||
79 | + @Html.DisplayFor(modelItem => item.Length) | ||
80 | + </td> | ||
81 | + <td> | ||
82 | + @Html.DisplayFor(modelItem => item.Name) | ||
83 | + </td> | ||
84 | + <td> | ||
85 | + @Html.DisplayFor(modelItem => item.Value) | ||
86 | + </td> | ||
87 | + <td> | ||
88 | + <a asp-action="Edit" asp-route-id="@item.RoadId">Edit</a> | | ||
89 | + <a asp-action="Details" asp-route-id="@item.RoadId">Details</a> | | ||
90 | + <a asp-action="Delete" asp-route-id="@item.RoadId">Delete</a> | ||
91 | + </td> | ||
92 | + </tr> | ||
93 | +} | ||
94 | + </tbody> | ||
95 | +</table> | ||
96 | +</body> | ||
97 | +</html> |
1 | +++ a/src/Maps/Views/RoadCategory/Create.cshtml | ||
1 | +@model Maps.Entities.RoadCategory | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadCategory</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Value" class="form-control" /> | ||
25 | + <span asp-validation-for="Value" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <div class="col-md-offset-2 col-md-10"> | ||
30 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | +</form> | ||
35 | + | ||
36 | +<div> | ||
37 | + <a asp-action="Index">Back to List</a> | ||
38 | +</div> | ||
39 | + | ||
40 | +</body> | ||
41 | +</html> |
1 | +++ a/src/Maps/Views/RoadCategory/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadCategory | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadCategory</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Value) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Value) | ||
26 | + </dd> | ||
27 | + </dl> | ||
28 | + | ||
29 | + <form asp-action="Delete"> | ||
30 | + <div class="form-actions no-color"> | ||
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
32 | + <a asp-action="Index">Back to List</a> | ||
33 | + </div> | ||
34 | + </form> | ||
35 | +</div> | ||
36 | +</body> | ||
37 | +</html> |
1 | +++ a/src/Maps/Views/RoadCategory/Details.cshtml | ||
1 | +@model Maps.Entities.RoadCategory | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadCategory</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Value) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Value) | ||
25 | + </dd> | ||
26 | + </dl> | ||
27 | +</div> | ||
28 | +<div> | ||
29 | + <a asp-action="Edit" asp-route-id="@Model.RoadCategoryId">Edit</a> | | ||
30 | + <a asp-action="Index">Back to List</a> | ||
31 | +</div> | ||
32 | +</body> | ||
33 | +</html> |
1 | +++ a/src/Maps/Views/RoadCategory/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadCategory | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadCategory</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadCategoryId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Value" class="form-control" /> | ||
26 | + <span asp-validation-for="Value" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <div class="col-md-offset-2 col-md-10"> | ||
31 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | +</form> | ||
36 | + | ||
37 | +<div> | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | +</div> | ||
40 | + | ||
41 | +</body> | ||
42 | +</html> |
1 | +++ a/src/Maps/Views/RoadCategory/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadCategory> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Value) | ||
23 | + </th> | ||
24 | + <th></th> | ||
25 | + </tr> | ||
26 | + </thead> | ||
27 | + <tbody> | ||
28 | +@foreach (var item in Model) { | ||
29 | + <tr> | ||
30 | + <td> | ||
31 | + @Html.DisplayFor(modelItem => item.Value) | ||
32 | + </td> | ||
33 | + <td> | ||
34 | + <a asp-action="Edit" asp-route-id="@item.RoadCategoryId">Edit</a> | | ||
35 | + <a asp-action="Details" asp-route-id="@item.RoadCategoryId">Details</a> | | ||
36 | + <a asp-action="Delete" asp-route-id="@item.RoadCategoryId">Delete</a> | ||
37 | + </td> | ||
38 | + </tr> | ||
39 | +} | ||
40 | + </tbody> | ||
41 | +</table> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/RoadDirection/Create.cshtml | ||
1 | +@model Maps.Entities.RoadDirection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadDirection</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="DirectionName" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="DirectionName" class="form-control" /> | ||
25 | + <span asp-validation-for="DirectionName" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <div class="col-md-offset-2 col-md-10"> | ||
30 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | +</form> | ||
35 | + | ||
36 | +<div> | ||
37 | + <a asp-action="Index">Back to List</a> | ||
38 | +</div> | ||
39 | + | ||
40 | +</body> | ||
41 | +</html> |
1 | +++ a/src/Maps/Views/RoadDirection/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadDirection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadDirection</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.DirectionName) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.DirectionName) | ||
26 | + </dd> | ||
27 | + </dl> | ||
28 | + | ||
29 | + <form asp-action="Delete"> | ||
30 | + <div class="form-actions no-color"> | ||
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
32 | + <a asp-action="Index">Back to List</a> | ||
33 | + </div> | ||
34 | + </form> | ||
35 | +</div> | ||
36 | +</body> | ||
37 | +</html> |
1 | +++ a/src/Maps/Views/RoadDirection/Details.cshtml | ||
1 | +@model Maps.Entities.RoadDirection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadDirection</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.DirectionName) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.DirectionName) | ||
25 | + </dd> | ||
26 | + </dl> | ||
27 | +</div> | ||
28 | +<div> | ||
29 | + <a asp-action="Edit" asp-route-id="@Model.RoadDirectionId">Edit</a> | | ||
30 | + <a asp-action="Index">Back to List</a> | ||
31 | +</div> | ||
32 | +</body> | ||
33 | +</html> |
1 | +++ a/src/Maps/Views/RoadDirection/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadDirection | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadDirection</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadDirectionId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="DirectionName" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="DirectionName" class="form-control" /> | ||
26 | + <span asp-validation-for="DirectionName" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <div class="col-md-offset-2 col-md-10"> | ||
31 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | +</form> | ||
36 | + | ||
37 | +<div> | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | +</div> | ||
40 | + | ||
41 | +</body> | ||
42 | +</html> |
1 | +++ a/src/Maps/Views/RoadDirection/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadDirection> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.DirectionName) | ||
23 | + </th> | ||
24 | + <th></th> | ||
25 | + </tr> | ||
26 | + </thead> | ||
27 | + <tbody> | ||
28 | +@foreach (var item in Model) { | ||
29 | + <tr> | ||
30 | + <td> | ||
31 | + @Html.DisplayFor(modelItem => item.DirectionName) | ||
32 | + </td> | ||
33 | + <td> | ||
34 | + <a asp-action="Edit" asp-route-id="@item.RoadDirectionId">Edit</a> | | ||
35 | + <a asp-action="Details" asp-route-id="@item.RoadDirectionId">Details</a> | | ||
36 | + <a asp-action="Delete" asp-route-id="@item.RoadDirectionId">Delete</a> | ||
37 | + </td> | ||
38 | + </tr> | ||
39 | +} | ||
40 | + </tbody> | ||
41 | +</table> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/RoadPassport/Create.cshtml | ||
1 | +@model Maps.Entities.RoadPassport | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadPassport</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="End" class="form-control" /> | ||
32 | + <span asp-validation-for="End" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + <div class="form-group"> | ||
42 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
43 | + <div class="col-md-10"> | ||
44 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
45 | + </div> | ||
46 | + </div> | ||
47 | + <div class="form-group"> | ||
48 | + <div class="col-md-offset-2 col-md-10"> | ||
49 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
50 | + </div> | ||
51 | + </div> | ||
52 | + </div> | ||
53 | +</form> | ||
54 | + | ||
55 | +<div> | ||
56 | + <a asp-action="Index">Back to List</a> | ||
57 | +</div> | ||
58 | + | ||
59 | +</body> | ||
60 | +</html> |
1 | +++ a/src/Maps/Views/RoadPassport/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadPassport | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadPassport</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.End) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.End) | ||
32 | + </dd> | ||
33 | + </dl> | ||
34 | + | ||
35 | + <form asp-action="Delete"> | ||
36 | + <div class="form-actions no-color"> | ||
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | + </div> | ||
40 | + </form> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/RoadPassport/Details.cshtml | ||
1 | +@model Maps.Entities.RoadPassport | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadPassport</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.End) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.End) | ||
31 | + </dd> | ||
32 | + </dl> | ||
33 | +</div> | ||
34 | +<div> | ||
35 | + <a asp-action="Edit" asp-route-id="@Model.RoadPassportId">Edit</a> | | ||
36 | + <a asp-action="Index">Back to List</a> | ||
37 | +</div> | ||
38 | +</body> | ||
39 | +</html> |
1 | +++ a/src/Maps/Views/RoadPassport/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadPassport | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadPassport</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadPassportId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="End" class="form-control" /> | ||
33 | + <span asp-validation-for="End" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
40 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
47 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <div class="col-md-offset-2 col-md-10"> | ||
52 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | +</form> | ||
57 | + | ||
58 | +<div> | ||
59 | + <a asp-action="Index">Back to List</a> | ||
60 | +</div> | ||
61 | + | ||
62 | +</body> | ||
63 | +</html> |
1 | +++ a/src/Maps/Views/RoadPassport/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadPassport> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.End) | ||
26 | + </th> | ||
27 | + <th></th> | ||
28 | + </tr> | ||
29 | + </thead> | ||
30 | + <tbody> | ||
31 | +@foreach (var item in Model) { | ||
32 | + <tr> | ||
33 | + <td> | ||
34 | + @Html.DisplayFor(modelItem => item.Begin) | ||
35 | + </td> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.End) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + <a asp-action="Edit" asp-route-id="@item.RoadPassportId">Edit</a> | | ||
41 | + <a asp-action="Details" asp-route-id="@item.RoadPassportId">Details</a> | | ||
42 | + <a asp-action="Delete" asp-route-id="@item.RoadPassportId">Delete</a> | ||
43 | + </td> | ||
44 | + </tr> | ||
45 | +} | ||
46 | + </tbody> | ||
47 | +</table> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/RoadService/Create.cshtml | ||
1 | +@model Maps.Entities.RoadService | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadService</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="End" class="form-control" /> | ||
32 | + <span asp-validation-for="End" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="OrganizationId" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <select asp-for="OrganizationId" class ="form-control" asp-items="ViewBag.OrganizationId"></select> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + <div class="form-group"> | ||
42 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
43 | + <div class="col-md-10"> | ||
44 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
45 | + </div> | ||
46 | + </div> | ||
47 | + <div class="form-group"> | ||
48 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | ||
49 | + <div class="col-md-10"> | ||
50 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
51 | + </div> | ||
52 | + </div> | ||
53 | + <div class="form-group"> | ||
54 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
55 | + <div class="col-md-10"> | ||
56 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
57 | + </div> | ||
58 | + </div> | ||
59 | + <div class="form-group"> | ||
60 | + <label asp-for="YearBegin" class="col-md-2 control-label"></label> | ||
61 | + <div class="col-md-10"> | ||
62 | + <input asp-for="YearBegin" class="form-control" /> | ||
63 | + <span asp-validation-for="YearBegin" class="text-danger" /> | ||
64 | + </div> | ||
65 | + </div> | ||
66 | + <div class="form-group"> | ||
67 | + <div class="col-md-offset-2 col-md-10"> | ||
68 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | +</form> | ||
73 | + | ||
74 | +<div> | ||
75 | + <a asp-action="Index">Back to List</a> | ||
76 | +</div> | ||
77 | + | ||
78 | +</body> | ||
79 | +</html> |
1 | +++ a/src/Maps/Views/RoadService/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadService | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadService</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.End) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.End) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.YearBegin) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.YearBegin) | ||
38 | + </dd> | ||
39 | + </dl> | ||
40 | + | ||
41 | + <form asp-action="Delete"> | ||
42 | + <div class="form-actions no-color"> | ||
43 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | + </div> | ||
46 | + </form> | ||
47 | +</div> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/RoadService/Details.cshtml | ||
1 | +@model Maps.Entities.RoadService | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadService</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.End) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.End) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.YearBegin) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.YearBegin) | ||
37 | + </dd> | ||
38 | + </dl> | ||
39 | +</div> | ||
40 | +<div> | ||
41 | + <a asp-action="Edit" asp-route-id="@Model.RoadServiceId">Edit</a> | | ||
42 | + <a asp-action="Index">Back to List</a> | ||
43 | +</div> | ||
44 | +</body> | ||
45 | +</html> |
1 | +++ a/src/Maps/Views/RoadService/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadService | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadService</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadServiceId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="End" class="form-control" /> | ||
33 | + <span asp-validation-for="End" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="OrganizationId" class="control-label col-md-2"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <select asp-for="OrganizationId" class="form-control" asp-items="ViewBag.OrganizationId"></select> | ||
40 | + <span asp-validation-for="OrganizationId" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
47 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
54 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
61 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="YearBegin" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="YearBegin" class="form-control" /> | ||
68 | + <span asp-validation-for="YearBegin" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <div class="col-md-offset-2 col-md-10"> | ||
73 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
74 | + </div> | ||
75 | + </div> | ||
76 | + </div> | ||
77 | +</form> | ||
78 | + | ||
79 | +<div> | ||
80 | + <a asp-action="Index">Back to List</a> | ||
81 | +</div> | ||
82 | + | ||
83 | +</body> | ||
84 | +</html> |
1 | +++ a/src/Maps/Views/RoadService/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadService> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.End) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.YearBegin) | ||
29 | + </th> | ||
30 | + <th></th> | ||
31 | + </tr> | ||
32 | + </thead> | ||
33 | + <tbody> | ||
34 | +@foreach (var item in Model) { | ||
35 | + <tr> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.Begin) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + @Html.DisplayFor(modelItem => item.End) | ||
41 | + </td> | ||
42 | + <td> | ||
43 | + @Html.DisplayFor(modelItem => item.YearBegin) | ||
44 | + </td> | ||
45 | + <td> | ||
46 | + <a asp-action="Edit" asp-route-id="@item.RoadServiceId">Edit</a> | | ||
47 | + <a asp-action="Details" asp-route-id="@item.RoadServiceId">Details</a> | | ||
48 | + <a asp-action="Delete" asp-route-id="@item.RoadServiceId">Delete</a> | ||
49 | + </td> | ||
50 | + </tr> | ||
51 | +} | ||
52 | + </tbody> | ||
53 | +</table> | ||
54 | +</body> | ||
55 | +</html> |
1 | +++ a/src/Maps/Views/RoadSurface/Create.cshtml | ||
1 | +@model Maps.Entities.RoadSurface | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadSurface</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="CrossSectionNumber" class="form-control" /> | ||
32 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="ElastisityModule" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="ElastisityModule" class="form-control" /> | ||
39 | + <span asp-validation-for="ElastisityModule" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <input asp-for="End" class="form-control" /> | ||
46 | + <span asp-validation-for="End" class="text-danger" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="form-group"> | ||
50 | + <label asp-for="LaneCountLeft" class="col-md-2 control-label"></label> | ||
51 | + <div class="col-md-10"> | ||
52 | + <input asp-for="LaneCountLeft" class="form-control" /> | ||
53 | + <span asp-validation-for="LaneCountLeft" class="text-danger" /> | ||
54 | + </div> | ||
55 | + </div> | ||
56 | + <div class="form-group"> | ||
57 | + <label asp-for="LaneCountRight" class="col-md-2 control-label"></label> | ||
58 | + <div class="col-md-10"> | ||
59 | + <input asp-for="LaneCountRight" class="form-control" /> | ||
60 | + <span asp-validation-for="LaneCountRight" class="text-danger" /> | ||
61 | + </div> | ||
62 | + </div> | ||
63 | + <div class="form-group"> | ||
64 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
65 | + <div class="col-md-10"> | ||
66 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + <div class="form-group"> | ||
70 | + <label asp-for="RoadDirectionId" class="col-md-2 control-label"></label> | ||
71 | + <div class="col-md-10"> | ||
72 | + <select asp-for="RoadDirectionId" class ="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <div class="form-group"> | ||
76 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
77 | + <div class="col-md-10"> | ||
78 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
79 | + </div> | ||
80 | + </div> | ||
81 | + <div class="form-group"> | ||
82 | + <label asp-for="RoadSurfaceConstructionId" class="col-md-2 control-label"></label> | ||
83 | + <div class="col-md-10"> | ||
84 | + <input asp-for="RoadSurfaceConstructionId" class="form-control" /> | ||
85 | + <span asp-validation-for="RoadSurfaceConstructionId" class="text-danger" /> | ||
86 | + </div> | ||
87 | + </div> | ||
88 | + <div class="form-group"> | ||
89 | + <label asp-for="StateCommonId" class="col-md-2 control-label"></label> | ||
90 | + <div class="col-md-10"> | ||
91 | + <select asp-for="StateCommonId" class ="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
92 | + </div> | ||
93 | + </div> | ||
94 | + <div class="form-group"> | ||
95 | + <label asp-for="SurfaceTreatmentId" class="col-md-2 control-label"></label> | ||
96 | + <div class="col-md-10"> | ||
97 | + <select asp-for="SurfaceTreatmentId" class ="form-control" asp-items="ViewBag.SurfaceTreatmentId"></select> | ||
98 | + </div> | ||
99 | + </div> | ||
100 | + <div class="form-group"> | ||
101 | + <label asp-for="SurfaceTypeId" class="col-md-2 control-label"></label> | ||
102 | + <div class="col-md-10"> | ||
103 | + <select asp-for="SurfaceTypeId" class ="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + <div class="form-group"> | ||
107 | + <div class="col-md-offset-2 col-md-10"> | ||
108 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
109 | + </div> | ||
110 | + </div> | ||
111 | + </div> | ||
112 | +</form> | ||
113 | + | ||
114 | +<div> | ||
115 | + <a asp-action="Index">Back to List</a> | ||
116 | +</div> | ||
117 | + | ||
118 | +</body> | ||
119 | +</html> |
1 | +++ a/src/Maps/Views/RoadSurface/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadSurface | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadSurface</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.CrossSectionNumber) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.ElastisityModule) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.ElastisityModule) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.End) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.End) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.LaneCountLeft) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.LaneCountRight) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.LaneCountRight) | ||
56 | + </dd> | ||
57 | + <dt> | ||
58 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | ||
59 | + </dt> | ||
60 | + <dd> | ||
61 | + @Html.DisplayFor(model => model.RoadSurfaceConstructionId) | ||
62 | + </dd> | ||
63 | + </dl> | ||
64 | + | ||
65 | + <form asp-action="Delete"> | ||
66 | + <div class="form-actions no-color"> | ||
67 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
68 | + <a asp-action="Index">Back to List</a> | ||
69 | + </div> | ||
70 | + </form> | ||
71 | +</div> | ||
72 | +</body> | ||
73 | +</html> |
1 | +++ a/src/Maps/Views/RoadSurface/Details.cshtml | ||
1 | +@model Maps.Entities.RoadSurface | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadSurface</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.CrossSectionNumber) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.ElastisityModule) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.ElastisityModule) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.End) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.End) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.LaneCountLeft) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.LaneCountRight) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.LaneCountRight) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.RoadSurfaceConstructionId) | ||
61 | + </dd> | ||
62 | + </dl> | ||
63 | +</div> | ||
64 | +<div> | ||
65 | + <a asp-action="Edit" asp-route-id="@Model.RoadSurfaceId">Edit</a> | | ||
66 | + <a asp-action="Index">Back to List</a> | ||
67 | +</div> | ||
68 | +</body> | ||
69 | +</html> |
1 | +++ a/src/Maps/Views/RoadSurface/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadSurface | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadSurface</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadSurfaceId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="CrossSectionNumber" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="CrossSectionNumber" class="form-control" /> | ||
33 | + <span asp-validation-for="CrossSectionNumber" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="ElastisityModule" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="ElastisityModule" class="form-control" /> | ||
40 | + <span asp-validation-for="ElastisityModule" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="End" class="form-control" /> | ||
47 | + <span asp-validation-for="End" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="LaneCountLeft" class="col-md-2 control-label"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <input asp-for="LaneCountLeft" class="form-control" /> | ||
54 | + <span asp-validation-for="LaneCountLeft" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="LaneCountRight" class="col-md-2 control-label"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <input asp-for="LaneCountRight" class="form-control" /> | ||
61 | + <span asp-validation-for="LaneCountRight" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
68 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="RoadDirectionId" class="control-label col-md-2"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <select asp-for="RoadDirectionId" class="form-control" asp-items="ViewBag.RoadDirectionId"></select> | ||
75 | + <span asp-validation-for="RoadDirectionId" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="RoadSurfaceConstructionId" class="col-md-2 control-label"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <input asp-for="RoadSurfaceConstructionId" class="form-control" /> | ||
89 | + <span asp-validation-for="RoadSurfaceConstructionId" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="StateCommonId" class="control-label col-md-2"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <select asp-for="StateCommonId" class="form-control" asp-items="ViewBag.StateCommonId"></select> | ||
96 | + <span asp-validation-for="StateCommonId" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <label asp-for="SurfaceTreatmentId" class="control-label col-md-2"></label> | ||
101 | + <div class="col-md-10"> | ||
102 | + <select asp-for="SurfaceTreatmentId" class="form-control" asp-items="ViewBag.SurfaceTreatmentId"></select> | ||
103 | + <span asp-validation-for="SurfaceTreatmentId" class="text-danger" /> | ||
104 | + </div> | ||
105 | + </div> | ||
106 | + <div class="form-group"> | ||
107 | + <label asp-for="SurfaceTypeId" class="control-label col-md-2"></label> | ||
108 | + <div class="col-md-10"> | ||
109 | + <select asp-for="SurfaceTypeId" class="form-control" asp-items="ViewBag.SurfaceTypeId"></select> | ||
110 | + <span asp-validation-for="SurfaceTypeId" class="text-danger" /> | ||
111 | + </div> | ||
112 | + </div> | ||
113 | + <div class="form-group"> | ||
114 | + <div class="col-md-offset-2 col-md-10"> | ||
115 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
116 | + </div> | ||
117 | + </div> | ||
118 | + </div> | ||
119 | +</form> | ||
120 | + | ||
121 | +<div> | ||
122 | + <a asp-action="Index">Back to List</a> | ||
123 | +</div> | ||
124 | + | ||
125 | +</body> | ||
126 | +</html> |
1 | +++ a/src/Maps/Views/RoadSurface/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadSurface> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.CrossSectionNumber) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.ElastisityModule) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.End) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.LaneCountLeft) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.LaneCountRight) | ||
38 | + </th> | ||
39 | + <th> | ||
40 | + @Html.DisplayNameFor(model => model.RoadSurfaceConstructionId) | ||
41 | + </th> | ||
42 | + <th></th> | ||
43 | + </tr> | ||
44 | + </thead> | ||
45 | + <tbody> | ||
46 | +@foreach (var item in Model) { | ||
47 | + <tr> | ||
48 | + <td> | ||
49 | + @Html.DisplayFor(modelItem => item.Begin) | ||
50 | + </td> | ||
51 | + <td> | ||
52 | + @Html.DisplayFor(modelItem => item.CrossSectionNumber) | ||
53 | + </td> | ||
54 | + <td> | ||
55 | + @Html.DisplayFor(modelItem => item.ElastisityModule) | ||
56 | + </td> | ||
57 | + <td> | ||
58 | + @Html.DisplayFor(modelItem => item.End) | ||
59 | + </td> | ||
60 | + <td> | ||
61 | + @Html.DisplayFor(modelItem => item.LaneCountLeft) | ||
62 | + </td> | ||
63 | + <td> | ||
64 | + @Html.DisplayFor(modelItem => item.LaneCountRight) | ||
65 | + </td> | ||
66 | + <td> | ||
67 | + @Html.DisplayFor(modelItem => item.RoadSurfaceConstructionId) | ||
68 | + </td> | ||
69 | + <td> | ||
70 | + <a asp-action="Edit" asp-route-id="@item.RoadSurfaceId">Edit</a> | | ||
71 | + <a asp-action="Details" asp-route-id="@item.RoadSurfaceId">Details</a> | | ||
72 | + <a asp-action="Delete" asp-route-id="@item.RoadSurfaceId">Delete</a> | ||
73 | + </td> | ||
74 | + </tr> | ||
75 | +} | ||
76 | + </tbody> | ||
77 | +</table> | ||
78 | +</body> | ||
79 | +</html> |
1 | +++ a/src/Maps/Views/RoadType/Create.cshtml | ||
1 | +@model Maps.Entities.RoadType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadType</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Definition" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Definition" class="form-control" /> | ||
25 | + <span asp-validation-for="Definition" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Value" class="form-control" /> | ||
32 | + <span asp-validation-for="Value" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <div class="col-md-offset-2 col-md-10"> | ||
37 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | +</form> | ||
42 | + | ||
43 | +<div> | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | +</div> | ||
46 | + | ||
47 | +</body> | ||
48 | +</html> |
1 | +++ a/src/Maps/Views/RoadType/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadType</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Definition) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Definition) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Value) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Value) | ||
32 | + </dd> | ||
33 | + </dl> | ||
34 | + | ||
35 | + <form asp-action="Delete"> | ||
36 | + <div class="form-actions no-color"> | ||
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | + </div> | ||
40 | + </form> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/RoadType/Details.cshtml | ||
1 | +@model Maps.Entities.RoadType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadType</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Definition) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Definition) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Value) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Value) | ||
31 | + </dd> | ||
32 | + </dl> | ||
33 | +</div> | ||
34 | +<div> | ||
35 | + <a asp-action="Edit" asp-route-id="@Model.RoadTypeId">Edit</a> | | ||
36 | + <a asp-action="Index">Back to List</a> | ||
37 | +</div> | ||
38 | +</body> | ||
39 | +</html> |
1 | +++ a/src/Maps/Views/RoadType/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadType</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadTypeId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Definition" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Definition" class="form-control" /> | ||
26 | + <span asp-validation-for="Definition" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Value" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Value" class="form-control" /> | ||
33 | + <span asp-validation-for="Value" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <div class="col-md-offset-2 col-md-10"> | ||
38 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | +</form> | ||
43 | + | ||
44 | +<div> | ||
45 | + <a asp-action="Index">Back to List</a> | ||
46 | +</div> | ||
47 | + | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/RoadType/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadType> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Definition) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Value) | ||
26 | + </th> | ||
27 | + <th></th> | ||
28 | + </tr> | ||
29 | + </thead> | ||
30 | + <tbody> | ||
31 | +@foreach (var item in Model) { | ||
32 | + <tr> | ||
33 | + <td> | ||
34 | + @Html.DisplayFor(modelItem => item.Definition) | ||
35 | + </td> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.Value) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + <a asp-action="Edit" asp-route-id="@item.RoadTypeId">Edit</a> | | ||
41 | + <a asp-action="Details" asp-route-id="@item.RoadTypeId">Details</a> | | ||
42 | + <a asp-action="Delete" asp-route-id="@item.RoadTypeId">Delete</a> | ||
43 | + </td> | ||
44 | + </tr> | ||
45 | +} | ||
46 | + </tbody> | ||
47 | +</table> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/RoadWidth/Create.cshtml | ||
1 | +@model Maps.Entities.RoadWidth | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadWidth</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="CountLaneLeft" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="CountLaneLeft" class="form-control" /> | ||
32 | + <span asp-validation-for="CountLaneLeft" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="CountLaneRight" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="CountLaneRight" class="form-control" /> | ||
39 | + <span asp-validation-for="CountLaneRight" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <input asp-for="End" class="form-control" /> | ||
46 | + <span asp-validation-for="End" class="text-danger" /> | ||
47 | + </div> | ||
48 | + </div> | ||
49 | + <div class="form-group"> | ||
50 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
51 | + <div class="col-md-10"> | ||
52 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + <div class="form-group"> | ||
56 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
57 | + <div class="col-md-10"> | ||
58 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
59 | + </div> | ||
60 | + </div> | ||
61 | + <div class="form-group"> | ||
62 | + <label asp-for="WidthReverseRoad" class="col-md-2 control-label"></label> | ||
63 | + <div class="col-md-10"> | ||
64 | + <input asp-for="WidthReverseRoad" class="form-control" /> | ||
65 | + <span asp-validation-for="WidthReverseRoad" class="text-danger" /> | ||
66 | + </div> | ||
67 | + </div> | ||
68 | + <div class="form-group"> | ||
69 | + <label asp-for="WidthRoadsideLeft" class="col-md-2 control-label"></label> | ||
70 | + <div class="col-md-10"> | ||
71 | + <input asp-for="WidthRoadsideLeft" class="form-control" /> | ||
72 | + <span asp-validation-for="WidthRoadsideLeft" class="text-danger" /> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <div class="form-group"> | ||
76 | + <label asp-for="WidthRoadsideRight" class="col-md-2 control-label"></label> | ||
77 | + <div class="col-md-10"> | ||
78 | + <input asp-for="WidthRoadsideRight" class="form-control" /> | ||
79 | + <span asp-validation-for="WidthRoadsideRight" class="text-danger" /> | ||
80 | + </div> | ||
81 | + </div> | ||
82 | + <div class="form-group"> | ||
83 | + <label asp-for="WidthRoadwayForward" class="col-md-2 control-label"></label> | ||
84 | + <div class="col-md-10"> | ||
85 | + <input asp-for="WidthRoadwayForward" class="form-control" /> | ||
86 | + <span asp-validation-for="WidthRoadwayForward" class="text-danger" /> | ||
87 | + </div> | ||
88 | + </div> | ||
89 | + <div class="form-group"> | ||
90 | + <label asp-for="WidthStrip" class="col-md-2 control-label"></label> | ||
91 | + <div class="col-md-10"> | ||
92 | + <input asp-for="WidthStrip" class="form-control" /> | ||
93 | + <span asp-validation-for="WidthStrip" class="text-danger" /> | ||
94 | + </div> | ||
95 | + </div> | ||
96 | + <div class="form-group"> | ||
97 | + <div class="col-md-offset-2 col-md-10"> | ||
98 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
99 | + </div> | ||
100 | + </div> | ||
101 | + </div> | ||
102 | +</form> | ||
103 | + | ||
104 | +<div> | ||
105 | + <a asp-action="Index">Back to List</a> | ||
106 | +</div> | ||
107 | + | ||
108 | +</body> | ||
109 | +</html> |
1 | +++ a/src/Maps/Views/RoadWidth/Delete.cshtml | ||
1 | +@model Maps.Entities.RoadWidth | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>RoadWidth</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.CountLaneLeft) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.CountLaneRight) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.CountLaneRight) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.End) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.End) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.WidthReverseRoad) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.WidthRoadsideLeft) | ||
56 | + </dd> | ||
57 | + <dt> | ||
58 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | ||
59 | + </dt> | ||
60 | + <dd> | ||
61 | + @Html.DisplayFor(model => model.WidthRoadsideRight) | ||
62 | + </dd> | ||
63 | + <dt> | ||
64 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | ||
65 | + </dt> | ||
66 | + <dd> | ||
67 | + @Html.DisplayFor(model => model.WidthRoadwayForward) | ||
68 | + </dd> | ||
69 | + <dt> | ||
70 | + @Html.DisplayNameFor(model => model.WidthStrip) | ||
71 | + </dt> | ||
72 | + <dd> | ||
73 | + @Html.DisplayFor(model => model.WidthStrip) | ||
74 | + </dd> | ||
75 | + </dl> | ||
76 | + | ||
77 | + <form asp-action="Delete"> | ||
78 | + <div class="form-actions no-color"> | ||
79 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
80 | + <a asp-action="Index">Back to List</a> | ||
81 | + </div> | ||
82 | + </form> | ||
83 | +</div> | ||
84 | +</body> | ||
85 | +</html> |
1 | +++ a/src/Maps/Views/RoadWidth/Details.cshtml | ||
1 | +@model Maps.Entities.RoadWidth | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>RoadWidth</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.CountLaneLeft) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.CountLaneRight) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.CountLaneRight) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.End) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.End) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.WidthReverseRoad) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.WidthRoadsideLeft) | ||
55 | + </dd> | ||
56 | + <dt> | ||
57 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | ||
58 | + </dt> | ||
59 | + <dd> | ||
60 | + @Html.DisplayFor(model => model.WidthRoadsideRight) | ||
61 | + </dd> | ||
62 | + <dt> | ||
63 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | ||
64 | + </dt> | ||
65 | + <dd> | ||
66 | + @Html.DisplayFor(model => model.WidthRoadwayForward) | ||
67 | + </dd> | ||
68 | + <dt> | ||
69 | + @Html.DisplayNameFor(model => model.WidthStrip) | ||
70 | + </dt> | ||
71 | + <dd> | ||
72 | + @Html.DisplayFor(model => model.WidthStrip) | ||
73 | + </dd> | ||
74 | + </dl> | ||
75 | +</div> | ||
76 | +<div> | ||
77 | + <a asp-action="Edit" asp-route-id="@Model.RoadWidthId">Edit</a> | | ||
78 | + <a asp-action="Index">Back to List</a> | ||
79 | +</div> | ||
80 | +</body> | ||
81 | +</html> |
1 | +++ a/src/Maps/Views/RoadWidth/Edit.cshtml | ||
1 | +@model Maps.Entities.RoadWidth | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>RoadWidth</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="RoadWidthId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="CountLaneLeft" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="CountLaneLeft" class="form-control" /> | ||
33 | + <span asp-validation-for="CountLaneLeft" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="CountLaneRight" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="CountLaneRight" class="form-control" /> | ||
40 | + <span asp-validation-for="CountLaneRight" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="End" class="form-control" /> | ||
47 | + <span asp-validation-for="End" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
54 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
61 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="WidthReverseRoad" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="WidthReverseRoad" class="form-control" /> | ||
68 | + <span asp-validation-for="WidthReverseRoad" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="WidthRoadsideLeft" class="col-md-2 control-label"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <input asp-for="WidthRoadsideLeft" class="form-control" /> | ||
75 | + <span asp-validation-for="WidthRoadsideLeft" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="WidthRoadsideRight" class="col-md-2 control-label"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <input asp-for="WidthRoadsideRight" class="form-control" /> | ||
82 | + <span asp-validation-for="WidthRoadsideRight" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="WidthRoadwayForward" class="col-md-2 control-label"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <input asp-for="WidthRoadwayForward" class="form-control" /> | ||
89 | + <span asp-validation-for="WidthRoadwayForward" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="WidthStrip" class="col-md-2 control-label"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <input asp-for="WidthStrip" class="form-control" /> | ||
96 | + <span asp-validation-for="WidthStrip" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <div class="col-md-offset-2 col-md-10"> | ||
101 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
102 | + </div> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | +</form> | ||
106 | + | ||
107 | +<div> | ||
108 | + <a asp-action="Index">Back to List</a> | ||
109 | +</div> | ||
110 | + | ||
111 | +</body> | ||
112 | +</html> |
1 | +++ a/src/Maps/Views/RoadWidth/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.RoadWidth> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.CountLaneLeft) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.CountLaneRight) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.End) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.WidthReverseRoad) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.WidthRoadsideLeft) | ||
38 | + </th> | ||
39 | + <th> | ||
40 | + @Html.DisplayNameFor(model => model.WidthRoadsideRight) | ||
41 | + </th> | ||
42 | + <th> | ||
43 | + @Html.DisplayNameFor(model => model.WidthRoadwayForward) | ||
44 | + </th> | ||
45 | + <th> | ||
46 | + @Html.DisplayNameFor(model => model.WidthStrip) | ||
47 | + </th> | ||
48 | + <th></th> | ||
49 | + </tr> | ||
50 | + </thead> | ||
51 | + <tbody> | ||
52 | +@foreach (var item in Model) { | ||
53 | + <tr> | ||
54 | + <td> | ||
55 | + @Html.DisplayFor(modelItem => item.Begin) | ||
56 | + </td> | ||
57 | + <td> | ||
58 | + @Html.DisplayFor(modelItem => item.CountLaneLeft) | ||
59 | + </td> | ||
60 | + <td> | ||
61 | + @Html.DisplayFor(modelItem => item.CountLaneRight) | ||
62 | + </td> | ||
63 | + <td> | ||
64 | + @Html.DisplayFor(modelItem => item.End) | ||
65 | + </td> | ||
66 | + <td> | ||
67 | + @Html.DisplayFor(modelItem => item.WidthReverseRoad) | ||
68 | + </td> | ||
69 | + <td> | ||
70 | + @Html.DisplayFor(modelItem => item.WidthRoadsideLeft) | ||
71 | + </td> | ||
72 | + <td> | ||
73 | + @Html.DisplayFor(modelItem => item.WidthRoadsideRight) | ||
74 | + </td> | ||
75 | + <td> | ||
76 | + @Html.DisplayFor(modelItem => item.WidthRoadwayForward) | ||
77 | + </td> | ||
78 | + <td> | ||
79 | + @Html.DisplayFor(modelItem => item.WidthStrip) | ||
80 | + </td> | ||
81 | + <td> | ||
82 | + <a asp-action="Edit" asp-route-id="@item.RoadWidthId">Edit</a> | | ||
83 | + <a asp-action="Details" asp-route-id="@item.RoadWidthId">Details</a> | | ||
84 | + <a asp-action="Delete" asp-route-id="@item.RoadWidthId">Delete</a> | ||
85 | + </td> | ||
86 | + </tr> | ||
87 | +} | ||
88 | + </tbody> | ||
89 | +</table> | ||
90 | +</body> | ||
91 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObject/Create.cshtml | ||
1 | +@model Maps.Entities.ServiceObject | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>ServiceObject</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="ArrangementElements" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="ArrangementElements" class="form-control" /> | ||
25 | + <span asp-validation-for="ArrangementElements" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Capacity" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Capacity" class="form-control" /> | ||
32 | + <span asp-validation-for="Capacity" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="DepartmentAffiliationId" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <select asp-for="DepartmentAffiliationId" class ="form-control" asp-items="ViewBag.DepartmentAffiliationId"></select> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + <div class="form-group"> | ||
42 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | ||
43 | + <div class="col-md-10"> | ||
44 | + <input asp-for="Distance" class="form-control" /> | ||
45 | + <span asp-validation-for="Distance" class="text-danger" /> | ||
46 | + </div> | ||
47 | + </div> | ||
48 | + <div class="form-group"> | ||
49 | + <label asp-for="LocationAxis" class="col-md-2 control-label"></label> | ||
50 | + <div class="col-md-10"> | ||
51 | + <input asp-for="LocationAxis" class="form-control" /> | ||
52 | + <span asp-validation-for="LocationAxis" class="text-danger" /> | ||
53 | + </div> | ||
54 | + </div> | ||
55 | + <div class="form-group"> | ||
56 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
57 | + <div class="col-md-10"> | ||
58 | + <input asp-for="LocationLeft" class="form-control" /> | ||
59 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
60 | + </div> | ||
61 | + </div> | ||
62 | + <div class="form-group"> | ||
63 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
64 | + <div class="col-md-10"> | ||
65 | + <input asp-for="LocationRight" class="form-control" /> | ||
66 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
67 | + </div> | ||
68 | + </div> | ||
69 | + <div class="form-group"> | ||
70 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
71 | + <div class="col-md-10"> | ||
72 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
73 | + </div> | ||
74 | + </div> | ||
75 | + <div class="form-group"> | ||
76 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
77 | + <div class="col-md-10"> | ||
78 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
79 | + </div> | ||
80 | + </div> | ||
81 | + <div class="form-group"> | ||
82 | + <label asp-for="ServiceObjectTypeId" class="col-md-2 control-label"></label> | ||
83 | + <div class="col-md-10"> | ||
84 | + <select asp-for="ServiceObjectTypeId" class ="form-control" asp-items="ViewBag.ServiceObjectTypeId"></select> | ||
85 | + </div> | ||
86 | + </div> | ||
87 | + <div class="form-group"> | ||
88 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | ||
89 | + <div class="col-md-10"> | ||
90 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | ||
91 | + </div> | ||
92 | + </div> | ||
93 | + <div class="form-group"> | ||
94 | + <div class="col-md-offset-2 col-md-10"> | ||
95 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
96 | + </div> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | +</form> | ||
100 | + | ||
101 | +<div> | ||
102 | + <a asp-action="Index">Back to List</a> | ||
103 | +</div> | ||
104 | + | ||
105 | +</body> | ||
106 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObject/Delete.cshtml | ||
1 | +@model Maps.Entities.ServiceObject | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>ServiceObject</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.ArrangementElements) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.ArrangementElements) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Capacity) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Capacity) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.Distance) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.Distance) | ||
38 | + </dd> | ||
39 | + <dt> | ||
40 | + @Html.DisplayNameFor(model => model.LocationAxis) | ||
41 | + </dt> | ||
42 | + <dd> | ||
43 | + @Html.DisplayFor(model => model.LocationAxis) | ||
44 | + </dd> | ||
45 | + <dt> | ||
46 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
47 | + </dt> | ||
48 | + <dd> | ||
49 | + @Html.DisplayFor(model => model.LocationLeft) | ||
50 | + </dd> | ||
51 | + <dt> | ||
52 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
53 | + </dt> | ||
54 | + <dd> | ||
55 | + @Html.DisplayFor(model => model.LocationRight) | ||
56 | + </dd> | ||
57 | + </dl> | ||
58 | + | ||
59 | + <form asp-action="Delete"> | ||
60 | + <div class="form-actions no-color"> | ||
61 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
62 | + <a asp-action="Index">Back to List</a> | ||
63 | + </div> | ||
64 | + </form> | ||
65 | +</div> | ||
66 | +</body> | ||
67 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObject/Details.cshtml | ||
1 | +@model Maps.Entities.ServiceObject | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>ServiceObject</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.ArrangementElements) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.ArrangementElements) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Capacity) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Capacity) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.Distance) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.Distance) | ||
37 | + </dd> | ||
38 | + <dt> | ||
39 | + @Html.DisplayNameFor(model => model.LocationAxis) | ||
40 | + </dt> | ||
41 | + <dd> | ||
42 | + @Html.DisplayFor(model => model.LocationAxis) | ||
43 | + </dd> | ||
44 | + <dt> | ||
45 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
46 | + </dt> | ||
47 | + <dd> | ||
48 | + @Html.DisplayFor(model => model.LocationLeft) | ||
49 | + </dd> | ||
50 | + <dt> | ||
51 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
52 | + </dt> | ||
53 | + <dd> | ||
54 | + @Html.DisplayFor(model => model.LocationRight) | ||
55 | + </dd> | ||
56 | + </dl> | ||
57 | +</div> | ||
58 | +<div> | ||
59 | + <a asp-action="Edit" asp-route-id="@Model.ServiceObjectId">Edit</a> | | ||
60 | + <a asp-action="Index">Back to List</a> | ||
61 | +</div> | ||
62 | +</body> | ||
63 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObject/Edit.cshtml | ||
1 | +@model Maps.Entities.ServiceObject | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>ServiceObject</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="ServiceObjectId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="ArrangementElements" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="ArrangementElements" class="form-control" /> | ||
26 | + <span asp-validation-for="ArrangementElements" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Capacity" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Capacity" class="form-control" /> | ||
33 | + <span asp-validation-for="Capacity" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="DepartmentAffiliationId" class="control-label col-md-2"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <select asp-for="DepartmentAffiliationId" class="form-control" asp-items="ViewBag.DepartmentAffiliationId"></select> | ||
40 | + <span asp-validation-for="DepartmentAffiliationId" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <input asp-for="Distance" class="form-control" /> | ||
47 | + <span asp-validation-for="Distance" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="LocationAxis" class="col-md-2 control-label"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <input asp-for="LocationAxis" class="form-control" /> | ||
54 | + <span asp-validation-for="LocationAxis" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="LocationLeft" class="col-md-2 control-label"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <input asp-for="LocationLeft" class="form-control" /> | ||
61 | + <span asp-validation-for="LocationLeft" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="LocationRight" class="col-md-2 control-label"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <input asp-for="LocationRight" class="form-control" /> | ||
68 | + <span asp-validation-for="LocationRight" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
73 | + <div class="col-md-10"> | ||
74 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
75 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
76 | + </div> | ||
77 | + </div> | ||
78 | + <div class="form-group"> | ||
79 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
80 | + <div class="col-md-10"> | ||
81 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
82 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
83 | + </div> | ||
84 | + </div> | ||
85 | + <div class="form-group"> | ||
86 | + <label asp-for="ServiceObjectTypeId" class="control-label col-md-2"></label> | ||
87 | + <div class="col-md-10"> | ||
88 | + <select asp-for="ServiceObjectTypeId" class="form-control" asp-items="ViewBag.ServiceObjectTypeId"></select> | ||
89 | + <span asp-validation-for="ServiceObjectTypeId" class="text-danger" /> | ||
90 | + </div> | ||
91 | + </div> | ||
92 | + <div class="form-group"> | ||
93 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | ||
94 | + <div class="col-md-10"> | ||
95 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | ||
96 | + <span asp-validation-for="SettlementId" class="text-danger" /> | ||
97 | + </div> | ||
98 | + </div> | ||
99 | + <div class="form-group"> | ||
100 | + <div class="col-md-offset-2 col-md-10"> | ||
101 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
102 | + </div> | ||
103 | + </div> | ||
104 | + </div> | ||
105 | +</form> | ||
106 | + | ||
107 | +<div> | ||
108 | + <a asp-action="Index">Back to List</a> | ||
109 | +</div> | ||
110 | + | ||
111 | +</body> | ||
112 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObject/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.ServiceObject> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.ArrangementElements) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Capacity) | ||
26 | + </th> | ||
27 | + <th> | ||
28 | + @Html.DisplayNameFor(model => model.Distance) | ||
29 | + </th> | ||
30 | + <th> | ||
31 | + @Html.DisplayNameFor(model => model.LocationAxis) | ||
32 | + </th> | ||
33 | + <th> | ||
34 | + @Html.DisplayNameFor(model => model.LocationLeft) | ||
35 | + </th> | ||
36 | + <th> | ||
37 | + @Html.DisplayNameFor(model => model.LocationRight) | ||
38 | + </th> | ||
39 | + <th></th> | ||
40 | + </tr> | ||
41 | + </thead> | ||
42 | + <tbody> | ||
43 | +@foreach (var item in Model) { | ||
44 | + <tr> | ||
45 | + <td> | ||
46 | + @Html.DisplayFor(modelItem => item.ArrangementElements) | ||
47 | + </td> | ||
48 | + <td> | ||
49 | + @Html.DisplayFor(modelItem => item.Capacity) | ||
50 | + </td> | ||
51 | + <td> | ||
52 | + @Html.DisplayFor(modelItem => item.Distance) | ||
53 | + </td> | ||
54 | + <td> | ||
55 | + @Html.DisplayFor(modelItem => item.LocationAxis) | ||
56 | + </td> | ||
57 | + <td> | ||
58 | + @Html.DisplayFor(modelItem => item.LocationLeft) | ||
59 | + </td> | ||
60 | + <td> | ||
61 | + @Html.DisplayFor(modelItem => item.LocationRight) | ||
62 | + </td> | ||
63 | + <td> | ||
64 | + <a asp-action="Edit" asp-route-id="@item.ServiceObjectId">Edit</a> | | ||
65 | + <a asp-action="Details" asp-route-id="@item.ServiceObjectId">Details</a> | | ||
66 | + <a asp-action="Delete" asp-route-id="@item.ServiceObjectId">Delete</a> | ||
67 | + </td> | ||
68 | + </tr> | ||
69 | +} | ||
70 | + </tbody> | ||
71 | +</table> | ||
72 | +</body> | ||
73 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObjectType/Create.cshtml | ||
1 | +@model Maps.Entities.ServiceObjectType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>ServiceObjectType</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Name" class="form-control" /> | ||
25 | + <span asp-validation-for="Name" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <div class="col-md-offset-2 col-md-10"> | ||
30 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
31 | + </div> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | +</form> | ||
35 | + | ||
36 | +<div> | ||
37 | + <a asp-action="Index">Back to List</a> | ||
38 | +</div> | ||
39 | + | ||
40 | +</body> | ||
41 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObjectType/Delete.cshtml | ||
1 | +@model Maps.Entities.ServiceObjectType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>ServiceObjectType</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Name) | ||
26 | + </dd> | ||
27 | + </dl> | ||
28 | + | ||
29 | + <form asp-action="Delete"> | ||
30 | + <div class="form-actions no-color"> | ||
31 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
32 | + <a asp-action="Index">Back to List</a> | ||
33 | + </div> | ||
34 | + </form> | ||
35 | +</div> | ||
36 | +</body> | ||
37 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObjectType/Details.cshtml | ||
1 | +@model Maps.Entities.ServiceObjectType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>ServiceObjectType</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Name) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Name) | ||
25 | + </dd> | ||
26 | + </dl> | ||
27 | +</div> | ||
28 | +<div> | ||
29 | + <a asp-action="Edit" asp-route-id="@Model.ServiceObjectTypeId">Edit</a> | | ||
30 | + <a asp-action="Index">Back to List</a> | ||
31 | +</div> | ||
32 | +</body> | ||
33 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObjectType/Edit.cshtml | ||
1 | +@model Maps.Entities.ServiceObjectType | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>ServiceObjectType</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="ServiceObjectTypeId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Name" class="form-control" /> | ||
26 | + <span asp-validation-for="Name" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <div class="col-md-offset-2 col-md-10"> | ||
31 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
32 | + </div> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | +</form> | ||
36 | + | ||
37 | +<div> | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | +</div> | ||
40 | + | ||
41 | +</body> | ||
42 | +</html> |
1 | +++ a/src/Maps/Views/ServiceObjectType/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.ServiceObjectType> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </th> | ||
24 | + <th></th> | ||
25 | + </tr> | ||
26 | + </thead> | ||
27 | + <tbody> | ||
28 | +@foreach (var item in Model) { | ||
29 | + <tr> | ||
30 | + <td> | ||
31 | + @Html.DisplayFor(modelItem => item.Name) | ||
32 | + </td> | ||
33 | + <td> | ||
34 | + <a asp-action="Edit" asp-route-id="@item.ServiceObjectTypeId">Edit</a> | | ||
35 | + <a asp-action="Details" asp-route-id="@item.ServiceObjectTypeId">Details</a> | | ||
36 | + <a asp-action="Delete" asp-route-id="@item.ServiceObjectTypeId">Delete</a> | ||
37 | + </td> | ||
38 | + </tr> | ||
39 | +} | ||
40 | + </tbody> | ||
41 | +</table> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/Settlement/Create.cshtml | ||
1 | +@model Maps.Entities.Settlement | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Settlement</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Name" class="form-control" /> | ||
25 | + <span asp-validation-for="Name" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Sign" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Sign" class="form-control" /> | ||
32 | + <span asp-validation-for="Sign" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <div class="col-md-offset-2 col-md-10"> | ||
37 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
38 | + </div> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | +</form> | ||
42 | + | ||
43 | +<div> | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | +</div> | ||
46 | + | ||
47 | +</body> | ||
48 | +</html> |
1 | +++ a/src/Maps/Views/Settlement/Delete.cshtml | ||
1 | +@model Maps.Entities.Settlement | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>Settlement</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Name) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Sign) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Sign) | ||
32 | + </dd> | ||
33 | + </dl> | ||
34 | + | ||
35 | + <form asp-action="Delete"> | ||
36 | + <div class="form-actions no-color"> | ||
37 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
38 | + <a asp-action="Index">Back to List</a> | ||
39 | + </div> | ||
40 | + </form> | ||
41 | +</div> | ||
42 | +</body> | ||
43 | +</html> |
1 | +++ a/src/Maps/Views/Settlement/Details.cshtml | ||
1 | +@model Maps.Entities.Settlement | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>Settlement</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Name) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Name) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Sign) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Sign) | ||
31 | + </dd> | ||
32 | + </dl> | ||
33 | +</div> | ||
34 | +<div> | ||
35 | + <a asp-action="Edit" asp-route-id="@Model.SettlementId">Edit</a> | | ||
36 | + <a asp-action="Index">Back to List</a> | ||
37 | +</div> | ||
38 | +</body> | ||
39 | +</html> |
1 | +++ a/src/Maps/Views/Settlement/Edit.cshtml | ||
1 | +@model Maps.Entities.Settlement | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>Settlement</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="SettlementId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Name" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Name" class="form-control" /> | ||
26 | + <span asp-validation-for="Name" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Sign" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Sign" class="form-control" /> | ||
33 | + <span asp-validation-for="Sign" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <div class="col-md-offset-2 col-md-10"> | ||
38 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
39 | + </div> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | +</form> | ||
43 | + | ||
44 | +<div> | ||
45 | + <a asp-action="Index">Back to List</a> | ||
46 | +</div> | ||
47 | + | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/Settlement/Index.cshtml | ||
1 | +@model IEnumerable<Maps.Entities.Settlement> | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Index</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | +<p> | ||
16 | + <a asp-action="Create">Create New</a> | ||
17 | +</p> | ||
18 | +<table class="table"> | ||
19 | + <thead> | ||
20 | + <tr> | ||
21 | + <th> | ||
22 | + @Html.DisplayNameFor(model => model.Name) | ||
23 | + </th> | ||
24 | + <th> | ||
25 | + @Html.DisplayNameFor(model => model.Sign) | ||
26 | + </th> | ||
27 | + <th></th> | ||
28 | + </tr> | ||
29 | + </thead> | ||
30 | + <tbody> | ||
31 | +@foreach (var item in Model) { | ||
32 | + <tr> | ||
33 | + <td> | ||
34 | + @Html.DisplayFor(modelItem => item.Name) | ||
35 | + </td> | ||
36 | + <td> | ||
37 | + @Html.DisplayFor(modelItem => item.Sign) | ||
38 | + </td> | ||
39 | + <td> | ||
40 | + <a asp-action="Edit" asp-route-id="@item.SettlementId">Edit</a> | | ||
41 | + <a asp-action="Details" asp-route-id="@item.SettlementId">Details</a> | | ||
42 | + <a asp-action="Delete" asp-route-id="@item.SettlementId">Delete</a> | ||
43 | + </td> | ||
44 | + </tr> | ||
45 | +} | ||
46 | + </tbody> | ||
47 | +</table> | ||
48 | +</body> | ||
49 | +</html> |
1 | +++ a/src/Maps/Views/SettlementAddressLink/Create.cshtml | ||
1 | +@model Maps.Entities.SettlementAddressLink | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Create</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Create"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>SettlementAddressLink</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <div class="form-group"> | ||
22 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
23 | + <div class="col-md-10"> | ||
24 | + <input asp-for="Begin" class="form-control" /> | ||
25 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
26 | + </div> | ||
27 | + </div> | ||
28 | + <div class="form-group"> | ||
29 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | ||
30 | + <div class="col-md-10"> | ||
31 | + <input asp-for="Distance" class="form-control" /> | ||
32 | + <span asp-validation-for="Distance" class="text-danger" /> | ||
33 | + </div> | ||
34 | + </div> | ||
35 | + <div class="form-group"> | ||
36 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
37 | + <div class="col-md-10"> | ||
38 | + <input asp-for="End" class="form-control" /> | ||
39 | + <span asp-validation-for="End" class="text-danger" /> | ||
40 | + </div> | ||
41 | + </div> | ||
42 | + <div class="form-group"> | ||
43 | + <label asp-for="RegionId" class="col-md-2 control-label"></label> | ||
44 | + <div class="col-md-10"> | ||
45 | + <select asp-for="RegionId" class ="form-control" asp-items="ViewBag.RegionId"></select> | ||
46 | + </div> | ||
47 | + </div> | ||
48 | + <div class="form-group"> | ||
49 | + <label asp-for="RoadId" class="col-md-2 control-label"></label> | ||
50 | + <div class="col-md-10"> | ||
51 | + <select asp-for="RoadId" class ="form-control" asp-items="ViewBag.RoadId"></select> | ||
52 | + </div> | ||
53 | + </div> | ||
54 | + <div class="form-group"> | ||
55 | + <label asp-for="SettlementId" class="col-md-2 control-label"></label> | ||
56 | + <div class="col-md-10"> | ||
57 | + <select asp-for="SettlementId" class ="form-control" asp-items="ViewBag.SettlementId"></select> | ||
58 | + </div> | ||
59 | + </div> | ||
60 | + <div class="form-group"> | ||
61 | + <label asp-for="SettlementLocationId" class="col-md-2 control-label"></label> | ||
62 | + <div class="col-md-10"> | ||
63 | + <select asp-for="SettlementLocationId" class ="form-control" asp-items="ViewBag.SettlementLocationId"></select> | ||
64 | + </div> | ||
65 | + </div> | ||
66 | + <div class="form-group"> | ||
67 | + <div class="col-md-offset-2 col-md-10"> | ||
68 | + <input type="submit" value="Create" class="btn btn-default" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + </div> | ||
72 | +</form> | ||
73 | + | ||
74 | +<div> | ||
75 | + <a asp-action="Index">Back to List</a> | ||
76 | +</div> | ||
77 | + | ||
78 | +</body> | ||
79 | +</html> |
1 | +++ a/src/Maps/Views/SettlementAddressLink/Delete.cshtml | ||
1 | +@model Maps.Entities.SettlementAddressLink | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Delete</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<h3>Are you sure you want to delete this?</h3> | ||
17 | +<div> | ||
18 | + <h4>SettlementAddressLink</h4> | ||
19 | + <hr /> | ||
20 | + <dl class="dl-horizontal"> | ||
21 | + <dt> | ||
22 | + @Html.DisplayNameFor(model => model.Begin) | ||
23 | + </dt> | ||
24 | + <dd> | ||
25 | + @Html.DisplayFor(model => model.Begin) | ||
26 | + </dd> | ||
27 | + <dt> | ||
28 | + @Html.DisplayNameFor(model => model.Distance) | ||
29 | + </dt> | ||
30 | + <dd> | ||
31 | + @Html.DisplayFor(model => model.Distance) | ||
32 | + </dd> | ||
33 | + <dt> | ||
34 | + @Html.DisplayNameFor(model => model.End) | ||
35 | + </dt> | ||
36 | + <dd> | ||
37 | + @Html.DisplayFor(model => model.End) | ||
38 | + </dd> | ||
39 | + </dl> | ||
40 | + | ||
41 | + <form asp-action="Delete"> | ||
42 | + <div class="form-actions no-color"> | ||
43 | + <input type="submit" value="Delete" class="btn btn-default" /> | | ||
44 | + <a asp-action="Index">Back to List</a> | ||
45 | + </div> | ||
46 | + </form> | ||
47 | +</div> | ||
48 | +</body> | ||
49 | +</html> |
src/Maps/Views/SettlementAddressLink/Details.cshtml
0 → 100755
1 | +++ a/src/Maps/Views/SettlementAddressLink/Details.cshtml | ||
1 | +@model Maps.Entities.SettlementAddressLink | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Details</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<div> | ||
17 | + <h4>SettlementAddressLink</h4> | ||
18 | + <hr /> | ||
19 | + <dl class="dl-horizontal"> | ||
20 | + <dt> | ||
21 | + @Html.DisplayNameFor(model => model.Begin) | ||
22 | + </dt> | ||
23 | + <dd> | ||
24 | + @Html.DisplayFor(model => model.Begin) | ||
25 | + </dd> | ||
26 | + <dt> | ||
27 | + @Html.DisplayNameFor(model => model.Distance) | ||
28 | + </dt> | ||
29 | + <dd> | ||
30 | + @Html.DisplayFor(model => model.Distance) | ||
31 | + </dd> | ||
32 | + <dt> | ||
33 | + @Html.DisplayNameFor(model => model.End) | ||
34 | + </dt> | ||
35 | + <dd> | ||
36 | + @Html.DisplayFor(model => model.End) | ||
37 | + </dd> | ||
38 | + </dl> | ||
39 | +</div> | ||
40 | +<div> | ||
41 | + <a asp-action="Edit" asp-route-id="@Model.SettlementAddressLinkId">Edit</a> | | ||
42 | + <a asp-action="Index">Back to List</a> | ||
43 | +</div> | ||
44 | +</body> | ||
45 | +</html> |
1 | +++ a/src/Maps/Views/SettlementAddressLink/Edit.cshtml | ||
1 | +@model Maps.Entities.SettlementAddressLink | ||
2 | + | ||
3 | +@{ | ||
4 | + Layout = null; | ||
5 | +} | ||
6 | + | ||
7 | +<!DOCTYPE html> | ||
8 | + | ||
9 | +<html> | ||
10 | +<head> | ||
11 | + <meta name="viewport" content="width=device-width" /> | ||
12 | + <title>Edit</title> | ||
13 | +</head> | ||
14 | +<body> | ||
15 | + | ||
16 | +<form asp-action="Edit"> | ||
17 | + <div class="form-horizontal"> | ||
18 | + <h4>SettlementAddressLink</h4> | ||
19 | + <hr /> | ||
20 | + <div asp-validation-summary="ModelOnly" class="text-danger"></div> | ||
21 | + <input type="hidden" asp-for="SettlementAddressLinkId" /> | ||
22 | + <div class="form-group"> | ||
23 | + <label asp-for="Begin" class="col-md-2 control-label"></label> | ||
24 | + <div class="col-md-10"> | ||
25 | + <input asp-for="Begin" class="form-control" /> | ||
26 | + <span asp-validation-for="Begin" class="text-danger" /> | ||
27 | + </div> | ||
28 | + </div> | ||
29 | + <div class="form-group"> | ||
30 | + <label asp-for="Distance" class="col-md-2 control-label"></label> | ||
31 | + <div class="col-md-10"> | ||
32 | + <input asp-for="Distance" class="form-control" /> | ||
33 | + <span asp-validation-for="Distance" class="text-danger" /> | ||
34 | + </div> | ||
35 | + </div> | ||
36 | + <div class="form-group"> | ||
37 | + <label asp-for="End" class="col-md-2 control-label"></label> | ||
38 | + <div class="col-md-10"> | ||
39 | + <input asp-for="End" class="form-control" /> | ||
40 | + <span asp-validation-for="End" class="text-danger" /> | ||
41 | + </div> | ||
42 | + </div> | ||
43 | + <div class="form-group"> | ||
44 | + <label asp-for="RegionId" class="control-label col-md-2"></label> | ||
45 | + <div class="col-md-10"> | ||
46 | + <select asp-for="RegionId" class="form-control" asp-items="ViewBag.RegionId"></select> | ||
47 | + <span asp-validation-for="RegionId" class="text-danger" /> | ||
48 | + </div> | ||
49 | + </div> | ||
50 | + <div class="form-group"> | ||
51 | + <label asp-for="RoadId" class="control-label col-md-2"></label> | ||
52 | + <div class="col-md-10"> | ||
53 | + <select asp-for="RoadId" class="form-control" asp-items="ViewBag.RoadId"></select> | ||
54 | + <span asp-validation-for="RoadId" class="text-danger" /> | ||
55 | + </div> | ||
56 | + </div> | ||
57 | + <div class="form-group"> | ||
58 | + <label asp-for="SettlementId" class="control-label col-md-2"></label> | ||
59 | + <div class="col-md-10"> | ||
60 | + <select asp-for="SettlementId" class="form-control" asp-items="ViewBag.SettlementId"></select> | ||
61 | + <span asp-validation-for="SettlementId" class="text-danger" /> | ||
62 | + </div> | ||
63 | + </div> | ||
64 | + <div class="form-group"> | ||
65 | + <label asp-for="SettlementLocationId" class="control-label col-md-2"></label> | ||
66 | + <div class="col-md-10"> | ||
67 | + <select asp-for="SettlementLocationId" class="form-control" asp-items="ViewBag.SettlementLocationId"></select> | ||
68 | + <span asp-validation-for="SettlementLocationId" class="text-danger" /> | ||
69 | + </div> | ||
70 | + </div> | ||
71 | + <div class="form-group"> | ||
72 | + <div class="col-md-offset-2 col-md-10"> | ||
73 | + <input type="submit" value="Save" class="btn btn-default" /> | ||
74 | + </div> | ||
75 | + </div> | ||
76 | + </div> | ||
77 | +</form> | ||
78 | + | ||
79 | +<div> | ||
80 | + <a asp-action="Index">Back to List</a> | ||
81 | +</div> | ||
82 | + | ||
83 | +</body> | ||
84 | +</html> |