Browse Source

CHG Changement du nom du layout pour prendre celui par défaut

julien.legrand 8 years ago
parent
commit
423063f4a0

+ 1 - 1
CD67.ModeleMVC.MVC/CD67.ModeleMVC.MVC.csproj

@@ -243,7 +243,7 @@
       <DependentUpon>Web.config</DependentUpon>
     </Content>
     <Content Include="Views\Web.config" />
-    <Content Include="Views\Shared\_AppLayout.cshtml" />
+    <Content Include="Views\Shared\_Layout.cshtml" />
     <Content Include="Views\Shared\DisplayTemplates\YesNoInt.cshtml" />
     <Content Include="Views\Shared\EditorTemplates\YesNoInt.cshtml" />
     <Content Include="Views\Home\Index.cshtml" />

+ 1 - 1
CD67.ModeleMVC.MVC/Views/Home/About.cshtml

@@ -1,7 +1,7 @@
 
 @{
     ViewBag.Title = "About";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 
 <h2 id="title-l2">About</h2>

+ 1 - 1
CD67.ModeleMVC.MVC/Views/Home/Index.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Accueil";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 
 <h2 id="title-l2">Accueil</h2>

+ 0 - 0
CD67.ModeleMVC.MVC/Views/Shared/_AppLayout.cshtml → CD67.ModeleMVC.MVC/Views/Shared/_Layout.cshtml


+ 1 - 1
CD67.ModeleMVC.MVC/Views/TYPE_VIKING/Create.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Create";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Type de Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/TYPE_VIKING/Delete.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Delete";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Type de Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/TYPE_VIKING/Details.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Details";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Type de Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/TYPE_VIKING/Edit.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Edit";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Type de Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/TYPE_VIKING/Index.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Index";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
     
 }
 <title>Type de Vikings</title>

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Create.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Create";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Delete.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Delete";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Details.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Details";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Edit.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Edit";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Vikings</title>
 

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Index.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Index";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 <title>Vikings</title>
 <h2 id="title-l1">Vikings</h2>

+ 1 - 1
CD67.ModeleMVC.MVC/Views/VIKINGS/Test.cshtml

@@ -2,7 +2,7 @@
 
 @{
     ViewBag.Title = "Test";
-    Layout = "~/Views/Shared/_AppLayout.cshtml";
+    Layout = "~/Views/Shared/_Layout.cshtml";
 }
 
 <h2>Details</h2>

+ 1 - 1
README.md

@@ -103,7 +103,7 @@ Le dossier "Internal" contient la classe de base "baseFactory" dont chaque "Fact
 La partie Model du projet n'est pas nécessaire que pour définir des classes ne servant qu'à l'affichage, les classes mêtiers étant dans le projet Entity.
 
 Le dossier "Views" contient par défaut :
-- "Shared\_AppLayout.cshtml" : une page de disposition pour l'application
+- "Shared\_Layout.cshtml" : une page de disposition pour l'application
 - "DisplayTemplates\YesNo.cshtml" et "EditorTemplates\YesNo.cshtml" : ils s'agit d'exemple de personnalisation d'affichage pour un type de champ, ici "YesNo". On attribut un type avec la DataAnnotation "[UIHint("YesNo")]" dans la classe Metadata et ce sont les fichiers dans DisplayTemplates et EditorTemplates du même nom qui seront utilisés pour créer le contrôle à l'affichage.
 
 Le dossier "style" contient :