layout
This commit is contained in:
parent
1b2c3e274c
commit
2d9851f642
11 changed files with 34 additions and 61 deletions
|
|
@ -7,65 +7,40 @@
|
||||||
<h2>Index</h2>
|
<h2>Index</h2>
|
||||||
<p class="text-success">@ViewData["StatusMessage"]</p>
|
<p class="text-success">@ViewData["StatusMessage"]</p>
|
||||||
<p>
|
<p>
|
||||||
<a asp-action="Create">Create New</a>
|
<a asp-action="Create">@SR["Create a new article"]</a>
|
||||||
</p>
|
</p>
|
||||||
<table class="table">
|
<table class="table">
|
||||||
<tr>
|
<tr>
|
||||||
|
<th>
|
||||||
|
@SR[Html.DisplayNameFor(model => model.title)]
|
||||||
|
</th>
|
||||||
<th>
|
<th>
|
||||||
@SR["Author"]
|
@SR["Author"]
|
||||||
</th>
|
</th>
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.title)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.modified)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.photo)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.posted)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.rate)
|
|
||||||
</th>
|
|
||||||
<th>
|
|
||||||
@Html.DisplayNameFor(model => model.visible)
|
|
||||||
</th>
|
|
||||||
<th></th>
|
<th></th>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
@foreach (var item in Model) {
|
@foreach (var item in Model) {
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
@item.Author?.UserName
|
@Html.DisplayFor(modelItem => item.photo)
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<markdown>@item.title</markdown>
|
<markdown>@item.title</markdown>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@Html.DisplayFor(modelItem => item.modified)
|
<em>@item.Author?.UserName</em>
|
||||||
</td>
|
<hr>
|
||||||
<td>
|
<i>@Html.DisplayFor(modelItem => item.posted)</i>
|
||||||
@Html.DisplayFor(modelItem => item.photo)
|
<i>@Html.DisplayFor(modelItem => item.modified)</i>
|
||||||
</td>
|
<i>@Html.DisplayFor(modelItem => item.rate)</i>
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.posted)
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.rate)
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
@Html.DisplayFor(modelItem => item.visible)
|
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<ul class="actiongroup">
|
<ul class="actiongroup">
|
||||||
<li><a asp-action="Details" asp-route-id="@item.Id">Details</a>
|
<li><a asp-action="Details" asp-route-id="@item.Id">Details</a>
|
||||||
</li>
|
</li>
|
||||||
@if (await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())) {
|
@if (await AuthorizationService.AuthorizeAsync(User, item, new EditRequirement())) {
|
||||||
<li><a asp-action="Edit" asp-route-id="@item.Id">Edit</a>
|
<li><a asp-action="Edit" asp-route-id="@item.Id">@SR["Edit"]</a>
|
||||||
</li>
|
</li>
|
||||||
<li><a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
|
<li><a asp-action="Delete" asp-route-id="@item.Id">@SR["Delete"]</a>
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -43,22 +43,16 @@ $(document).ready(function(){
|
||||||
<hr />
|
<hr />
|
||||||
@Html.DisplayFor(m => m.EventDate)
|
@Html.DisplayFor(m => m.EventDate)
|
||||||
@Html.DisplayFor(m => m.Location)
|
@Html.DisplayFor(m => m.Location)
|
||||||
<h4>@SR["Notifications sent to its devices"]</h4>
|
|
||||||
<hr />
|
|
||||||
@if (ViewBag.GooglePayload !=null)
|
@if (ViewBag.GooglePayload !=null)
|
||||||
{
|
{
|
||||||
|
@if (ViewBag.GooglePayload.success>0) {
|
||||||
@if (ViewBag.GooglePayload.results !=null) {
|
<h4>@SR["GCM Notifications sent"]</h4>
|
||||||
@:success: @ViewBag.GooglePayload.success
|
}
|
||||||
@:failure: @ViewBag.GooglePayload.failure
|
else {
|
||||||
<br/>
|
if (ViewBag.GooglePayload.failure>0)
|
||||||
|
{
|
||||||
@foreach (MessageWithPayloadResponse.Result mr in ViewBag.GooglePayload.results) {
|
<h4>@SR["GCM Notification sending failed"]</h4>
|
||||||
@:message_id: @mr.message_id
|
}
|
||||||
@:registration_id: @mr.registration_id
|
|
||||||
@:error: @mr.error
|
|
||||||
<br/>
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@model Yavsc.Models.Estimate
|
@model Estimate
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = SR["Estimate"];
|
ViewData["Title"] = SR["Estimate"];
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@model Yavsc.Models.Estimate
|
@model Estimate
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Delete";
|
ViewData["Title"] = "Delete";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@model Yavsc.Models.Estimate
|
@model Estimate
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Details";
|
ViewData["Title"] = "Details";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@model Yavsc.Models.Estimate
|
@model Estimate
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Edit";
|
ViewData["Title"] = "Edit";
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
@model IEnumerable<Yavsc.Models.Estimate>
|
@model IEnumerable<Estimate>
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = SR["My estimates"];
|
ViewData["Title"] = SR["My estimates"];
|
||||||
|
|
|
||||||
|
|
@ -8,7 +8,7 @@
|
||||||
@foreach (var profile in Model) {
|
@foreach (var profile in Model) {
|
||||||
await Html.RenderPartialAsync("_PerformerPartial", profile) ;
|
await Html.RenderPartialAsync("_PerformerPartial", profile) ;
|
||||||
<form action="~/Command/Create" >
|
<form action="~/Command/Create" >
|
||||||
<input type="hidden" name="id" value="@profile.PerfomerId" />
|
<input type="hidden" name="id" value="@profile.PerformerId" />
|
||||||
<input type="submit" value="@SR["Book this performer"]"/>
|
<input type="submit" value="@SR["Book this performer"]"/>
|
||||||
</form>
|
</form>
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -39,12 +39,14 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a asp-controller="Home" asp-action="Index" class="navbar-brand">@SiteSettings.Value.Title</a>
|
<a asp-controller="Home" asp-action="Index" class="navbar-brand">@SiteSettings.Value.Title</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="navbar-collapse collapse">
|
<div class="navbar-collapse collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li><a asp-controller="Home" asp-action="Index" class="navbar-link">@SR["Home"]</a></li>
|
<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="About" class="navbar-link">@SR["About"] @SiteSettings.Value.Title</a> </li>
|
||||||
<li><a asp-controller="Home" asp-action="Contact" class="navbar-link">@SR["Contact"]</a></li>
|
<li><a asp-controller="Home" asp-action="Contact" class="navbar-link">@SR["Contact"]</a></li>
|
||||||
</ul>
|
</ul>
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,10 @@
|
||||||
@model PerformerProfile
|
@model PerformerProfile
|
||||||
|
|
||||||
<div class="performer @(Model.Active?"active":"inactive")">
|
<div class="performer @(Model.Active?"active":"inactive")">
|
||||||
@Model.Performer?.UserName (rating: @Model.Rate%)
|
@if (Model.Performer != null) {
|
||||||
|
|
||||||
<ul>
|
<ul>
|
||||||
|
<li>@Model.Performer.UserName (rating: @Model.Rate%)</li>
|
||||||
@if (Model.MinDailyCost != null) {
|
@if (Model.MinDailyCost != null) {
|
||||||
<li>@SR["MinDailyCost"]: @Model.MinDailyCost€</li>
|
<li>@SR["MinDailyCost"]: @Model.MinDailyCost€</li>
|
||||||
}
|
}
|
||||||
|
|
@ -29,4 +31,5 @@
|
||||||
</li>
|
</li>
|
||||||
}
|
}
|
||||||
</ul>
|
</ul>
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -15,13 +15,12 @@ textarea {
|
||||||
|
|
||||||
/* Set widths on image and video, since otherwise they use their native resolution */
|
/* Set widths on image and video, since otherwise they use their native resolution */
|
||||||
|
|
||||||
img,
|
|
||||||
video {
|
|
||||||
max-width: 100%;
|
|
||||||
}
|
|
||||||
/* .navbar-reac */
|
/* .navbar-reac */
|
||||||
|
|
||||||
/* Carousel */
|
/* Carousel */
|
||||||
|
.carousel, .carousel img {
|
||||||
|
min-height: 15em;
|
||||||
|
}
|
||||||
.carousel-caption p {
|
.carousel-caption p {
|
||||||
font-family: "jubilat";
|
font-family: "jubilat";
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue