Skip to content

Commit 9580f62

Browse files
committed
chore: move template to Shared/EditorTemplates folder
1 parent 1f2d60d commit 9580f62

File tree

7 files changed

+49
-47
lines changed

7 files changed

+49
-47
lines changed

grid/custom-popup-editor/KendoUIMVC5/KendoUIMVC5.csproj

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,9 @@
4949
<Reference Include="EntityFramework.SqlServer">
5050
<HintPath>..\packages\EntityFramework.6.0.1\lib\net45\EntityFramework.SqlServer.dll</HintPath>
5151
</Reference>
52-
<Reference Include="Kendo.Mvc">
53-
<HintPath>..\lib\KENDOUIMVC\2014.2.1008.545\Kendo.Mvc.dll</HintPath>
54-
<Private>True</Private>
52+
<Reference Include="Kendo.Mvc, Version=2018.3.1017.545, Culture=neutral, PublicKeyToken=121fae78165ba3d4, processorArchitecture=MSIL">
53+
<SpecificVersion>False</SpecificVersion>
54+
<HintPath>..\lib\Kendo\2018.3.1017\Kendo.Mvc.dll</HintPath>
5555
</Reference>
5656
<Reference Include="Microsoft.CSharp" />
5757
<Reference Include="Microsoft.Web.Infrastructure, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
@@ -71,30 +71,30 @@
7171
<Reference Include="System.Core" />
7272
<Reference Include="System.Data.DataSetExtensions" />
7373
<Reference Include="System.Web.Helpers, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
74-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.Helpers.dll</HintPath>
74+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.Helpers.dll</HintPath>
7575
<Private>True</Private>
7676
</Reference>
77-
<Reference Include="System.Web.Mvc, Version=5.2.3.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78-
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.3\lib\net45\System.Web.Mvc.dll</HintPath>
77+
<Reference Include="System.Web.Mvc, Version=5.2.7.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
78+
<HintPath>..\packages\Microsoft.AspNet.Mvc.5.2.7\lib\net45\System.Web.Mvc.dll</HintPath>
7979
<Private>True</Private>
8080
</Reference>
8181
<Reference Include="System.Web.Optimization">
8282
<HintPath>..\packages\Microsoft.AspNet.Web.Optimization.1.1.3\lib\net40\System.Web.Optimization.dll</HintPath>
8383
</Reference>
8484
<Reference Include="System.Web.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
85-
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.3\lib\net45\System.Web.Razor.dll</HintPath>
85+
<HintPath>..\packages\Microsoft.AspNet.Razor.3.2.7\lib\net45\System.Web.Razor.dll</HintPath>
8686
<Private>True</Private>
8787
</Reference>
8888
<Reference Include="System.Web.WebPages, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
89-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.dll</HintPath>
89+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.dll</HintPath>
9090
<Private>True</Private>
9191
</Reference>
9292
<Reference Include="System.Web.WebPages.Deployment, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
93-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
93+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Deployment.dll</HintPath>
9494
<Private>True</Private>
9595
</Reference>
9696
<Reference Include="System.Web.WebPages.Razor, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL">
97-
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.3\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
97+
<HintPath>..\packages\Microsoft.AspNet.WebPages.3.2.7\lib\net45\System.Web.WebPages.Razor.dll</HintPath>
9898
<Private>True</Private>
9999
</Reference>
100100
<Reference Include="System.Xml.Linq" />
@@ -122,7 +122,6 @@
122122
<Compile Include="Properties\AssemblyInfo.cs" />
123123
</ItemGroup>
124124
<ItemGroup>
125-
<Content Include="bin\Kendo.Mvc.dll" />
126125
<Content Include="fonts\glyphicons-halflings-regular.svg" />
127126
<Content Include="Images\accent.png" />
128127
<Content Include="Images\bullet.png" />
@@ -157,10 +156,11 @@
157156
<Content Include="Views\Shared\EditorTemplates\String.cshtml" />
158157
<Content Include="Views\Shared\EditorTemplates\Time.cshtml" />
159158
<Content Include="Views\Shared\EditorTemplates\Url.cshtml" />
160-
<Content Include="Views\Home\EditorTemplates\Person.cshtml" />
159+
<Content Include="Views\Shared\EditorTemplates\Person.cshtml" />
161160
</ItemGroup>
162161
<ItemGroup>
163162
<Folder Include="App_Data\" />
163+
<Folder Include="bin\" />
164164
</ItemGroup>
165165
<ItemGroup>
166166
<Content Include="fonts\glyphicons-halflings-regular.woff" />

grid/custom-popup-editor/KendoUIMVC5/Views/Home/EditorTemplates/Person.cshtml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@model KendoUIMVC5.Models.Person
2+
3+
<div class="k-edit-form-container">
4+
<h3>Customized Person edit template</h3>
5+
<br />
6+
@Html.HiddenFor(model => model.PersonID)
7+
8+
<div class="k-edit-label">
9+
@Html.LabelFor(model => model.Name)
10+
</div>
11+
<div class="k-edit-field">
12+
@Html.EditorFor(model => model.Name)
13+
@Html.ValidationMessageFor(model => model.Name)
14+
</div>
15+
16+
<div class="k-edit-label">
17+
@Html.LabelFor(model => model.BirthDate)
18+
</div>
19+
<div class="k-edit-field">
20+
@Html.Kendo().DateTimePickerFor(model => model.BirthDate)
21+
@Html.ValidationMessageFor(model => model.BirthDate)
22+
</div>
23+
</div>
24+

grid/custom-popup-editor/KendoUIMVC5/Views/Shared/_Layout.cshtml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,19 +8,19 @@
88
<title>@ViewBag.Title - My Telerik MVC Application</title>
99
<link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
1010

11-
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.common.min.css">
12-
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.rtl.min.css">
13-
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.default.min.css">
14-
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2017.2.621/styles/kendo.mobile.all.min.css">
11+
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.common.min.css">
12+
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.rtl.min.css">
13+
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.default.min.css">
14+
<link rel="stylesheet" href="http://kendo.cdn.telerik.com/2018.3.1017/styles/kendo.mobile.all.min.css">
1515

1616
<script src="http://code.jquery.com/jquery-1.12.3.min.js"></script>
17-
<script src="http://kendo.cdn.telerik.com/2017.2.621/js/angular.min.js"></script>
18-
<script src="http://kendo.cdn.telerik.com/2017.2.621/js/jszip.min.js"></script>
19-
<script src="http://kendo.cdn.telerik.com/2017.2.621/js/kendo.all.min.js"></script>
20-
<script src="http://kendo.cdn.telerik.com/2017.2.621/js/kendo.aspnetmvc.min.js"></script>
17+
<script src="http://kendo.cdn.telerik.com/2018.3.1017/js/angular.min.js"></script>
18+
<script src="http://kendo.cdn.telerik.com/2018.3.1017/js/jszip.min.js"></script>
19+
<script src="http://kendo.cdn.telerik.com/2018.3.1017/js/kendo.all.min.js"></script>
20+
<script src="http://kendo.cdn.telerik.com/2018.3.1017/js/kendo.aspnetmvc.min.js"></script>
2121

2222

23-
<script src="http://kendo.cdn.telerik.com/2017.2.621/js/cultures/kendo.culture.@(culture).min.js"></script>
23+
<script src="http://kendo.cdn.telerik.com/2018.3.1017/js/cultures/kendo.culture.@(culture).min.js"></script>
2424
<script>
2525
kendo.culture("@culture");
2626
</script>

grid/custom-popup-editor/KendoUIMVC5/packages.config

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
<package id="bootstrap" version="3.0.0" targetFramework="net45" />
55
<package id="EntityFramework" version="6.0.1" targetFramework="net45" />
66
<package id="jQuery" version="1.10.2" targetFramework="net45" />
7-
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net45" />
8-
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net45" />
7+
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net45" />
8+
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net45" />
99
<package id="Microsoft.AspNet.Web.Optimization" version="1.1.3" targetFramework="net45" />
10-
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net45" />
10+
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net45" />
1111
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net45" />
1212
<package id="Modernizr" version="2.6.2" targetFramework="net45" />
1313
<package id="Newtonsoft.Json" version="5.0.6" targetFramework="net45" />

grid/custom-popup-editor/KendoUIMVC5/web.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
</dependentAssembly>
4444
<dependentAssembly>
4545
<assemblyIdentity name="System.Web.Mvc" publicKeyToken="31bf3856ad364e35" />
46-
<bindingRedirect oldVersion="1.0.0.0-5.2.3.0" newVersion="5.2.3.0" />
46+
<bindingRedirect oldVersion="0.0.0.0-5.2.7.0" newVersion="5.2.7.0" />
4747
</dependentAssembly>
4848
</assemblyBinding>
4949
</runtime>
2.12 MB
Binary file not shown.

0 commit comments

Comments
 (0)