2023-03-26 20:41:42 +01:00
|
|
|
|
@model IEnumerable<Activity>
|
|
|
|
|
|
|
|
|
|
|
|
@{
|
|
|
|
|
|
ViewData["Title"] = @SR["Page d'accueil"];
|
|
|
|
|
|
int i=0;
|
|
|
|
|
|
bool multipleact = Model.Count()>1;
|
|
|
|
|
|
}
|
2023-03-27 22:45:16 +01:00
|
|
|
|
|
2023-03-26 20:41:42 +01:00
|
|
|
|
@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>
|
2019-01-01 16:28:47 +00:00
|
|
|
|
}
|
2023-03-26 20:41:42 +01:00
|
|
|
|
@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>
|
2019-01-01 16:28:47 +00:00
|
|
|
|
|
2023-03-26 20:41:42 +01:00
|
|
|
|
@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>
|
|
|
|
|
|
}
|
2019-01-01 16:28:47 +00:00
|
|
|
|
</div>
|
2023-03-26 20:41:42 +01:00
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@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 {
|
2023-03-27 22:45:16 +01:00
|
|
|
|
<script src="~/lib/bootstrap/js/carousel.js" asp-append-version="true"></script>
|
2023-03-26 20:41:42 +01:00
|
|
|
|
<style>
|
|
|
|
|
|
.navbar {
|
|
|
|
|
|
margin-bottom: 0;
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
2023-03-27 22:45:16 +01:00
|
|
|
|
}
|
2023-04-08 01:10:36 +01:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<asciidoc>
|
|
|
|
|
|
= Hello, AsciiDoc!
|
|
|
|
|
|
Doc Writer <doc@example.com>
|
|
|
|
|
|
|
|
|
|
|
|
An introduction to http://asciidoc.org[AsciiDoc].
|
|
|
|
|
|
|
|
|
|
|
|
== First Section
|
|
|
|
|
|
|
|
|
|
|
|
* item 1
|
|
|
|
|
|
* item 2
|
|
|
|
|
|
|
|
|
|
|
|
[source,asciidoc]
|
|
|
|
|
|
----
|
|
|
|
|
|
= Hello, AsciiDoc!
|
|
|
|
|
|
Doc Writer <doc@example.com>
|
|
|
|
|
|
|
|
|
|
|
|
An introduction to http://asciidoc.org[AsciiDoc].
|
|
|
|
|
|
|
|
|
|
|
|
== First Section
|
|
|
|
|
|
|
|
|
|
|
|
* item 1
|
|
|
|
|
|
* item 2
|
|
|
|
|
|
|
|
|
|
|
|
[source,ruby]
|
|
|
|
|
|
puts "Hello, World!"
|
|
|
|
|
|
----
|
|
|
|
|
|
----
|
|
|
|
|
|
|
|
|
|
|
|
</asciidoc>
|