refactoring
This commit is contained in:
parent
5cc77545dd
commit
fa85a5a1a6
46 changed files with 3130 additions and 553 deletions
|
|
@ -15,10 +15,10 @@
|
|||
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Availability)
|
||||
@Html.DisplayNameFor(model => model.Schedule)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Availability)
|
||||
@Html.DisplayFor(model => model.Schedule)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ActionDistance)
|
||||
|
|
|
|||
|
|
@ -156,11 +156,6 @@
|
|||
<script>
|
||||
$(document).ready(function () {
|
||||
|
||||
$('#datetimepicker2').datetimepicker({
|
||||
locale: 'fr',
|
||||
format: "YYYY/MM/DD HH:mm"
|
||||
});
|
||||
|
||||
var config = {
|
||||
mapId: 'map',
|
||||
addrId: 'Location_Address',
|
||||
|
|
@ -343,12 +338,13 @@
|
|||
<div class="container">
|
||||
<div class="row">
|
||||
<div class='col-sm-6'>
|
||||
<div class='input-group date' id='datetimepicker2'>
|
||||
<input class="form-control" name="EventDate" />
|
||||
<span class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</span>
|
||||
</div>
|
||||
@await Component.InvokeAsync(
|
||||
"Calendar",
|
||||
"Default",
|
||||
"EventDate",
|
||||
Model.PerformerProfile.PerformerId,
|
||||
Model.PerformerProfile.Performer.DedicatedGoogleCalendar)
|
||||
|
||||
</div>
|
||||
<span asp-validation-for="EventDate" class="text-danger">
|
||||
</span>
|
||||
|
|
|
|||
13
Yavsc/Views/Home/CGV.cshtml
Normal file
13
Yavsc/Views/Home/CGV.cshtml
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
@{
|
||||
ViewData["Title"] = "Conditions Générales de Vente";
|
||||
}
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
<markdown>
|
||||
|
||||
Le paiement intervient à la commande, quelque soit la date d'intervention.
|
||||
Vous pouvez annuler votre commande depuis la [liste de vos commande en cours](/HairCutCommand/),
|
||||
|
||||
Vous pouvez demander le remboursement d'un paiement, dans le cadre d'une réclamation sur l'execution
|
||||
de votre commande, en nous contactant via courrier éléctronique ou postal, [que vour retrouverez sur la page de contact](/Home/Contact), votre demande sera rapidement traitée.
|
||||
|
||||
</markdown>
|
||||
14
Yavsc/Views/Home/Privacy.cshtml
Normal file
14
Yavsc/Views/Home/Privacy.cshtml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@{
|
||||
ViewData["Title"] = @SR["Confidentialité"]+" "+@SiteSettings.Value.Title;
|
||||
}
|
||||
<h1>@ViewData["Title"]</h1>
|
||||
|
||||
<markdown>
|
||||
## La confidentialité
|
||||
|
||||
À aucun moment, aucune adresse postale, aucune adresse e-mail ni aucun numéro de téléphone
|
||||
ne sont transmis à personne. Seul le système et son [possesseur](/Home/Contact) a accès à ces informations.
|
||||
|
||||
De plus, le droit de retrait est permanent et sa mise en oeuvre [immédiate](/Account/Delete).
|
||||
|
||||
</markdown>
|
||||
11
Yavsc/Views/Shared/Components/Calendar/Default.cshtml
Normal file
11
Yavsc/Views/Shared/Components/Calendar/Default.cshtml
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
@model DateTimeChooserViewModel
|
||||
|
||||
|
||||
@Newtonsoft.Json.JsonConvert.SerializeObject(ViewData["Calendar"])
|
||||
|
||||
<div class='input-group date'>
|
||||
<input class="form-control" name="@Model.InputId" />
|
||||
<span class="input-group-addon">
|
||||
<span class="glyphicon glyphicon-calendar"></span>
|
||||
</span>
|
||||
</div>
|
||||
|
|
@ -1,3 +1,2 @@
|
|||
@model Availability
|
||||
|
||||
L'index des periodes ...
|
||||
|
|
@ -13,3 +13,4 @@
|
|||
</script>
|
||||
</environment>
|
||||
<script src="~/lib/jquery-validation/additional-methods.js" charset="UTF-8"></script>
|
||||
<script src="~/js/input-lib.js"></script>
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@
|
|||
@using Yavsc.Models.Haircut;
|
||||
@using Yavsc.Models.Payment;
|
||||
@using Yavsc.Models.Calendar;
|
||||
@using Yavsc.Models.Google.Calendar
|
||||
@using Yavsc.Billing;
|
||||
|
||||
@using Yavsc.ViewModels;
|
||||
|
|
@ -48,3 +49,4 @@
|
|||
@inject IOptions<GoogleAuthSettings> GoogleSettings
|
||||
@inject IOptions<SiteSettings> SiteSettings
|
||||
@inject IHostingEnvironment HostingEnvironment
|
||||
@inject ICalendarManager CalendarManager;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue