FIXME SR is private
This commit is contained in:
@ -1,7 +1,5 @@
|
||||
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
@using Yavsc.ViewModels.Account
|
||||
@model LoginViewModel
|
||||
@model Yavsc.ViewModels.Account.LoginViewModel
|
||||
@{
|
||||
ViewData["Title"] = SR["Log in"];
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
@model IEnumerable<Yavsc.Models.IT.Fixing.Bug>
|
||||
@inject IStringLocalizer<Yavsc.Models.IT.Fixing.Resources> SRR
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["DeleteAllLike"];
|
||||
@ -41,7 +40,7 @@
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@SRR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]]
|
||||
@SR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]]
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a> |
|
||||
|
@ -1,5 +1,4 @@
|
||||
@model Yavsc.Models.IT.Fixing.Bug
|
||||
@inject IStringLocalizer<Yavsc.Models.IT.Fixing.Resources> SRR
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Details"];
|
||||
@ -27,7 +26,7 @@
|
||||
@SR["Status"]
|
||||
</dt>
|
||||
<dd>
|
||||
@SRR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)Model.Status]]
|
||||
@SR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)Model.Status]]
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
|
@ -1,5 +1,4 @@
|
||||
@model IEnumerable<Yavsc.Models.IT.Fixing.Bug>
|
||||
@inject IStringLocalizer<Yavsc.Models.IT.Fixing.Resources> SRR
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Index"];
|
||||
@ -41,7 +40,7 @@
|
||||
</td>
|
||||
<td>
|
||||
|
||||
@SRR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]]
|
||||
@SR[typeof(Yavsc.Models.IT.Fixing.BugStatus).GetEnumNames()[(int)item.Status]]
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a> |
|
||||
|
@ -1,75 +0,0 @@
|
||||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Create"];
|
||||
}
|
||||
|
||||
<h2>@SR["Create"]</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Active" />
|
||||
<label asp-for="Active"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DisplayName" class="form-control" />
|
||||
<span asp-validation-for="DisplayName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LogoutRedirectUri" class="form-control"></span>
|
||||
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RedirectUri" class="form-control" />
|
||||
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RefreshTokenLifeTime" class="form-control" ></span>
|
||||
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Secret" class="form-control" />
|
||||
<span asp-validation-for="Secret" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Type" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("Type")
|
||||
<span asp-validation-for="Type" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
|
@ -1,64 +0,0 @@
|
||||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Delete"];
|
||||
}
|
||||
|
||||
<h2>@SR["Delete"]</h2>
|
||||
|
||||
<h3>@SR["AreYourSureYouWantToDeleteThis"]</h3>
|
||||
<div>
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Active)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Active)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DisplayName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DisplayName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LogoutRedirectUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RedirectUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.RedirectUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.RefreshTokenLifeTime)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Secret)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Secret)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Type)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Type)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -1,66 +0,0 @@
|
||||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Details"];
|
||||
}
|
||||
|
||||
<h2>@SR["Details"]</h2>
|
||||
|
||||
<div>
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Id)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Id)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Active)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Active)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DisplayName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DisplayName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.LogoutRedirectUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RedirectUri)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.RedirectUri)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.RefreshTokenLifeTime)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Secret)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Secret)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Type)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Type)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a> |
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</p>
|
@ -1,76 +0,0 @@
|
||||
@model Client
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>@SR["Edit"]</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Client</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<div class="checkbox">
|
||||
<input asp-for="Active" />
|
||||
<label asp-for="Active"></label>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DisplayName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DisplayName" class="form-control" />
|
||||
<span asp-validation-for="DisplayName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="LogoutRedirectUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="LogoutRedirectUri" class="form-control" />
|
||||
<span asp-validation-for="LogoutRedirectUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RedirectUri" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RedirectUri" class="form-control" />
|
||||
<span asp-validation-for="RedirectUri" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="RefreshTokenLifeTime" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="RefreshTokenLifeTime" class="form-control" />
|
||||
<span asp-validation-for="RefreshTokenLifeTime" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Secret" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Secret" class="form-control" />
|
||||
<span asp-validation-for="Secret" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Type" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@Html.DropDownList("Type")
|
||||
<span asp-validation-for="Type" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
|
@ -1,68 +0,0 @@
|
||||
@model IEnumerable<Client>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Index"];
|
||||
}
|
||||
|
||||
<h2>@SR["Index"]</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">@SR["Create New"]</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Active)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DisplayName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.LogoutRedirectUri)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.RedirectUri)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.RefreshTokenLifeTime)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Secret)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Type)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Active)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DisplayName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.LogoutRedirectUri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.RedirectUri)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.RefreshTokenLifeTime)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Secret)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Type)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
@ -1,7 +1,6 @@
|
||||
@model HairPrestationQuery
|
||||
|
||||
@{ ViewData["Title"] = "Proposition de rendez-vous "+
|
||||
@SR["to"]+" "+ Model.PerformerProfile.Performer.UserName
|
||||
+" ["+SR[ViewBag.Activity.Code]+"]"; }
|
||||
@SR["to"]+" " ["+SR[ViewBag.Activity.Code]+"]"; }
|
||||
|
||||
<script src="https://maps.googleapis.com/maps/api/js?key=@ViewBag.GoogleSettings.BrowserApiKey"></script>
|
||||
<script type="text/javascript" src="~/lib/moment/moment-with-locales.min.js"></script>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model Yavsc.Models.Identity.GoogleCloudMobileDeclaration
|
||||
@model Yavsc.Models.Identity.DeviceDeclaration
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Delete"];
|
||||
@ -8,7 +8,7 @@
|
||||
|
||||
<h3>@SR["AreYourSureYouWantToDeleteThis"]</h3>
|
||||
<div>
|
||||
<h4>GoogleCloudMobileDeclaration</h4>
|
||||
<h4>DeviceDeclaration</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model Yavsc.Models.Identity.GoogleCloudMobileDeclaration
|
||||
@model Yavsc.Models.Identity.DeviceDeclaration
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Details"];
|
||||
@ -7,7 +7,7 @@
|
||||
<h2>@SR["Details"]</h2>
|
||||
|
||||
<div>
|
||||
<h4>GoogleCloudMobileDeclaration</h4>
|
||||
<h4>DeviceDeclaration</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model MusicianSettings
|
||||
@model Instrumentation
|
||||
@{
|
||||
ViewBag.YetAvailableInstruments = _context.Instrument.Where(i=> !_context.MusicianSettings.Any(s=>s.UserId==id && s.Instrumentation.Any(j=>j.Id == i.Id)))
|
||||
.Select(k=>new SelectListItem { Text = k.Name });
|
||||
@ -20,4 +20,4 @@
|
||||
|
||||
<select name="Name" value="" placeholder="Séléctionnez votre instrument" asp-items=@ViewBag.YetAvailableInstruments>
|
||||
</select>
|
||||
</form>
|
||||
</form>
|
||||
|
105
src/Yavsc/Views/Home/Index.cshtml
Executable file → Normal file
105
src/Yavsc/Views/Home/Index.cshtml
Executable file → Normal file
@ -1,103 +1,8 @@
|
||||
@model IEnumerable<Activity>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Page d'accueil"];
|
||||
int i=0;
|
||||
bool multipleact = Model.Count()>1;
|
||||
@{
|
||||
ViewData["Title"] = "Home Page";
|
||||
}
|
||||
@section scripts {
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var car = $('.carousel').first();
|
||||
var fi = car.children('.carousel-inner').first()
|
||||
.children('.item').first();
|
||||
var capt = fi.children('.carousel-caption-s');
|
||||
|
||||
fi.addClass('active');
|
||||
car.animate({'background-color':'rgba(0, 0, 0, .5)'},500,function() {
|
||||
car.animate({'background-color':'rgba(0, 0, 0, 0)'},500)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
}
|
||||
@section subbanner {
|
||||
|
||||
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
||||
@if (multipleact) {
|
||||
|
||||
<ol class="carousel-indicators">
|
||||
@{
|
||||
|
||||
foreach (var act in Model) {
|
||||
if (i==0) {
|
||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
||||
} else {
|
||||
<li data-target="#myCarousel" data-slide-to="@i"></li>
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
</ol> }
|
||||
<div class="carousel-inner" role="listbox">
|
||||
@{
|
||||
string cls = "item";
|
||||
i=0;
|
||||
foreach (var act in Model) {
|
||||
<div class="@cls" style="background-image: url('@act.Photo'); background-repeat: no-repeat; ">
|
||||
|
||||
<div class="carousel-caption-s" >
|
||||
<p><em>@act.Name</em><br/>
|
||||
@act.Description </p>
|
||||
|
||||
@if (act.Children.Count>0) {
|
||||
<a asp-route-id="@act.Code" class="btn btn-default">
|
||||
@foreach (Activity c in act.Children) {
|
||||
@Html.DisplayFor(subact=>c)
|
||||
}
|
||||
</a>
|
||||
}
|
||||
|
||||
@foreach (var frm in act.Forms) {
|
||||
<a class="btn btn-primary" asp-controller="FrontOffice" asp-action="@frm.ActionName" asp-route-id="@act.Code">
|
||||
@frm.Title
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
i++;
|
||||
cls = "item";
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (multipleact) {
|
||||
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Précédent</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Suivant</span>
|
||||
</a>
|
||||
}
|
||||
<div class="text-center">
|
||||
<h1 class="display-4">Welcome</h1>
|
||||
<p>Learn about <a href="https://docs.microsoft.com/aspnet/core">building Web apps with ASP.NET Core</a>.</p>
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
@section ctxmenu {
|
||||
@if (ViewData["Announces"]!=null) {
|
||||
<li><a asp-controller="Announces" class="badge" >
|
||||
<img src="@SiteSettings.Value.Logo" alt="announces" title="Annonces @SiteSettings.Value.Title" /></a></li>
|
||||
}
|
||||
@if ((int)ViewData["HaircutCommandCount"]>0) {
|
||||
<li><a asp-controller="HairCutCommand" class="badge" >
|
||||
<img src="~/images/shoppingcart.svg" alt="basket" title="Vos bons de commande" />(@ViewData["HaircutCommandCount"])</a></li>
|
||||
}
|
||||
|
||||
}
|
||||
@section header {
|
||||
<style>
|
||||
.navbar {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
}
|
103
src/Yavsc/Views/Home/Index.cshtml.old
Executable file
103
src/Yavsc/Views/Home/Index.cshtml.old
Executable file
@ -0,0 +1,103 @@
|
||||
@model IEnumerable<Activity>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = @SR["Page d'accueil"];
|
||||
int i=0;
|
||||
bool multipleact = Model.Count()>1;
|
||||
}
|
||||
@section scripts {
|
||||
<script>
|
||||
$(document).ready(function(){
|
||||
var car = $('.carousel').first();
|
||||
var fi = car.children('.carousel-inner').first()
|
||||
.children('.item').first();
|
||||
var capt = fi.children('.carousel-caption-s');
|
||||
|
||||
fi.addClass('active');
|
||||
car.animate({'background-color':'rgba(0, 0, 0, .5)'},500,function() {
|
||||
car.animate({'background-color':'rgba(0, 0, 0, 0)'},500)
|
||||
})
|
||||
})
|
||||
</script>
|
||||
}
|
||||
@section subbanner {
|
||||
|
||||
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="6000">
|
||||
@if (multipleact) {
|
||||
|
||||
<ol class="carousel-indicators">
|
||||
@{
|
||||
|
||||
foreach (var act in Model) {
|
||||
if (i==0) {
|
||||
<li data-target="#myCarousel" data-slide-to="0" class="active"></li>
|
||||
} else {
|
||||
<li data-target="#myCarousel" data-slide-to="@i"></li>
|
||||
}
|
||||
i++;
|
||||
}
|
||||
}
|
||||
</ol> }
|
||||
<div class="carousel-inner" role="listbox">
|
||||
@{
|
||||
string cls = "item";
|
||||
i=0;
|
||||
foreach (var act in Model) {
|
||||
<div class="@cls" style="background-image: url('@act.Photo'); background-repeat: no-repeat; ">
|
||||
|
||||
<div class="carousel-caption-s" >
|
||||
<p><em>@act.Name</em><br/>
|
||||
@act.Description </p>
|
||||
|
||||
@if (act.Children.Count>0) {
|
||||
<a asp-route-id="@act.Code" class="btn btn-default">
|
||||
@foreach (Activity c in act.Children) {
|
||||
@Html.DisplayFor(subact=>c)
|
||||
}
|
||||
</a>
|
||||
}
|
||||
|
||||
@foreach (var frm in act.Forms) {
|
||||
<a class="btn btn-primary" asp-controller="FrontOffice" asp-action="@frm.ActionName" asp-route-id="@act.Code">
|
||||
@frm.Title
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
i++;
|
||||
cls = "item";
|
||||
}
|
||||
}
|
||||
</div>
|
||||
@if (multipleact) {
|
||||
<a class="left carousel-control" href="#myCarousel" role="button" data-slide="prev">
|
||||
<span class="glyphicon glyphicon-chevron-left" aria-hidden="true"></span>
|
||||
<span class="sr-only">Précédent</span>
|
||||
</a>
|
||||
<a class="right carousel-control" href="#myCarousel" role="button" data-slide="next">
|
||||
<span class="glyphicon glyphicon-chevron-right" aria-hidden="true"></span>
|
||||
<span class="sr-only">Suivant</span>
|
||||
</a>
|
||||
}
|
||||
</div>
|
||||
|
||||
}
|
||||
|
||||
@section ctxmenu {
|
||||
@if (ViewData["Announces"]!=null) {
|
||||
<li><a asp-controller="Announces" class="badge" >
|
||||
<img src="@SiteSettings.Value.Logo" alt="announces" title="Annonces @SiteSettings.Value.Title" /></a></li>
|
||||
}
|
||||
@if ((int)ViewData["HaircutCommandCount"]>0) {
|
||||
<li><a asp-controller="HairCutCommand" class="badge" >
|
||||
<img src="~/images/shoppingcart.svg" alt="basket" title="Vos bons de commande" />(@ViewData["HaircutCommandCount"])</a></li>
|
||||
}
|
||||
|
||||
}
|
||||
@section header {
|
||||
<style>
|
||||
.navbar {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
</style>
|
||||
}
|
@ -1,14 +1,6 @@
|
||||
@{
|
||||
ViewData["Title"] = @SR["Confidentialité"]+" "+@SiteSettings.Value.Title;
|
||||
@{
|
||||
ViewData["Title"] = "Privacy Policy";
|
||||
}
|
||||
<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>
|
||||
<p>Use this page to detail your site's privacy policy.</p>
|
||||
|
14
src/Yavsc/Views/Home/Privacy.cshtml.old
Normal file
14
src/Yavsc/Views/Home/Privacy.cshtml.old
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>
|
@ -1,5 +1,4 @@
|
||||
@model ManageLoginsViewModel
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
@{
|
||||
ViewData["Title"] = "Manage your external logins";
|
||||
}
|
||||
@ -38,18 +37,3 @@
|
||||
</tbody>
|
||||
</table>
|
||||
}
|
||||
@if (Model.OtherLogins.Count > 0)
|
||||
{
|
||||
<h4>Add another service to log in.</h4>
|
||||
<hr />
|
||||
<form asp-controller="Manage" asp-action="LinkLogin" method="post" class="form-horizontal" role="form">
|
||||
<div id="socialLoginList">
|
||||
<p>
|
||||
@foreach (var provider in Model.OtherLogins)
|
||||
{
|
||||
<button type="submit" class="btn btn-default" name="provider" value="@provider.AuthenticationScheme" title="Log in using your @provider.DisplayName account">@provider.AuthenticationScheme</button>
|
||||
}
|
||||
</p>
|
||||
</div>
|
||||
</form>
|
||||
}
|
||||
|
@ -1,7 +1,5 @@
|
||||
@model Yavsc.ViewModels.Manage.ProfileEMailUsageViewModel
|
||||
|
||||
|
||||
|
||||
<form asp-action="ProfileEMailUsage" >
|
||||
|
||||
<div class="form-group">
|
||||
@ -20,10 +18,3 @@
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</div>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
@ -1,43 +0,0 @@
|
||||
@model Yavsc.Server.Models.Access.CircleAuthorizationToFile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>CircleAuthorizationToFile</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="FullPath" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="FullPath" class="form-control" />
|
||||
<span asp-validation-for="FullPath" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="CircleId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="CircleId"
|
||||
class="form-control" asp-items="@ViewBag.CircleId" >
|
||||
</select>
|
||||
<span asp-validation-for="CircleId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
@ -1,30 +0,0 @@
|
||||
@model Yavsc.Server.Models.Access.CircleAuthorizationToFile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>CircleAuthorizationToFile</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<dl class="dl-horizontal">
|
||||
<dt><label >@SR["Circle"]</label></dt>
|
||||
<dd>@Model.Circle.Name</dd>
|
||||
<dt><label asp-for="FullPath" ></label></dt>
|
||||
<dd>@Model.FullPath</dd>
|
||||
</dl>
|
||||
<input type="hidden" asp-for="FullPath" />
|
||||
<input type="hidden" asp-for="CircleId" />
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
@ -1,24 +0,0 @@
|
||||
@model Yavsc.Server.Models.Access.CircleAuthorizationToFile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>@SR["Details"]</h2>
|
||||
|
||||
<div>
|
||||
<h4>@SR["CircleAuthorizationToFile"]</h4>
|
||||
<hr />
|
||||
|
||||
<dl class="dl-horizontal">
|
||||
<dt><label >@SR["Circle"]</label></dt>
|
||||
<dd>@Model.Circle.Name</dd>
|
||||
<dt><label asp-for="FullPath" ></label></dt>
|
||||
<dd>@Model.FullPath</dd>
|
||||
</dl>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
@Html.ActionLink("Edit", "Edit", new { circleId=Model.CircleId, fullPath=Model.FullPath }) |
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</p>
|
@ -1,44 +0,0 @@
|
||||
@model Yavsc.Server.Models.Access.CircleAuthorizationToFile
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>@SR["Autorisation au fichier"]</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="FullPath" />
|
||||
<input type="hidden" name="oldcid" value="@Model.CircleId" />
|
||||
<div class="form-group">
|
||||
<label asp-for="FullPath" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
@Html.DisplayFor(m=>m.FullPath)
|
||||
<span asp-validation-for="FullPath" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="CircleId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="CircleId"
|
||||
class="form-control" asp-items="@ViewBag.CircleId" >
|
||||
</select>
|
||||
<span asp-validation-for="CircleId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Save" class="btn btn-default" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
@ -1,29 +0,0 @@
|
||||
@model IEnumerable<Yavsc.Server.Models.Access.CircleAuthorizationToFile>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>@SR["Circle"]</th>
|
||||
<th>@SR["Path"]</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>@item.Circle.Name</td>
|
||||
<td>@item.FullPath</td>
|
||||
<td>
|
||||
@Html.ActionLink("Details", "Details", new { circleId=item.CircleId, fullPath=item.FullPath }) |
|
||||
@Html.ActionLink("Delete", "Delete", new { circleId=item.CircleId, fullPath=item.FullPath })
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
@ -1,5 +1,4 @@
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
@using Microsoft.AspNet.WebUtilities
|
||||
|
||||
@using System.Security.Claims
|
||||
@model AuthorisationView
|
||||
@{
|
||||
@ -26,4 +25,4 @@
|
||||
<input type="submit" class="btn btn-lg btn-success" name="submit.Login" value="Sign in as different user" />
|
||||
</p>
|
||||
|
||||
</form>
|
||||
</form>
|
||||
|
@ -1,5 +1,4 @@
|
||||
@using Microsoft.AspNet.Http
|
||||
@using System
|
||||
@using System
|
||||
@using System.Security.Claims
|
||||
@{
|
||||
var error = Context.Items["oauth.Error"];
|
||||
@ -14,4 +13,4 @@
|
||||
<body>
|
||||
<h1>Authorization denied</h1>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -1,4 +1,4 @@
|
||||
@using Microsoft.AspNet.Http
|
||||
|
||||
@using System
|
||||
@using System.Security.Claims
|
||||
@{
|
||||
@ -17,4 +17,4 @@
|
||||
<p>Error: @error</p>
|
||||
<p>@errorDescription</p>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
@ -3,7 +3,6 @@
|
||||
@using Microsoft.Extensions.WebEncoders
|
||||
@using System.Diagnostics
|
||||
@using System.Text
|
||||
@using Yavsc.Formatters
|
||||
@using Yavsc.Helpers
|
||||
@model Yavsc.ViewModels.Gen.PdfGenerationViewModel
|
||||
|
||||
@ -19,4 +18,4 @@
|
||||
@Model.GenerationErrorMessage
|
||||
<p>Something went wrong ...</p>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
@ -3,7 +3,6 @@
|
||||
@using Microsoft.Extensions.WebEncoders
|
||||
@using System.Diagnostics
|
||||
@using System.Text
|
||||
@using Yavsc.Formatters
|
||||
@using Yavsc.Helpers
|
||||
@model Yavsc.ViewModels.Gen.PdfGenerationViewModel
|
||||
|
||||
@ -19,4 +18,4 @@
|
||||
@Model.GenerationErrorMessage
|
||||
<p>Something went wrong ...</p>
|
||||
</div>
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,4 @@
|
||||
@model NominativeServiceCommand
|
||||
@inject IOptions<PayPalSettings> PayPalSettings
|
||||
|
||||
@if (Model!=null && Model.PaymentId!=null) {
|
||||
|
||||
@ -27,8 +26,8 @@
|
||||
<script>
|
||||
var CREATE_PAYMENT_URL = '@ViewBag.CreatePaymentUrl';
|
||||
var EXECUTE_PAYMENT_URL = '@ViewBag.ExecutePaymentUrl';
|
||||
var PAYPAL_ENV = '@PayPalSettings.Value.Mode';
|
||||
var MERCH_ID = '@PayPalSettings.Value.';
|
||||
var PAYPAL_ENV = '@ViewBag.PayPalSettings.Mode';
|
||||
var MERCH_ID = '@ViewBag.PayPalSettings.MERCH_ID';
|
||||
|
||||
|
||||
paypal.checkout.setup(MERCH_ID, {
|
||||
|
@ -1,4 +1,4 @@
|
||||
@model Availability
|
||||
@model Yavsc.Server.Models.Calendar.Availability
|
||||
|
||||
@if (Model==null || Model.Count <1) {
|
||||
<text>Pas de disponibilité renseignée</text>
|
||||
@ -12,4 +12,4 @@
|
||||
<td>@Html.DisplayFor(m=>dispo.End)</td></tr>
|
||||
}
|
||||
</table>
|
||||
}
|
||||
}
|
||||
|
@ -1,2 +1,2 @@
|
||||
@model Availability
|
||||
@model Yavsc.Server.Models.Calendar.Availability
|
||||
|
||||
|
@ -1,12 +1,25 @@
|
||||
@model Exception
|
||||
|
||||
@model ErrorViewModel
|
||||
@{
|
||||
ViewBag.Title = "Oops!";
|
||||
ViewData["Title"] = "Error";
|
||||
}
|
||||
<h1 class="text-danger">Oops! an error occurs</h1>
|
||||
|
||||
<h1 class="text-danger">Error.</h1>
|
||||
<h2 class="text-danger">An error occurred while processing your request.</h2>
|
||||
@if (Model != null)
|
||||
|
||||
@if (Model.ShowRequestId)
|
||||
{
|
||||
|
||||
@Html.ValueFor(model => model.Message)
|
||||
<p>
|
||||
<strong>Request ID:</strong> <code>@Model.RequestId</code>
|
||||
</p>
|
||||
}
|
||||
|
||||
<h3>Development Mode</h3>
|
||||
<p>
|
||||
Swapping to <strong>Development</strong> environment will display more detailed information about the error that occurred.
|
||||
</p>
|
||||
<p>
|
||||
<strong>The Development environment shouldn't be enabled for deployed applications.</strong>
|
||||
It can result in displaying sensitive information from exceptions to end users.
|
||||
For local debugging, enable the <strong>Development</strong> environment by setting the <strong>ASPNETCORE_ENVIRONMENT</strong> environment variable to <strong>Development</strong>
|
||||
and restarting the app.
|
||||
</p>
|
||||
|
@ -1,3 +1,6 @@
|
||||
@model string
|
||||
|
||||
Accès interdit : @model
|
||||
<p>
|
||||
|
||||
Accès interdit : @Model
|
||||
</p>
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
@using Microsoft.AspNet.Http.Authentication
|
||||
|
||||
@using Yavsc.ViewModels.Account
|
||||
@model SignInViewModel
|
||||
@{
|
||||
|
@ -1,109 +1,49 @@
|
||||
<!doctype html>
|
||||
<html lang="@System.Globalization.CultureInfo.CurrentUICulture.Name">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
|
||||
<link rel="icon" href="@SiteSettings.Value.FavIcon" asp-append-version="true" />
|
||||
<title>@ViewData["Title"] - @SiteSettings.Value.Title</title>
|
||||
<script src="~/js/jquery-2.2.4.js" ></script>
|
||||
<link rel="stylesheet" href="~/css/main/bootstrap.css" />
|
||||
<script src="~/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" href="~/css/main/site.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" href="~/css/main/jquery-ui.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" title="Dark" href="~/css/dark/site.css" asp-append-version="true" />
|
||||
<link rel="alternate stylesheet" title="Clear" href="~/css/clear/site.css" asp-append-version="true" />
|
||||
<script src="~/js/jquery-ui.js" asp-append-version="true"></script>
|
||||
<script src="~/js/jquery.signalR-2.2.1.js" asp-append-version="true"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
<link rel="stylesheet" href="@Startup.SiteSetup.StyleSheet" asp-append-version="true"/>
|
||||
|
||||
@RenderSection("header", required: false)
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a asp-controller="Home" asp-action="Index" asp-route-id="" class="navbar-brand">
|
||||
<img src="@SiteSettings.Value.Logo" alt="@SiteSettings.Value.Title" asp-append-version="true"/></a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@RenderSection("ctxmenu", required: false)
|
||||
<li><a asp-controller="Blogspot" asp-action="Index" class="navbar-link">@SR["Blogs"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="Chat" class="navbar-link">@SR["Chat"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="Contact" class="navbar-link">@SR["Contact"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="About" class="navbar-link">@SR["About"] @SiteSettings.Value.Title</a> </li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle navbar-link" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span> @System.Globalization.CultureInfo.CurrentUICulture.DisplayName </span>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a onclick="setUiCult('fr')" style="cursor:pointer" >@SR["Français"]</a></li>
|
||||
<li><a onclick="setUiCult('en')" style="cursor:pointer">@SR["Anglais"]</a></li>
|
||||
<li><a onclick="setUiCult('pt')" style="cursor:pointer">@SR["Portugais"]</a></li>
|
||||
</ul>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<title>@ViewData["Title"] - Yavsc</title>
|
||||
<link rel="stylesheet" href="~/lib/bootstrap/dist/css/bootstrap.min.css" />
|
||||
<link rel="stylesheet" href="~/css/site.css" asp-append-version="true" />
|
||||
<link rel="stylesheet" href="~/Yavsc.styles.css" asp-append-version="true" />
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<nav class="navbar navbar-expand-sm navbar-toggleable-sm navbar-light bg-white border-bottom box-shadow mb-3">
|
||||
<div class="container-fluid">
|
||||
<a class="navbar-brand" asp-area="" asp-controller="Home" asp-action="Index">Yavsc</a>
|
||||
<button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target=".navbar-collapse" aria-controls="navbarSupportedContent"
|
||||
aria-expanded="false" aria-label="Toggle navigation">
|
||||
<span class="navbar-toggler-icon"></span>
|
||||
</button>
|
||||
<div class="navbar-collapse collapse d-sm-inline-flex justify-content-between">
|
||||
<ul class="navbar-nav flex-grow-1">
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Index">Home</a>
|
||||
</li>
|
||||
<li class="nav-item">
|
||||
<a class="nav-link text-dark" asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</li>
|
||||
</ul>
|
||||
@await Html.PartialAsync("_LoginPartial")
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@if (ViewData ["Notify"] != null) {
|
||||
foreach (Notification n in ViewData ["Notify"] as IEnumerable<Notification>) {
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;"/> <h2 markdown="@n.title"></h2>
|
||||
<a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action==null)?SR["Fermer"]:SR[n.click_action])</a>
|
||||
<markdown>@n.body</markdown>
|
||||
</div>}
|
||||
}
|
||||
@RenderSection("subbanner", required: false)
|
||||
<main class="container body-content" role="main">
|
||||
</header>
|
||||
<div class="container">
|
||||
<main role="main" class="pb-3">
|
||||
@RenderBody()
|
||||
</main>
|
||||
<hr />
|
||||
<footer>
|
||||
<environment names="Development">
|
||||
<p><em>Site de développement</em></p>
|
||||
</environment>
|
||||
<i>@SiteSettings.Value.Slogan</i>
|
||||
<environment names="yavsc,zicmoove,lua,coiffure,freefield">
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId : '552433071604577',
|
||||
xfbml : true,
|
||||
version : 'v2.5'
|
||||
});
|
||||
};
|
||||
</div>
|
||||
|
||||
(function(d, s, id){
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) {return;}
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/fr_FR/sdk.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div style="float:right;"
|
||||
data-ref="ZicMoove"
|
||||
class="fb-like"
|
||||
data-share="true"
|
||||
data-width="300"
|
||||
data-show-faces="true"
|
||||
data-colorscheme="dark">
|
||||
</div>
|
||||
</environment>
|
||||
|
||||
<p class="small">Yavsc - Copyright © 2015 - 2019 Paul Schneider</p>
|
||||
</footer>
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
<footer class="border-top footer text-muted">
|
||||
<div class="container">
|
||||
© 2023 - Yavsc - <a asp-area="" asp-controller="Home" asp-action="Privacy">Privacy</a>
|
||||
</div>
|
||||
</footer>
|
||||
<script src="~/lib/jquery/dist/jquery.min.js"></script>
|
||||
<script src="~/lib/bootstrap/dist/js/bootstrap.bundle.min.js"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
@await RenderSectionAsync("Scripts", required: false)
|
||||
</body>
|
||||
</html>
|
||||
|
48
src/Yavsc/Views/Shared/_Layout.cshtml.css
Normal file
48
src/Yavsc/Views/Shared/_Layout.cshtml.css
Normal file
@ -0,0 +1,48 @@
|
||||
/* Please see documentation at https://docs.microsoft.com/aspnet/core/client-side/bundling-and-minification
|
||||
for details on configuring this project to bundle and minify static web assets. */
|
||||
|
||||
a.navbar-brand {
|
||||
white-space: normal;
|
||||
text-align: center;
|
||||
word-break: break-all;
|
||||
}
|
||||
|
||||
a {
|
||||
color: #0077cc;
|
||||
}
|
||||
|
||||
.btn-primary {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
|
||||
color: #fff;
|
||||
background-color: #1b6ec2;
|
||||
border-color: #1861ac;
|
||||
}
|
||||
|
||||
.border-top {
|
||||
border-top: 1px solid #e5e5e5;
|
||||
}
|
||||
.border-bottom {
|
||||
border-bottom: 1px solid #e5e5e5;
|
||||
}
|
||||
|
||||
.box-shadow {
|
||||
box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
|
||||
}
|
||||
|
||||
button.accept-policy {
|
||||
font-size: 1rem;
|
||||
line-height: inherit;
|
||||
}
|
||||
|
||||
.footer {
|
||||
position: absolute;
|
||||
bottom: 0;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
line-height: 60px;
|
||||
}
|
109
src/Yavsc/Views/Shared/_Layout.cshtml.old
Normal file
109
src/Yavsc/Views/Shared/_Layout.cshtml.old
Normal file
@ -0,0 +1,109 @@
|
||||
<!doctype html>
|
||||
<html lang="@System.Globalization.CultureInfo.CurrentUICulture.Name">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no" />
|
||||
<link rel="icon" href="@SiteSettings.Value.FavIcon" asp-append-version="true" />
|
||||
<title>@ViewData["Title"] - @SiteSettings.Value.Title</title>
|
||||
<script src="~/js/jquery-2.2.4.js" ></script>
|
||||
<link rel="stylesheet" href="~/css/main/bootstrap.css" />
|
||||
<script src="~/js/bootstrap.js"></script>
|
||||
<link rel="stylesheet" href="~/css/main/site.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" href="~/css/main/jquery-ui.css" asp-append-version="true"/>
|
||||
<link rel="stylesheet" title="Dark" href="~/css/dark/site.css" asp-append-version="true" />
|
||||
<link rel="alternate stylesheet" title="Clear" href="~/css/clear/site.css" asp-append-version="true" />
|
||||
<script src="~/js/jquery-ui.js" asp-append-version="true"></script>
|
||||
<script src="~/js/jquery.signalR-2.2.1.js" asp-append-version="true"></script>
|
||||
<script src="~/js/site.js" asp-append-version="true"></script>
|
||||
<link rel="stylesheet" href="@Startup.SiteSetup.StyleSheet" asp-append-version="true"/>
|
||||
|
||||
@RenderSection("header", required: false)
|
||||
</head>
|
||||
<body>
|
||||
<nav class="navbar navbar-inverse navbar-static-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
||||
<span class="sr-only">Toggle navigation</span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
<span class="icon-bar"></span>
|
||||
</button>
|
||||
<a asp-controller="Home" asp-action="Index" asp-route-id="" class="navbar-brand">
|
||||
<img src="@SiteSettings.Value.Logo" alt="@SiteSettings.Value.Title" asp-append-version="true"/></a>
|
||||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
@RenderSection("ctxmenu", required: false)
|
||||
<li><a asp-controller="Blogspot" asp-action="Index" class="navbar-link">@SR["Blogs"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="Chat" class="navbar-link">@SR["Chat"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="Contact" class="navbar-link">@SR["Contact"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="About" class="navbar-link">@SR["About"] @SiteSettings.Value.Title</a> </li>
|
||||
<li class="dropdown">
|
||||
<a class="dropdown-toggle navbar-link" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
|
||||
<span> @System.Globalization.CultureInfo.CurrentUICulture.DisplayName </span>
|
||||
<span class="caret"></span>
|
||||
</a>
|
||||
<ul class="dropdown-menu">
|
||||
<li><a onclick="setUiCult('fr')" style="cursor:pointer" >@SR["Français"]</a></li>
|
||||
<li><a onclick="setUiCult('en')" style="cursor:pointer">@SR["Anglais"]</a></li>
|
||||
<li><a onclick="setUiCult('pt')" style="cursor:pointer">@SR["Portugais"]</a></li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
@await Html.PartialAsync("_LoginPartial")
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
@if (ViewData ["Notify"] != null) {
|
||||
foreach (Notification n in ViewData ["Notify"] as IEnumerable<Notification>) {
|
||||
<div class="alert alert-info alert-dismissable">
|
||||
<img src="~/images/Notifications/@(n.icon).png" style="max-height:3em; float: left; margin:1em;"/> <h2 markdown="@n.title"></h2>
|
||||
<a class="close" data-dismiss="alert" aria-label="close" onclick="notifClick(@n.Id)">@((n.click_action==null)?SR["Fermer"]:SR[n.click_action])</a>
|
||||
<markdown>@n.body</markdown>
|
||||
</div>}
|
||||
}
|
||||
@RenderSection("subbanner", required: false)
|
||||
<main class="container body-content" role="main">
|
||||
@RenderBody()
|
||||
</main>
|
||||
<hr />
|
||||
<footer>
|
||||
<environment names="Development">
|
||||
<p><em>Site de développement</em></p>
|
||||
</environment>
|
||||
<i>@SiteSettings.Value.Slogan</i>
|
||||
<environment names="yavsc,zicmoove,lua,coiffure,freefield">
|
||||
<script>
|
||||
window.fbAsyncInit = function() {
|
||||
FB.init({
|
||||
appId : '552433071604577',
|
||||
xfbml : true,
|
||||
version : 'v2.5'
|
||||
});
|
||||
};
|
||||
|
||||
(function(d, s, id){
|
||||
var js, fjs = d.getElementsByTagName(s)[0];
|
||||
if (d.getElementById(id)) {return;}
|
||||
js = d.createElement(s); js.id = id;
|
||||
js.src = "//connect.facebook.net/fr_FR/sdk.js";
|
||||
fjs.parentNode.insertBefore(js, fjs);
|
||||
}(document, 'script', 'facebook-jssdk'));
|
||||
</script>
|
||||
<div style="float:right;"
|
||||
data-ref="ZicMoove"
|
||||
class="fb-like"
|
||||
data-share="true"
|
||||
data-width="300"
|
||||
data-show-faces="true"
|
||||
data-colorscheme="dark">
|
||||
</div>
|
||||
</environment>
|
||||
|
||||
<p class="small">Yavsc - Copyright © 2015 - 2019 Paul Schneider</p>
|
||||
</footer>
|
||||
@RenderSection("scripts", required: false)
|
||||
</body>
|
||||
</html>
|
@ -1,16 +1,2 @@
|
||||
<environment names="Development">
|
||||
<script src="~/lib/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
|
||||
</environment>
|
||||
<environment names="yavsc,yavscpre,zicmoove,lua,coiffure">
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"
|
||||
asp-fallback-src="~/lib/jquery-validation/jquery.validate.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.validator">
|
||||
</script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/mvc/5.2.3/jquery.validate.unobtrusive.min.js"
|
||||
asp-fallback-src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.validator && window.jQuery.validator.unobtrusive">
|
||||
</script>
|
||||
</environment>
|
||||
<script src="~/lib/jquery-validation/additional-methods.js" charset="UTF-8"></script>
|
||||
<script src="~/js/input-lib.js"></script>
|
||||
<script src="~/lib/jquery-validation/dist/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
|
16
src/Yavsc/Views/Shared/_ValidationScriptsPartial.cshtml.old
Normal file
16
src/Yavsc/Views/Shared/_ValidationScriptsPartial.cshtml.old
Normal file
@ -0,0 +1,16 @@
|
||||
<environment names="Development">
|
||||
<script src="~/lib/jquery-validation/jquery.validate.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js"></script>
|
||||
</environment>
|
||||
<environment names="yavsc,yavscpre,zicmoove,lua,coiffure">
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"
|
||||
asp-fallback-src="~/lib/jquery-validation/jquery.validate.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.validator">
|
||||
</script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/mvc/5.2.3/jquery.validate.unobtrusive.min.js"
|
||||
asp-fallback-src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.validator && window.jQuery.validator.unobtrusive">
|
||||
</script>
|
||||
</environment>
|
||||
<script src="~/lib/jquery-validation/additional-methods.js" charset="UTF-8"></script>
|
||||
<script src="~/js/input-lib.js"></script>
|
@ -1,59 +1,27 @@
|
||||
|
||||
@using Microsoft.AspNet.Authorization;
|
||||
@using Microsoft.AspNet.Hosting;
|
||||
@using Microsoft.AspNet.Identity;
|
||||
@using Microsoft.AspNet.Mvc;
|
||||
@using Microsoft.AspNet.Mvc.Localization;
|
||||
@using Microsoft.Extensions.Localization;
|
||||
@using Microsoft.Extensions.OptionsModel;
|
||||
@using Microsoft.Extensions.PlatformAbstractions;
|
||||
@using Newtonsoft.Json;
|
||||
|
||||
@using System.Security.Claims;
|
||||
@using System.Web.Optimization;
|
||||
|
||||
@using Yavsc;
|
||||
@using Yavsc.Helpers;
|
||||
@using Yavsc.Server.Helpers;
|
||||
@using Yavsc.Models;
|
||||
@using Yavsc.Models.Access;
|
||||
@using Yavsc.Models.Auth;
|
||||
|
||||
@using Yavsc.Models.Google;
|
||||
@using Yavsc.Models.Messaging;
|
||||
@using Yavsc
|
||||
@using Yavsc.Models
|
||||
@using Yavsc.Models.Musical;
|
||||
@using Yavsc.Models.Musical.Profiles;
|
||||
@using Yavsc.Models.Market;
|
||||
@using Yavsc.Models.Drawing;
|
||||
@using Yavsc.Models.Haircut;
|
||||
@using Yavsc.Models.Blog;
|
||||
@using Yavsc.Models.Billing;
|
||||
@using Yavsc.Models.Workflow;
|
||||
@using Yavsc.Models.Relationship;
|
||||
@using Yavsc.Models.Drawing;
|
||||
@using Yavsc.Models.Haircut;
|
||||
@using Yavsc.Models.Payment;
|
||||
@using Yavsc.Models.Calendar;
|
||||
@using Yavsc.Models.Google.Calendar;
|
||||
@using Yavsc.Models.Musical.Profiles;
|
||||
@using Yavsc.Models.Auth;
|
||||
@using Yavsc.Models.Identity;
|
||||
@using Yavsc.Models.Access;
|
||||
@using Yavsc.Billing;
|
||||
@using Yavsc.Models.Blog;
|
||||
|
||||
@using Yavsc.ViewModels;
|
||||
@using Yavsc.ViewModels.Account;
|
||||
@using Yavsc.Server.Models.Calendar;
|
||||
@using Yavsc.ViewModels.Haircut;
|
||||
@using Yavsc.ViewModels.Administration;
|
||||
@using Yavsc.ViewModels.Auth;
|
||||
@using Yavsc.ViewModels.Account;
|
||||
@using Yavsc.ViewModels.Manage;
|
||||
@using Yavsc.ViewModels.Calendar;
|
||||
@using Yavsc.ViewModels.FrontOffice;
|
||||
@using Yavsc.ViewModels.Calendar;
|
||||
@using Yavsc.ViewModels.Relationship;
|
||||
@using Yavsc.ViewModels.Workflow;
|
||||
|
||||
@using PayPal.PayPalAPIInterfaceService.Model;
|
||||
|
||||
|
||||
@inject IViewLocalizer LocString
|
||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||
@addTagHelper "*, Yavsc"
|
||||
|
||||
@inject IStringLocalizer<Yavsc.YavscLocalisation> SR
|
||||
@inject IAuthorizationService AuthorizationService
|
||||
@inject IOptions<GoogleAuthSettings> GoogleSettings
|
||||
@inject IOptions<SiteSettings> SiteSettings
|
||||
@inject IHostingEnvironment HostingEnvironment
|
||||
@addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers
|
||||
|
@ -1,3 +1,3 @@
|
||||
@{
|
||||
@{
|
||||
Layout = "_Layout";
|
||||
}
|
||||
|
Reference in New Issue
Block a user