un positionnement de paramètre workflow des pros
This commit is contained in:
parent
fbd352e788
commit
96746fcc0b
322 changed files with 25893 additions and 3844 deletions
|
|
@ -12,33 +12,59 @@
|
|||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Code" class="col-md-2 control-label"></label>
|
||||
<label asp-for="Code" class="col-md-2 control-label">@SR["Code"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Code" class="form-control" />
|
||||
<span asp-validation-for="Code" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<label asp-for="Name" class="col-md-2 control-label">
|
||||
@SR["Name"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||
<label asp-for="Parent" class="col-md-2 control-label">
|
||||
@SR["Parent"]</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ParentCode" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label">
|
||||
@SR["Description"]</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Description" class="form-control" />
|
||||
<span asp-validation-for="Description" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
||||
<label asp-for="Photo" class="col-md-2 control-label">
|
||||
@SR["Photo"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SettingsClassName" class="col-md-2 control-label">
|
||||
@SR["SettingsClass"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||
</select>
|
||||
<span asp-validation-for="SettingsClassName" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
|
|
|
|||
|
|
@ -8,29 +8,53 @@
|
|||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Activity</h4>
|
||||
<h4>@SR["Activity"] @Model.Code</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Code" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Parent" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="ParentCode" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Description" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Description" class="form-control" />
|
||||
<span asp-validation-for="Description" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
<span asp-validation-for="Description" class="text-danger" >
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Photo" class="form-control" />
|
||||
<span asp-validation-for="Photo" class="text-danger" />
|
||||
<span asp-validation-for="Photo" class="text-danger">
|
||||
</span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SettingsClassName" class="col-md-2 control-label">
|
||||
@SR["SettingsClass"]
|
||||
</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
|
||||
</select>
|
||||
<span asp-validation-for="SettingsClassName" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
|
|||
|
|
@ -14,17 +14,22 @@
|
|||
<th>
|
||||
@Html.DisplayNameFor(model => model.Code)
|
||||
</th>
|
||||
<th>
|
||||
@SR["Name"]
|
||||
</th>
|
||||
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Description)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Photo)
|
||||
</th>
|
||||
<th></th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Parent)
|
||||
</th>
|
||||
<th>
|
||||
@SR["SettingsClass"]
|
||||
</th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
|
|
@ -32,14 +37,29 @@
|
|||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Code)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Photo)
|
||||
@Html.DisplayFor(modelItem => item.Description)
|
||||
</td>
|
||||
<td>@if (item.Photo!=null) {
|
||||
<img src="@item.Photo" style="max-height: 4em;" />
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (item.Parent!=null) {
|
||||
<text>
|
||||
@Html.DisplayFor(modelItem => item.Parent)
|
||||
</text>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
@if (item.SettingsClassName!=null) {
|
||||
<text>
|
||||
@SR[item.SettingsClassName]
|
||||
</text>
|
||||
}
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.Code">Edit</a> |
|
||||
|
|
|
|||
22
Yavsc/Views/Administration/Index.cshtml
Normal file
22
Yavsc/Views/Administration/Index.cshtml
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
@model AdminViewModel
|
||||
|
||||
@{
|
||||
ViewBag.Title = SR["Administration"];
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
<p>
|
||||
Rôles :
|
||||
<ul>
|
||||
@foreach (var role in Model.Roles) {
|
||||
<li>@Html.ActionLink(role.Name,"Role",new { id=role.Id }) (@role.Users.Length membres)</li>
|
||||
}
|
||||
</ul>
|
||||
</p>
|
||||
<p>
|
||||
Nombre d'administrateurs :
|
||||
@Model.AdminCount
|
||||
</p>
|
||||
<p>
|
||||
Vous êtes administrateur: @(Model.YouAreAdmin?"Oui":"Non")
|
||||
</p>
|
||||
14
Yavsc/Views/Administration/Role.cshtml
Normal file
14
Yavsc/Views/Administration/Role.cshtml
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
@model RoleUserCollection
|
||||
@{
|
||||
ViewBag.Title = SR["Role"]+" "+Model.Name;
|
||||
}
|
||||
|
||||
<h2>@ViewBag.Title</h2>
|
||||
|
||||
<ul>
|
||||
@foreach (var user in Model.Users) {
|
||||
<li> <img src="~/Avatars/@(user.UserName).xs.png" alt="avatar"/>
|
||||
@user.UserName
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
|
|
@ -1,72 +1,39 @@
|
|||
@model Yavsc.Models.Blog
|
||||
|
||||
@{
|
||||
ViewData["Title"]="Details";
|
||||
ViewData["Title"]=Model.Title;
|
||||
}
|
||||
|
||||
<div>
|
||||
<h4>Blog</h4>
|
||||
<img alt="" src="@Model.Photo">
|
||||
<h1>
|
||||
<div markdown="@Model.Title" site="SiteSettings.Value"></div>
|
||||
|
||||
</h1>
|
||||
<hr />
|
||||
<dl class="dl-horizo qntal">
|
||||
<dt>
|
||||
<a href="/Title/@Model.Title" > @SR[Html.DisplayNameFor(model => model.Title)] </a>
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Title)
|
||||
</dd>
|
||||
<dt>
|
||||
@SR[Html.DisplayNameFor(model => model.Photo)]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Photo)
|
||||
</dd>
|
||||
<dt>
|
||||
@SR["Author"]
|
||||
</dt>
|
||||
<dd>
|
||||
@Model.Author.UserName
|
||||
</dd>
|
||||
<dt>
|
||||
@SR["Content"]
|
||||
</dt>
|
||||
<dd>
|
||||
<div markdown="@Model.Content" site="SiteSettings.Value"></div>
|
||||
</dd>
|
||||
<dt>
|
||||
@SR[Html.DisplayNameFor(model => model.Modified)]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Modified)
|
||||
</dd>
|
||||
<div markdown="@Model.Content" site="SiteSettings.Value"></div>
|
||||
<hr/>
|
||||
|
||||
<div class="meta">
|
||||
@SR["Author"] : @Model.Author.UserName -
|
||||
|
||||
@SR["Modified"] :
|
||||
|
||||
@Html.DisplayFor(model => model.Modified) -
|
||||
|
||||
<dt>
|
||||
@SR[Html.DisplayNameFor(model => model.Posted)]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Posted)
|
||||
</dd>
|
||||
<dt>
|
||||
@SR[Html.DisplayNameFor(model => model.Rate)]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Rate)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@SR[Html.DisplayNameFor(model => model.Visible)]
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Visible)
|
||||
</dd>
|
||||
</dl>
|
||||
@SR[Html.DisplayNameFor(model => model.Posted)] :
|
||||
|
||||
@Html.DisplayFor(model => model.Posted)
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<ul>
|
||||
@if (await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())) {
|
||||
<li>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a>
|
||||
</li>
|
||||
}
|
||||
<li>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</li>
|
||||
</ul>
|
||||
<ul>
|
||||
@if (await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())) {
|
||||
<li>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a>
|
||||
</li>
|
||||
}
|
||||
<li>
|
||||
<a asp-action="Index">@SR["Back to List"]</a>
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -39,9 +39,7 @@
|
|||
<script src="~/js/to-markdown.js"></script>
|
||||
<script src="~/js/md-helpers.js"></script>
|
||||
<script>
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
var editortitre = new Quill('#Titlecnt', {
|
||||
modules: { toolbar: '#Titletoolbar' },
|
||||
theme: 'snow'
|
||||
|
|
@ -185,6 +183,7 @@ editorcontenu.on('text-change',function(delta,source){
|
|||
<div>
|
||||
|
||||
</div>
|
||||
@await Component.InvokeAsync("Directory","")
|
||||
<div >
|
||||
<form id="postfiles" class="dropzone" method="post" enctype="multipart/form-data">
|
||||
<div class="fallback">
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@
|
|||
<p>
|
||||
<a asp-action="Create">@SR["Create a new article"]</a>
|
||||
</p>
|
||||
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th colspan="3">
|
||||
|
|
@ -17,10 +18,12 @@
|
|||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Photo)
|
||||
<markdown>@item.Title</markdown>
|
||||
var trclass = (item.Visible)?"vpost":"ipost";
|
||||
|
||||
<tr class="@trclass">
|
||||
<td><a asp-action="Details" asp-route-id="@item.Id">
|
||||
<img src="@item.Photo" >
|
||||
<markdown>@item.Title</markdown></a>
|
||||
</td>
|
||||
<td>
|
||||
<span style="font-size:x-small;"> @item.Author.UserName </span> <br>
|
||||
|
|
@ -47,5 +50,27 @@
|
|||
}
|
||||
</table>
|
||||
|
||||
<style>
|
||||
tr.vpost {
|
||||
background-color: #80A050;
|
||||
max-height: 3em;
|
||||
}
|
||||
tr.ipost {
|
||||
background-color: #303030;
|
||||
color: #b0b0b0;
|
||||
font-size: smaller;
|
||||
max-height: 3em;
|
||||
}
|
||||
tr.vpost a {
|
||||
font-weight: bold;
|
||||
color: white;
|
||||
text-shadow: 3px 3px 8px black;
|
||||
}
|
||||
tr.ipost a {
|
||||
font-style: bold;
|
||||
color: #b0b0b0;
|
||||
text-shadow: 3px 3px 5px #505050;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -183,6 +183,17 @@ $(document).ready(function(){
|
|||
@Html.HiddenFor(model=>model.PerformerId)
|
||||
|
||||
</div>
|
||||
<div class="form-group" has-feedback>
|
||||
<fieldset>
|
||||
<legend>
|
||||
<label for="Reason" class="col-md-2 control-label">
|
||||
@SR["GiveAnExplicitReason"]
|
||||
</label>
|
||||
</legend>
|
||||
<textarea rows="15" asp-for="Reason" type="text" name="Reason" id="Reason" maxlength="4096"
|
||||
style="width:100%"></textarea>
|
||||
<span asp-validation-for="Reason" class="text-danger"></span>
|
||||
</fieldset>
|
||||
</form>
|
||||
|
||||
|
||||
|
|
|
|||
42
Yavsc/Views/Do/Create.cshtml
Normal file
42
Yavsc/Views/Do/Create.cshtml
Normal file
|
|
@ -0,0 +1,42 @@
|
|||
@model Yavsc.Models.Workflow.UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<div class="form-group">
|
||||
<label asp-for="DoesCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
||||
<span asp-validation-for="DoesCode" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Weight" class ="form-control" />
|
||||
<span asp-validation-for="Weight" class="text-danger" />
|
||||
</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>
|
||||
|
||||
52
Yavsc/Views/Do/CreateFor.cshtml
Normal file
52
Yavsc/Views/Do/CreateFor.cshtml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
@model Yavsc.Models.Workflow.UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
|
||||
|
||||
<!-- <div class="form-group">
|
||||
<label asp-for="UserId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="UserId" asp-items=@ViewBag.UserId class ="form-control"></select>
|
||||
</div>
|
||||
</div> -->
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="UserId" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="UserId" asp-items=@ViewBag.UserId class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DoesCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="DoesCode" asp-items=@ViewBag.DoesCode class ="form-control"></select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Weight" class ="form-control" />
|
||||
</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>
|
||||
|
||||
24
Yavsc/Views/Do/Delete.cshtml
Normal file
24
Yavsc/Views/Do/Delete.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Workflow.UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<input type="hidden" asp-for="DoesCode" />
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
26
Yavsc/Views/Do/Details.cshtml
Normal file
26
Yavsc/Views/Do/Details.cshtml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
@model Yavsc.Models.Workflow.UserActivity
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>@SR["Activity"]</dt>
|
||||
<dd> @Html.DisplayFor(m=>m.Does)
|
||||
@if (ViewBag.HasConfigurableSettings) {
|
||||
<a asp-controller="@ViewBag.SettingsClassControllerName" asp-action="Index" >
|
||||
[@SR["Manage"] @SR[Model.Does.SettingsClassName]]
|
||||
</a>
|
||||
}
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.UserId" asp-route-activityCode="@Model.DoesCode">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
30
Yavsc/Views/Do/Edit.cshtml
Normal file
30
Yavsc/Views/Do/Edit.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model Yavsc.Models.Workflow.UserActivity
|
||||
@{ ViewData["Title"] = "Edit"; }
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>UserActivity</h4>
|
||||
<hr />
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<input type="hidden" asp-for="DoesCode" />
|
||||
<div class="text-danger"> @Html.ValidationSummary()
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Weight" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Weight" class="form-control"></input>
|
||||
</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>
|
||||
31
Yavsc/Views/Do/Index.cshtml
Normal file
31
Yavsc/Views/Do/Index.cshtml
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
@model IEnumerable<Yavsc.Models.Workflow.UserActivity>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>@SR["Activity"]</th>
|
||||
<th>@SR["Weight"]</th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td> @item.Does.Name
|
||||
</td>
|
||||
<td> @item.Weight
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.UserId" asp-route-activityCode="@item.DoesCode">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.UserId" asp-route-activityCode="@item.DoesCode">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.UserId" asp-route-activityCode="@item.DoesCode">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
|
|
@ -0,0 +1,23 @@
|
|||
@model Yavsc.Models.Booking.MusicianSettings
|
||||
@{
|
||||
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 });
|
||||
|
||||
}
|
||||
<ul>
|
||||
@foreach (var instrument in Model.Instrumentation)
|
||||
{
|
||||
<li>@instrument.Name
|
||||
<a asp-action="RemoveInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" asp-action-name="@instrument.Name" />
|
||||
|
||||
</li>
|
||||
|
||||
|
||||
}
|
||||
</ul>
|
||||
|
||||
<form asp-action="AddInstrument" asp-controller="Instrumentation" asp-action-id="Model.UserId" >
|
||||
|
||||
<select name="Name" value="" placeholder="Séléctionnez votre instrument" asp-items=@ViewBag.YetAvailableInstruments>
|
||||
</select>
|
||||
</form>
|
||||
|
|
@ -6,9 +6,10 @@
|
|||
<em>@ViewBag.Activity.Description</em>
|
||||
|
||||
@foreach (var profile in Model) {
|
||||
await Html.RenderPartialAsync("_PerformerPartial", profile) ;
|
||||
<hr/>
|
||||
await Html.RenderPartialAsync("PerformerProfile", profile) ;
|
||||
<form action="~/Command/Create" >
|
||||
<input type="hidden" name="id" value="@profile.PerformerId" />
|
||||
<input type="submit" value="@SR["Book "+ViewBag.Activity.Code]"/>
|
||||
</form>
|
||||
<input type="submit" value="@SR["Book "+ViewBag.Activity.Code]"/>
|
||||
</form>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,38 @@
|
|||
|
||||
@model Yavsc.ViewModels.FrontOffice.FrontOfficeIndexViewModel
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
ViewData["Title"] = "Front office";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
<dl class="dl-horizontal">
|
||||
<dt>@SR["EstimateToProduce"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.EstimateToProduceCount)
|
||||
</dd>
|
||||
|
||||
<dt>@SR["EstimateToSignAsPro"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.EstimateToSignAsProCount)
|
||||
</dd>
|
||||
|
||||
<dt>@SR["EstimateToSignAsCli"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.EstimateToSignAsCliCount)
|
||||
</dd>
|
||||
|
||||
<dt>@SR["BillToSignAsPro"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.BillToSignAsProCount)
|
||||
</dd>
|
||||
|
||||
<dt>@SR["BillToSignAsCli"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.BillToSignAsCliCount)
|
||||
</dd>
|
||||
|
||||
<dt>@SR["PayementsDone"]
|
||||
</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.NewPayementsCount)
|
||||
</dd>
|
||||
</dl>
|
||||
|
|
|
|||
|
|
@ -16,25 +16,37 @@
|
|||
color: black;
|
||||
font-family: monospace;
|
||||
font-style: bold;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
#targets {
|
||||
display:inline-block;
|
||||
}
|
||||
|
||||
</style>
|
||||
<div class="container">
|
||||
<input type="hidden" id="displayname" />
|
||||
|
||||
<ul id="userlist" style="float:right;">
|
||||
<div style="float:right; background-color: grey; padding:1em; margin:1em;">
|
||||
<h3>Salons</h3>
|
||||
<ul><li id="pubChan">Public</li></ul>
|
||||
<h3>Utilisateurs</h3>
|
||||
<ul id="userlist" style="list-style:none; padding: 1em; margin:1em;sqc">
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<ul id="discussion">
|
||||
</ul>
|
||||
<div id="targets">
|
||||
<div id="sendmessagebox">
|
||||
<input type="text" id="message" />
|
||||
<div style="display: inline-block;">
|
||||
<input type="button" id="sendmessage" value="@SR["Send"]" />
|
||||
</div>
|
||||
@if (ViewBag.IsAuthenticated) {
|
||||
<br/>
|
||||
<input type="button" id="sendpv" value="@SR["Send a private message"] @SR["to"]" />
|
||||
<select id="to" />
|
||||
<input type="button" id="btnDebug" Value="RUL"/>
|
||||
<div id="sendpvbox">
|
||||
<input type="text" id="pv" />
|
||||
<button type="submit" id="sendpv">@SR["Send a private message"] @SR["to"] <div id="sendpvdest" /> </button>
|
||||
</div>
|
||||
}
|
||||
<input type="hidden" id="mySignalRConnectionIdHidden" value="" />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -49,24 +61,53 @@
|
|||
<script>
|
||||
|
||||
$(function () {
|
||||
var pvuis;
|
||||
|
||||
var setPrivate = function(li)
|
||||
{
|
||||
$("#sendmessagebox").addClass("hidden");
|
||||
$("#sendpvbox").removeClass("hidden");
|
||||
pvuis = { CXs: $(li).data("cxids"), UserName: $(li).data("name")};
|
||||
$('#sendpvdest').html(pvuis.UserName)
|
||||
}
|
||||
var setPublic = function()
|
||||
{
|
||||
$("#sendmessagebox").removeClass("hidden");
|
||||
$("#sendpvbox").addClass("hidden");
|
||||
}
|
||||
$('#pubChan').css('cursor','pointer');
|
||||
$('#pubChan').click(setPublic);
|
||||
setPublic();
|
||||
|
||||
var getUsers = function() {
|
||||
console.log("Try and get user list ...");
|
||||
$('#userlist').empty();
|
||||
$('#to').empty();
|
||||
chat.server.getUserList().done(
|
||||
$.get("/api/chat/users").done(
|
||||
function(users) {
|
||||
$.each(users, function () {
|
||||
var user = this;
|
||||
document.userList[user.UserId]=user;
|
||||
$('#userlist').append('<li class="user">' + htmlEncode(user.UserName) + '</li>');
|
||||
|
||||
$('#to').append('<option value="'+user.UserId+'">'+user.UserName+'</option>');
|
||||
|
||||
console.log(user);
|
||||
var existent = $('#userlist li').filterByData("name",user.UserName);
|
||||
if (existent.length>0) existent.remove();
|
||||
var li = $('<li class="user"><img src="/Avatars/'+user.UserName+'.xs.png"> '+htmlEncode(user.UserName)+'</li>');
|
||||
|
||||
var cxids = [];
|
||||
$.each(user.Connections,function() {
|
||||
cxids.push(this.ConnectionId);
|
||||
});
|
||||
$(li).data("name",user.UserName);
|
||||
$(li).data("cxids",cxids);
|
||||
$(li).css('cursor','pointer');
|
||||
$(li).click(function(){
|
||||
setPrivate(this);
|
||||
});
|
||||
li.appendTo('#userlist');
|
||||
});
|
||||
}
|
||||
);
|
||||
};
|
||||
|
||||
document.userList = {};
|
||||
// Reference the auto-generated proxy for the hub.
|
||||
var chat = $.connection.chatHub;
|
||||
// Create a function that the hub can call back to display messages.
|
||||
|
|
@ -80,11 +121,35 @@
|
|||
$('#discussion').append('<li class="pv"><strong>' + htmlEncode(name)
|
||||
+ '</strong>: ' + htmlEncode(message) + '</li>');
|
||||
};
|
||||
var onUserConnected = function (cxid, username) {
|
||||
$('#userlist').append('<li class="user">'+username+'</li>')
|
||||
};
|
||||
$.fn.filterByData = function(prop, val) {
|
||||
return this.filter(
|
||||
function() { return $(this).data(prop)==val; }
|
||||
);
|
||||
}
|
||||
|
||||
var onUserDisconnected = function (cxid, username) {
|
||||
$('#userlist li[data-uid='+cxid+']').remove();
|
||||
$('#userlist li').filter (function() {
|
||||
var nids = $(this).data("cxids").filter(function() {
|
||||
return $(this) !== cxid
|
||||
});
|
||||
if (nids.Length==0) $(this).remove();
|
||||
else $(this).data("cxids",nids)
|
||||
});
|
||||
};
|
||||
var onUserConnected = function (cxid, username) {
|
||||
var connected = $('#userlist li').filterByData("name",username);
|
||||
if (connected.length>0) {
|
||||
var ids = connected.data("cxids");
|
||||
ids.push(cxid);
|
||||
connected.data("cxids",ids);
|
||||
} else {
|
||||
var li = $('<li class="user"><img src="/Avatars/'+username+'.xs.png"> '+username+'</li>');
|
||||
li.data("name",username);
|
||||
li.data("cxids",[cxid]);
|
||||
li.appendTo('#userlist');
|
||||
li.css('cursor','pointer');
|
||||
li.click(function(){ setPrivate(this); });
|
||||
}
|
||||
};
|
||||
chat.client.notify = function (tag, message, data) {
|
||||
if (data) {
|
||||
|
|
@ -114,24 +179,36 @@ $('#discussion').append('<li class="notif"><i>' + htmlEncode(tag)
|
|||
</text>
|
||||
}
|
||||
|
||||
|
||||
var sendMessage = function() {
|
||||
chat.server.send($('#displayname').val(), $('#message').val());
|
||||
// Clear text box and reset focus for next comment.
|
||||
$('#message').val('')
|
||||
};
|
||||
|
||||
// Set initial focus to message input box.
|
||||
$('#message').focus();
|
||||
|
||||
|
||||
// Start the connection.
|
||||
$.connection.hub.start().done(function () {
|
||||
$('#sendmessage').click(function () {
|
||||
// Call the Send method on the hub.
|
||||
chat.server.send($('#displayname').val(), $('#message').val());
|
||||
// Clear text box and reset focus for next comment.
|
||||
$('#message').val('').focus();
|
||||
sendMessage().focus();
|
||||
});
|
||||
$( "#message" ).keydown(function( event ) {
|
||||
if ( event.which == 13 ) {
|
||||
sendMessage()
|
||||
}
|
||||
});
|
||||
$('#sendpv').click(function () {
|
||||
|
||||
// Call the Send method on the hub.
|
||||
var user = document.userList[$('#to').val()];
|
||||
$.each(user.Connections,function () {
|
||||
chat.server.sendPV( this.ConnectionId, $('#message').val());
|
||||
$.each(pvuis.CXs,function () {
|
||||
chat.server.sendPV( this, $('#pv').val());
|
||||
});
|
||||
// Clear text box and reset focus for next comment.
|
||||
$('#message').val('').focus();
|
||||
$('#pv').val('').focus();
|
||||
});
|
||||
|
||||
getUsers();
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<p>
|
||||
Invitez un groupe musical à animer votre événement </p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="~/do/Book/IT">
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-action="Book" asp-route-id="IT">
|
||||
En savoir plus
|
||||
</a>
|
||||
</p>
|
||||
|
|
@ -28,7 +28,7 @@
|
|||
<p>
|
||||
Organisez un concert. </p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="~/do/Book/IT">
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-action="Book" asp-route-id="IT">
|
||||
En savoir plus
|
||||
</a>
|
||||
</p>
|
||||
|
|
@ -40,7 +40,7 @@
|
|||
<p> Offrez-vous un anniversaire, un mariage Hip Hop </p>
|
||||
<p>
|
||||
|
||||
<a class="btn btn-default" href="~/do/Book/IT">
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-action="Book" asp-route-id="IT">
|
||||
En savoir plus
|
||||
|
||||
</a>
|
||||
|
|
@ -53,7 +53,7 @@
|
|||
<p>
|
||||
Invitez votre chanteur à la fête </p>
|
||||
<p>
|
||||
<a class="btn btn-default" href="~/do/Book/IT">
|
||||
<a class="btn btn-default" asp-controller="FrontOffice" asp-route-id="Book" >
|
||||
En savoir plus
|
||||
</a>
|
||||
</p>
|
||||
|
|
|
|||
40
Yavsc/Views/Instrumentation/Create.cshtml
Normal file
40
Yavsc/Views/Instrumentation/Create.cshtml
Normal file
|
|
@ -0,0 +1,40 @@
|
|||
|
||||
@model Yavsc.Models.Booking.Profiles.Instrumentation
|
||||
|
||||
@{
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Booking.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Set"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>@ViewData["Title"]</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4></h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
|
||||
<input asp-for="UserId" type="hidden">
|
||||
<div class="form-group">
|
||||
<div class="col-md-10">
|
||||
@System.Globalization.CultureInfo.CurrentUICulture.TextInfo.ToTitleCase(SR["nouvel instrument"])
|
||||
|
||||
<select asp-for="InstrumentId" asp-items=@ViewBag.YetAvailableInstruments>
|
||||
</select>
|
||||
|
||||
<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>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
24
Yavsc/Views/Instrumentation/Delete.cshtml
Normal file
24
Yavsc/Views/Instrumentation/Delete.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Booking.Profiles.Instrumentation
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Booking.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Delete"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-default" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
Yavsc/Views/Instrumentation/Details.cshtml
Normal file
24
Yavsc/Views/Instrumentation/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Booking.Profiles.Instrumentation
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Booking.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Details"] + "]" ;
|
||||
}
|
||||
@{
|
||||
bool existingInstrument = Model.
|
||||
}
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>Instruments</dt>
|
||||
<dd>@Html.DisplayFor(m=>m.Instrumentation)</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.UserId">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
30
Yavsc/Views/Instrumentation/Edit.cshtml
Normal file
30
Yavsc/Views/Instrumentation/Edit.cshtml
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
@model Yavsc.Models.Booking.Profiles.Instrumentation
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Booking.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Edit"] + "]" ;
|
||||
}
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>MusicianSettings</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="UserId" />
|
||||
<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>
|
||||
|
||||
@section Scripts {
|
||||
<script src="~/lib/jquery-validation/jquery.validate.min.js"></script>
|
||||
<script src="~/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js"></script>
|
||||
}
|
||||
28
Yavsc/Views/Instrumentation/Index.cshtml
Normal file
28
Yavsc/Views/Instrumentation/Index.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model IEnumerable<Yavsc.Models.Booking.Profiles.Instrumentation>
|
||||
|
||||
@{
|
||||
|
||||
ViewBag.SettingLabel = SR["Yavsc.Models.Booking.Profiles.Instrumentation"];
|
||||
ViewData["Title"] = SR[ViewBag.SettingLabel] + "[" +SR["Index"] + "]" ;
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">@SR["Vous jouez d'un autre instrument'"]</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.UserId">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.UserId">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.UserId">Delete</a>
|
||||
</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
32
Yavsc/Views/Instruments/Create.cshtml
Normal file
32
Yavsc/Views/Instruments/Create.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model Yavsc.Models.Booking.Instrument
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Instrument</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
28
Yavsc/Views/Instruments/Delete.cshtml
Normal file
28
Yavsc/Views/Instruments/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model Yavsc.Models.Booking.Instrument
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>Instrument</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</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">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
Yavsc/Views/Instruments/Details.cshtml
Normal file
24
Yavsc/Views/Instruments/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Booking.Instrument
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Instrument</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
33
Yavsc/Views/Instruments/Edit.cshtml
Normal file
33
Yavsc/Views/Instruments/Edit.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.Models.Booking.Instrument
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Instrument</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
32
Yavsc/Views/Instruments/Index.cshtml
Normal file
32
Yavsc/Views/Instruments/Index.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model IEnumerable<Yavsc.Models.Booking.Instrument>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</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>
|
||||
32
Yavsc/Views/LocationTypes/Create.cshtml
Normal file
32
Yavsc/Views/LocationTypes/Create.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model Yavsc.Models.Relationship.LocationType
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>LocationType</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
28
Yavsc/Views/LocationTypes/Delete.cshtml
Normal file
28
Yavsc/Views/LocationTypes/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model Yavsc.Models.Relationship.LocationType
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>LocationType</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</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">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
Yavsc/Views/LocationTypes/Details.cshtml
Normal file
24
Yavsc/Views/LocationTypes/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Relationship.LocationType
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>LocationType</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
33
Yavsc/Views/LocationTypes/Edit.cshtml
Normal file
33
Yavsc/Views/LocationTypes/Edit.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.Models.Relationship.LocationType
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>LocationType</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
32
Yavsc/Views/LocationTypes/Index.cshtml
Normal file
32
Yavsc/Views/LocationTypes/Index.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model IEnumerable<Yavsc.Models.Relationship.LocationType>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</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,4 +1,5 @@
|
|||
@model IndexViewModel
|
||||
@using System.Security.Claims
|
||||
@{
|
||||
ViewData["Title"] = @SR["Manage your account"];
|
||||
}
|
||||
|
|
@ -53,21 +54,27 @@
|
|||
>@SR[@Model.Avatar==null?"Set":"Modify"]</a>]
|
||||
</dd>
|
||||
|
||||
<dt>@SR["Activity"]:</dt>
|
||||
<dd>@Model.Activity?.Name
|
||||
<dt>@SR["Professional settings"]:</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.HaveProfessionalSettings)
|
||||
[<a asp-controller="Manage" asp-action="SetActivity"
|
||||
>@SR[Model.HaveProfessionalSettings?"Modify settings":"Set"]</a>]
|
||||
</dd>
|
||||
@if (Model.HaveProfessionalSettings) {
|
||||
<dt>@SR["Activities"]:</dt>
|
||||
<dd>
|
||||
@string.Join(", ",Model.Activity.Select( u=> u.Does.Name ).ToArray())
|
||||
[<a asp-controller="Do" asp-action="Index"
|
||||
>@SR[@Model.Activity==null?"Set":"Modify settings"]</a>]
|
||||
</dd>
|
||||
|
||||
}
|
||||
<dt>@SR["Bank info"]:</dt>
|
||||
<dd>@Html.DisplayFor(m => m.BankInfo) [<a asp-controller="Manage" asp-action="AddBankInfo"
|
||||
>@SR[@Model.BankInfo==null?"Set":"Modify"]</a>]</dd>
|
||||
|
||||
<dt>@SR["YourPosts"]:</dt>
|
||||
<dd>@Model.PostsCounter
|
||||
[<a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName">@SR["YourPosts"]</a>]
|
||||
</dd>
|
||||
<dt><a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.UserName">@SR["Your posts"]:</a></dt>
|
||||
<dd>@Model.PostsCounter</dd>
|
||||
|
||||
<dt>@SR["TwoFactorAuthentication"]:</dt>
|
||||
<dd>
|
||||
|
|
@ -114,6 +121,10 @@
|
|||
@(Model.DiskUsage.ToString("0,#")) / @(Model.DiskQuota.ToString("0,#"))
|
||||
</text>
|
||||
</dd>
|
||||
<dt>Identifiant utilisateur</dt>
|
||||
<dd>
|
||||
@User.GetUserId()
|
||||
</dd>
|
||||
</dl>
|
||||
<h4>
|
||||
<a asp-controller="Account" asp-action="Delete" >@SR["Unregister"]</a>
|
||||
|
|
|
|||
|
|
@ -17,6 +17,7 @@
|
|||
<tr>
|
||||
<td>@account.LoginProvider</td>
|
||||
<td>
|
||||
@account.ProviderDisplayName
|
||||
@if ((bool)ViewData["ShowRemoveButton"])
|
||||
{
|
||||
<form asp-controller="Manage" asp-action="RemoveLogin" method="post" class="form-horizontal" role="form">
|
||||
|
|
|
|||
|
|
@ -101,24 +101,17 @@
|
|||
}
|
||||
});
|
||||
});
|
||||
</script> @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); } }
|
||||
|
||||
</script>
|
||||
}
|
||||
<h2>@ViewData["Title"].</h2>
|
||||
|
||||
@{ await Html.RenderPartialAsync("_PerformerPartial", Model) ; }
|
||||
@Html.DisplayFor(model => model)
|
||||
|
||||
<form id="FrmSetAct" asp-controller="Manage" asp-action="SetActivity" method="post" class="form-horizontal" role="form">
|
||||
<h4>@SR["Choose below your main activity"]:</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger" id="valsum"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ActivityCode" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ActivityCode" asp-items=@ViewBag.Activities class="form-control">
|
||||
</select>
|
||||
<span asp-validation-for="ActivityCode" class="text-danger"></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="AcceptNotifications" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
|
|
|
|||
32
Yavsc/Views/MusicalTendencies/Create.cshtml
Normal file
32
Yavsc/Views/MusicalTendencies/Create.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model Yavsc.Models.Booking.MusicalTendency
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>MusicalTendency</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
28
Yavsc/Views/MusicalTendencies/Delete.cshtml
Normal file
28
Yavsc/Views/MusicalTendencies/Delete.cshtml
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
@model Yavsc.Models.Booking.MusicalTendency
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>MusicalTendency</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</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">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
24
Yavsc/Views/MusicalTendencies/Details.cshtml
Normal file
24
Yavsc/Views/MusicalTendencies/Details.cshtml
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
@model Yavsc.Models.Booking.MusicalTendency
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>MusicalTendency</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Name)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
33
Yavsc/Views/MusicalTendencies/Edit.cshtml
Normal file
33
Yavsc/Views/MusicalTendencies/Edit.cshtml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
@model Yavsc.Models.Booking.MusicalTendency
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>MusicalTendency</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="Name" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Name" class="form-control" />
|
||||
<span asp-validation-for="Name" class="text-danger" />
|
||||
</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>
|
||||
|
||||
32
Yavsc/Views/MusicalTendencies/Index.cshtml
Normal file
32
Yavsc/Views/MusicalTendencies/Index.cshtml
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
@model IEnumerable<Yavsc.Models.Booking.MusicalTendency>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Name)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Name)
|
||||
</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,39 +0,0 @@
|
|||
@model Yavsc.Models.Billing.ExceptionSIREN
|
||||
|
||||
@{
|
||||
Layout = null;
|
||||
}
|
||||
|
||||
<!DOCTYPE html>
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width" />
|
||||
<title>Edit</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>ExceptionSIREN</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
@Html.DisplayFor(model => model.SIREN) :
|
||||
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-1 col-md-10">
|
||||
@Html.InputFor(model => model.SIREN)
|
||||
</div>
|
||||
<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>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -5,14 +5,13 @@
|
|||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>Exceptions à la validation des code SIREN</th>
|
||||
<th>Exceptions à la validation des codes SIREN</th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>@item.SIREN</td>
|
||||
<td>
|
||||
<a asp-action="Edit" asp-route-id="@item.SIREN">Edit</a> |
|
||||
<a asp-action="Details" asp-route-id="@item.SIREN">Details</a> |
|
||||
<a asp-action="Delete" asp-route-id="@item.SIREN">Delete</a>
|
||||
</td>
|
||||
|
|
|
|||
44
Yavsc/Views/Shared/Components/Directory/Default.cshtml
Normal file
44
Yavsc/Views/Shared/Components/Directory/Default.cshtml
Normal file
|
|
@ -0,0 +1,44 @@
|
|||
@using Yavsc.ViewModels.UserFiles
|
||||
@model UserDirectoryInfo
|
||||
<div class="dirinfo">
|
||||
<strong>@Model.UserName / @Model.SubPath</strong>
|
||||
<div class="subdirs">
|
||||
@foreach (string subdir in Model.SubDirectories) {
|
||||
<a href="@subdir" class="subdir">@subdir</a>
|
||||
}
|
||||
</div>
|
||||
<style>
|
||||
tr.fileheaders th {
|
||||
border-bottom: 1px solid #ddd;
|
||||
font-style: italic;
|
||||
}
|
||||
tr.fileinfo td {
|
||||
padding: 1em;
|
||||
border-bottom: 1px solid #ddd;
|
||||
}
|
||||
tr.fileinfo:nth-child(even) {background-color: #f2f2f2}
|
||||
tr.fileinfo:hover {background-color: #f5f5f5}
|
||||
|
||||
</style>
|
||||
<table >
|
||||
<tr class="fileheaders">
|
||||
<th>Nom
|
||||
</th>
|
||||
<th>Taille
|
||||
</th>
|
||||
<th>Modification
|
||||
</th>
|
||||
</tr>
|
||||
@foreach (var fileinfo in Model.Files) {
|
||||
<tr class="fileinfo">
|
||||
<td class="filename">
|
||||
<a href="@fileinfo.FileLink(Model.UserName,Model.SubPath)">
|
||||
@fileinfo.Name
|
||||
</a></td>
|
||||
<td class="filesize">@fileinfo.Size</td>
|
||||
<td class="filemdate">@fileinfo.LastModified</td>
|
||||
</tr>
|
||||
}
|
||||
</table>
|
||||
</div>
|
||||
|
||||
|
|
@ -1,5 +1,6 @@
|
|||
|
||||
@model Estimate
|
||||
<div class="estimate">
|
||||
|
||||
<a href="~/api/pdfestimate/estimate-@(Model.Id).tex" >Export au format LaTeX</a>
|
||||
|
||||
|
|
@ -9,3 +10,4 @@
|
|||
</form>
|
||||
|
||||
<a href="~/api/pdfestimate/get/@(Model.Id)" >Télécharger le document généré</a>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@using Yavsc.Helpers
|
||||
@using System.IO
|
||||
@using System.Globalization
|
||||
@model Estimate
|
||||
@{
|
||||
|
|
@ -6,11 +7,14 @@
|
|||
var pro = Model.Query.PerformerProfile;
|
||||
var from = Model.Query.PerformerProfile.Performer;
|
||||
var to = Model.Query.Client;
|
||||
var PostalAddress = (to.PostalAddress!=null) ? to.PostalAddress.Address.Replace("\n","\\\\\n") : null ;
|
||||
var proaddr = Model.Query?.PerformerProfile.OrganizationAddress.Address;
|
||||
var proaddrn = (proaddr!=null) ? proaddr.NewLinesWith("\\\\\n") : null ;
|
||||
var proaddrm = (proaddr!=null) ? proaddr.NewLinesWith(" - ") : null ;
|
||||
}\documentclass[french,11pt]{article}
|
||||
var PostalAddress = to.PostalAddress?.Address.SplitAddressToTeX();
|
||||
var proaddr = Model.Query.PerformerProfile.OrganizationAddress.Address.SplitAddressToTeX();
|
||||
var proaddrm = new HtmlString(Model.Query.PerformerProfile.OrganizationAddress.Address);
|
||||
var isestimate = !ViewBag.AsBill;
|
||||
var prosign = new FileInfo($"{ViewBag.BillsDir}/estimate-prosign-{Model.Id}.png");
|
||||
|
||||
}
|
||||
\documentclass[french,11pt]{article}
|
||||
\usepackage{eurosym}
|
||||
\usepackage{babel}
|
||||
\usepackage[T1]{fontenc}
|
||||
|
|
@ -32,14 +36,11 @@
|
|||
\FPeval{\montant}{#2 * #3}
|
||||
\FPround{\montant}{\montant}{2}
|
||||
\FPadd{\TotalHT}{\TotalHT}{\montant}
|
||||
|
||||
\eaddto\ListeProduits{#1 & \prix & #2 & \montant \cr}
|
||||
}
|
||||
|
||||
|
||||
\newcommand{\AfficheResultat}{%
|
||||
\ListeProduits
|
||||
|
||||
\FPeval{\TotalTVA}{\TotalHT * \TVA / 100}
|
||||
\FPadd{\TotalTTC}{\TotalHT}{\TotalTVA}
|
||||
\FPround{\TotalHT}{\TotalHT}{2}
|
||||
|
|
@ -48,8 +49,6 @@
|
|||
\global\let\TotalHT\TotalHT
|
||||
\global\let\TotalTVA\TotalTVA
|
||||
\global\let\TotalTTC\TotalTTC
|
||||
|
||||
|
||||
\cr
|
||||
\hline
|
||||
\textbf{Total} & & & \TotalHT
|
||||
|
|
@ -67,9 +66,9 @@
|
|||
%%%%%%%%%%%%%%%%%%%%% A MODIFIER DANS LA FACTURE %%%%%%%%%%%%%%%%%%%%%
|
||||
|
||||
\def\FactureNum {@Model.Id.ToString()} % Numéro de facture
|
||||
\def\FactureAcquittee {non} % Facture acquittée : oui/non
|
||||
\def\FactureLieu {@proaddrn} % Lieu de l'édition de la facture
|
||||
\def\FactureObjet {Facture : @TeXHelpers.ToTeX(Model.Title)} % Objet du document
|
||||
\def\FactureAcquittee {@ViewBag.Acquitted?"oui":"non"} % Facture acquittée : oui/non
|
||||
\def\FactureLieu {@proaddrm} % Lieu de l'édition de la facture
|
||||
\def\FactureObjet {@(new HtmlString(isestimate?"Devis":"Facture")) : @TeXHelpers.ToTeX(Model.Title)} % Objet du document
|
||||
% Description de la facture
|
||||
\def\FactureDescr {
|
||||
@TeXHelpers.ToTeX(Model.Description)
|
||||
|
|
@ -80,10 +79,9 @@
|
|||
|
||||
\def\ClientAdresse{
|
||||
% Adresse du client
|
||||
@if (!string.IsNullOrWhiteSpace(PostalAddress)) {
|
||||
<text> @TeXHelpers.ToTeX(PostalAddress)\\</text> }
|
||||
@if (!string.IsNullOrWhiteSpace(to.PhoneNumber)) {<text>
|
||||
@TeXHelpers.ToTeX(to.PhoneNumber)<text>\\</text>
|
||||
@PostalAddress
|
||||
@if (PostalAddress!=null) {<text>@PostalAddress</text>}
|
||||
@if (!string.IsNullOrWhiteSpace(to.PhoneNumber)) {<text>@TeXHelpers.ToTeX(to.PhoneNumber)<text>\\</text>
|
||||
</text>}
|
||||
E-mail: @TeXHelpers.ToTeX(to.Email)
|
||||
}
|
||||
|
|
@ -106,7 +104,7 @@
|
|||
\setlength{\parindent}{0pt}
|
||||
|
||||
\renewcommand{\headrulewidth}{0pt}
|
||||
\cfoot{ @TeXHelpers.ToTeX(from.UserName) @if (!string.IsNullOrWhiteSpace(proaddrm)) { <text> - @TeXHelpers.ToTeX(proaddrm) </text> } \newline
|
||||
\cfoot{ @TeXHelpers.ToTeX(from.UserName) @if (proaddrm!=null) { <text> - @proaddrm </text> } \newline
|
||||
\small{ E-mail: @TeXHelpers.ToTeX(from.Email) @if (!string.IsNullOrWhiteSpace(from.PhoneNumber)) { <text> - Téléphone fixe: @TeXHelpers.ToTeX(from.PhoneNumber) </text> }
|
||||
}
|
||||
}
|
||||
|
|
@ -115,7 +113,7 @@
|
|||
|
||||
% Logo de la société
|
||||
@if (from.Avatar != null) {
|
||||
<text>\includegraphics{@from.Avatar}
|
||||
<text>\includegraphics[height=60pt]{@(ViewBag.AvatarsDir)/@(from.UserName).png}
|
||||
</text>
|
||||
} else {
|
||||
<text>%\includegraphics{logo.png}
|
||||
|
|
@ -123,9 +121,9 @@
|
|||
}
|
||||
% Nom et adresse de la société
|
||||
@TeXHelpers.ToTeX(from.UserName) \\
|
||||
@TeXHelpers.ToTeX(proaddrn)
|
||||
@proaddr
|
||||
|
||||
Facture n°\FactureNum
|
||||
@(isestimate?"Devis":"Facture") n°\FactureNum
|
||||
|
||||
|
||||
{\addtolength{\leftskip}{10.5cm} %in ERT
|
||||
|
|
@ -159,11 +157,12 @@ Facture n°\FactureNum
|
|||
|
||||
\end{flushright}
|
||||
~\\
|
||||
|
||||
@if (!isestimate) {
|
||||
<text>
|
||||
\ifthenelse{\equal{\FactureAcquittee}{oui}}{
|
||||
Facture acquittée.
|
||||
}{
|
||||
@{
|
||||
}{ </text>
|
||||
|
||||
var bi = from.BankInfo;
|
||||
if (bi!=null) {
|
||||
<text>À régler par chèque ou par virement bancaire :
|
||||
|
|
@ -188,5 +187,21 @@ Facture n°\FactureNum
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
@if (!(Model.ProviderValidationDate==null)) {
|
||||
<text>
|
||||
\begin{flushright}
|
||||
@(new HtmlString(isestimate?"Devis validé":"Facture validée")) le @TeXHelpers.ToTeX(Model.ProviderValidationDate.ToString("dddd dd MMMM yyyy",
|
||||
CultureInfo.CreateSpecificCulture("fr-FR")))
|
||||
\end{flushright}
|
||||
@if (prosign.Exists) {
|
||||
<text>
|
||||
\begin{center}
|
||||
\hspace{263pt}
|
||||
\includegraphics[height=60pt]{@(ViewBag.BillsDir)/estimate-prosign-@(Model.Id).png}
|
||||
\end{center}
|
||||
</text>
|
||||
}
|
||||
</text>
|
||||
}
|
||||
\end{document}
|
||||
|
|
|
|||
|
|
@ -1,5 +0,0 @@
|
|||
@model UserDirectoryInfo
|
||||
@{
|
||||
var files = User.GetUserFiles();
|
||||
|
||||
}
|
||||
4
Yavsc/Views/Shared/DisplayTemplates/Activity.cshtml
Normal file
4
Yavsc/Views/Shared/DisplayTemplates/Activity.cshtml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
@model Activity
|
||||
<div class="activity">
|
||||
<b title="@Model.Description" style="cursor:alias;">@Html.DisplayFor(m=>m.Name)</b>
|
||||
</div>
|
||||
|
|
@ -1,10 +1,13 @@
|
|||
@model PerformerProfile
|
||||
|
||||
<div class="performer @(Model.Active?"active":"inactive")">
|
||||
@if (Model.Performer != null) {
|
||||
|
||||
|
||||
<img src="~/Avatars/@(Model.Performer.UserName).xs.png" alt="avatar">
|
||||
|
||||
@Model.Performer?.UserName
|
||||
|
||||
<ul>
|
||||
<li>@Model.Performer.UserName (rating: @Model.Rate%)</li>
|
||||
<li> @SR["Rating"]: @Model.Rate % </li>
|
||||
@if (Model.MinDailyCost != null) {
|
||||
<li>@SR["MinDailyCost"]: @Model.MinDailyCost€</li>
|
||||
}
|
||||
|
|
@ -14,11 +17,12 @@
|
|||
@if (Model.WebSite!=null) {
|
||||
<li>@SR["WebSite"]: @Model.WebSite</li>
|
||||
}
|
||||
@if (Model.DoesBlog) {
|
||||
@if (Model.Performer.Posts!=null) {
|
||||
<li> <a asp-controller="Blogspot" asp-action="UserPosts"
|
||||
asp-route-id="@Model.Performer.UserName">@SR["His blog"]</a>
|
||||
</li>
|
||||
}
|
||||
@if (Model.Performer != null) {
|
||||
@if (!string.IsNullOrEmpty(
|
||||
Model.Performer.DedicatedGoogleCalendar))
|
||||
{
|
||||
|
|
@ -30,8 +34,8 @@
|
|||
<li> @SR["Uses the mobile application, and receives push notifications"]
|
||||
</li>
|
||||
}
|
||||
}
|
||||
|
||||
</ul>
|
||||
<button id="btnAddUser">Ajouter aux contacts</button>
|
||||
}
|
||||
|
||||
</div>
|
||||
|
|
@ -21,13 +21,12 @@
|
|||
<environment names="Staging,Production,yavsc,yavscpre,booking,lua">
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/jquery/jquery-2.1.4.min.js"
|
||||
asp-fallback-src="~/bower_components/jquery/dist/jquery.min.js"
|
||||
asp-fallback-test="window.jQuery">
|
||||
asp-fallback-test="window.jQuery" >
|
||||
</script>
|
||||
<script src="https://ajax.aspnetcdn.com/ajax/bootstrap/3.3.5/bootstrap.min.js"
|
||||
asp-fallback-src="~/bower_components/bootstrap/dist/js/bootstrap.min.js"
|
||||
asp-fallback-test="window.jQuery && window.jQuery.fn && window.jQuery.fn.modal">
|
||||
</script>
|
||||
<script src="~/js/site.min.js" asp-append-version="true"></script>
|
||||
</environment>
|
||||
@RenderSection("header", required: false)
|
||||
</head>
|
||||
|
|
@ -46,11 +45,10 @@
|
|||
</div>
|
||||
<div class="navbar-collapse collapse">
|
||||
<ul class="nav navbar-nav">
|
||||
<li><a asp-controller="Home" asp-action="Index" class="navbar-link">@SR["Home"]</a></li>
|
||||
<li><a asp-controller="Blogspot" asp-action="Index" class="navbar-link">@SR["Blogs"]</a></li>
|
||||
<li><a asp-controller="Home" asp-action="About" class="navbar-link">@SR["About"] @SiteSettings.Value.Title</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>
|
||||
</ul>
|
||||
@await Html.PartialAsync("_LoginPartial")
|
||||
</div>
|
||||
|
|
@ -61,8 +59,35 @@
|
|||
</main>
|
||||
<hr />
|
||||
<footer>
|
||||
<p>Yavsc - Copyright © 2016 Paul Schneider</p>
|
||||
<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
|
||||
class="fb-like"
|
||||
data-share="true"
|
||||
data-width="450"
|
||||
data-show-faces="true">
|
||||
</div>
|
||||
|
||||
|
||||
<p>Yavsc - Copyright © 2016 - 2017 Paul Schneider</p>
|
||||
</footer>
|
||||
@RenderSection("scripts", required: false)
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -1,4 +1,13 @@
|
|||
|
||||
@using Microsoft.AspNet.Identity;
|
||||
@using Microsoft.AspNet.Mvc;
|
||||
@using Microsoft.Extensions.Localization;
|
||||
@using Microsoft.AspNet.Mvc.Localization;
|
||||
@using Microsoft.AspNet.Authorization;
|
||||
@using Microsoft.Extensions.OptionsModel;
|
||||
@using System.Web.Optimization;
|
||||
@using Yavsc;
|
||||
@using Yavsc.Helpers;
|
||||
@using Yavsc.Models;
|
||||
@using Yavsc.Models.Google;
|
||||
@using Yavsc.Models.Booking;
|
||||
|
|
@ -8,13 +17,8 @@
|
|||
@using Yavsc.ViewModels.Account;
|
||||
@using Yavsc.ViewModels.Manage;
|
||||
@using Yavsc.ViewModels.Calendar;
|
||||
@using Microsoft.AspNet.Identity;
|
||||
@using Microsoft.AspNet.Mvc;
|
||||
@using Microsoft.Extensions.Localization;
|
||||
@using Microsoft.AspNet.Mvc.Localization;
|
||||
@using Microsoft.AspNet.Authorization;
|
||||
@using Microsoft.Extensions.OptionsModel;
|
||||
@using System.Web.Optimization;
|
||||
@using Yavsc.ViewModels.Auth;
|
||||
@using Yavsc.ViewModels.Administration;
|
||||
|
||||
@inject IViewLocalizer LocString
|
||||
@addTagHelper "*, Microsoft.AspNet.Mvc.TagHelpers"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue