diff --git a/Yavsc/Controllers/Haircut/HairCutCommandController.cs b/Yavsc/Controllers/Haircut/HairCutCommandController.cs index bb01ce55..92777a0d 100644 --- a/Yavsc/Controllers/Haircut/HairCutCommandController.cs +++ b/Yavsc/Controllers/Haircut/HairCutCommandController.cs @@ -281,9 +281,10 @@ namespace Yavsc.Controllers PerformerId = perfer.PerformerId, ClientId = uid, Prestation = pPrestation, - Client = user + Client = user, + Location = new Location { Address = "" }, + EventDate = new DateTime() }; - return View(result); } private void SetViewData (string activityCode, string performerId, HairPrestation pPrestation ) diff --git a/Yavsc/Startup/Startup.cs b/Yavsc/Startup/Startup.cs index bb5c7fc7..59b81586 100755 --- a/Yavsc/Startup/Startup.cs +++ b/Yavsc/Startup/Startup.cs @@ -64,7 +64,7 @@ namespace Yavsc Configuration = builder.Build(); ConnectionString = Configuration["Data:DefaultConnection:ConnectionString"]; } - + public static GoogleAuthSettings GoogleSettings { get; set; } public IConfigurationRoot Configuration { get; set; } // This method gets called by the runtime. Use this method to add services to the container. @@ -235,6 +235,8 @@ namespace Yavsc }); } + + public static IStringLocalizer GlobalLocalizer { get; private set; } // This method gets called by the runtime. Use this method to configure the HTTP request pipeline. public void Configure(IApplicationBuilder app, IHostingEnvironment env, @@ -244,9 +246,11 @@ namespace Yavsc RoleManager roleManager, IAuthorizationService authorizationService, IOptions payPalSettings, + IOptions googleSettings, IStringLocalizer localizer, ILoggerFactory loggerFactory) { + GoogleSettings = googleSettings.Value; GlobalLocalizer = localizer; SiteSetup = siteSettings.Value; Authority = siteSettings.Value.Authority; diff --git a/Yavsc/Views/Command/Create.cshtml b/Yavsc/Views/Command/Create.cshtml index 049b5a81..d46f709b 100644 --- a/Yavsc/Views/Command/Create.cshtml +++ b/Yavsc/Views/Command/Create.cshtml @@ -18,6 +18,7 @@ } #Location_combo li:hover { text-decoration: underline; + cursor: pointer; } } diff --git a/Yavsc/Views/HairCutCommand/HairCut.cshtml b/Yavsc/Views/HairCutCommand/HairCut.cshtml index 87c7db21..66c4ac8b 100644 --- a/Yavsc/Views/HairCutCommand/HairCut.cshtml +++ b/Yavsc/Views/HairCutCommand/HairCut.cshtml @@ -1,6 +1,29 @@ @model HairCutQuery @{ ViewData["Title"] = $"{ViewBag.Activity.Name}: Votre commande"; } @await Html.PartialAsync("BrusherProfileScript",ViewData["PerfPrefs"]) + +@section header { + + + + + + + +} + @section scripts { + } @ViewBag.Activity.Description @@ -217,6 +335,52 @@ + +
+ +
+
+
+
+
+ + + + +
+
+ + +
+
+
+
+ +
+ +
+
+
+
+
+ + +
    +
+
+
+
+
+
+ +
+
+
@@ -244,4 +408,5 @@ - \ No newline at end of file + +@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } diff --git a/Yavsc/Views/Shared/_Layout.cshtml b/Yavsc/Views/Shared/_Layout.cshtml index b7610e26..c738ebe0 100755 --- a/Yavsc/Views/Shared/_Layout.cshtml +++ b/Yavsc/Views/Shared/_Layout.cshtml @@ -35,6 +35,37 @@ + + + + + + + + + +