hidden activity
This commit is contained in:
74
Yavsc/Views/Notifications/Create.cshtml
Normal file
74
Yavsc/Views/Notifications/Create.cshtml
Normal file
@ -0,0 +1,74 @@
|
||||
@model Yavsc.Models.Messaging.Notification
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>Notification</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="body" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="body" class="form-control" />
|
||||
<span asp-validation-for="body" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="click_action" class="form-control" />
|
||||
<span asp-validation-for="click_action" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="color" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="color" class="form-control" />
|
||||
<span asp-validation-for="color" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="icon" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="icon" class="form-control" />
|
||||
<span asp-validation-for="icon" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="sound" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="sound" class="form-control" />
|
||||
<span asp-validation-for="sound" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="tag" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="tag" class="form-control" />
|
||||
<span asp-validation-for="tag" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="title" class="form-control" />
|
||||
<span asp-validation-for="title" 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>
|
||||
|
64
Yavsc/Views/Notifications/Delete.cshtml
Normal file
64
Yavsc/Views/Notifications/Delete.cshtml
Normal file
@ -0,0 +1,64 @@
|
||||
@model Yavsc.Models.Messaging.Notification
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>Notification</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.body)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.body)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.click_action)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.click_action)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.color)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.color)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.icon)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.icon)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.sound)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.sound)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.tag)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.tag)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.title)
|
||||
</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>
|
60
Yavsc/Views/Notifications/Details.cshtml
Normal file
60
Yavsc/Views/Notifications/Details.cshtml
Normal file
@ -0,0 +1,60 @@
|
||||
@model Yavsc.Models.Messaging.Notification
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>Notification</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.body)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.body)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.click_action)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.click_action)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.color)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.color)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.icon)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.icon)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.sound)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.sound)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.tag)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.tag)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.title)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
75
Yavsc/Views/Notifications/Edit.cshtml
Normal file
75
Yavsc/Views/Notifications/Edit.cshtml
Normal file
@ -0,0 +1,75 @@
|
||||
@model Yavsc.Models.Messaging.Notification
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>Notification</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="body" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="body" class="form-control" />
|
||||
<span asp-validation-for="body" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="click_action" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="click_action" class="form-control" />
|
||||
<span asp-validation-for="click_action" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="color" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="color" class="form-control" />
|
||||
<span asp-validation-for="color" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="icon" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="icon" class="form-control" />
|
||||
<span asp-validation-for="icon" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="sound" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="sound" class="form-control" />
|
||||
<span asp-validation-for="sound" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="tag" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="tag" class="form-control" />
|
||||
<span asp-validation-for="tag" class="text-danger" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="title" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="title" class="form-control" />
|
||||
<span asp-validation-for="title" 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>
|
||||
|
68
Yavsc/Views/Notifications/Index.cshtml
Normal file
68
Yavsc/Views/Notifications/Index.cshtml
Normal file
@ -0,0 +1,68 @@
|
||||
@model IEnumerable<Yavsc.Models.Messaging.Notification>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.body)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.click_action)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.color)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.icon)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.sound)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.tag)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.body)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.click_action)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.color)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.icon)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.sound)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.tag)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.title)
|
||||
</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>
|
Reference in New Issue
Block a user