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