merge
This commit is contained in:
@ -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>
|
||||
|
@ -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>
|
||||
|
||||
|
||||
|
@ -18,7 +18,10 @@
|
||||
font-style: bold;
|
||||
background-color: yellow;
|
||||
}
|
||||
|
||||
|
||||
#targets {
|
||||
display:inline-block;
|
||||
}
|
||||
</style>
|
||||
<div class="container">
|
||||
<input type="hidden" id="displayname" />
|
||||
@ -26,13 +29,13 @@
|
||||
<h3>Salons</h3>
|
||||
<ul><li id="pubChan">Public</li></ul>
|
||||
<h3>Utilisateurs</h3>
|
||||
<ul id="userlist" style="list-style-type:none;">
|
||||
<ul id="userlist" style="list-style:none; padding: 1em; margin:1em;sqc">
|
||||
</ul>
|
||||
|
||||
</div>
|
||||
<ul id="discussion">
|
||||
</ul>
|
||||
<div style="display: inline-block;">
|
||||
<div id="targets">
|
||||
<div id="sendmessagebox">
|
||||
<input type="text" id="message" />
|
||||
<input type="button" id="sendmessage" value="@SR["Send"]" />
|
||||
@ -176,15 +179,27 @@ $('#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 () {
|
||||
|
||||
|
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>
|
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>
|
@ -59,8 +59,35 @@
|
||||
</main>
|
||||
<hr />
|
||||
<footer>
|
||||
<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 Paul Schneider</p>
|
||||
</footer>
|
||||
@RenderSection("scripts", required: false)
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
Reference in New Issue
Block a user