[WIP] Live flow
This commit is contained in:
parent
c496581447
commit
ae55d9b8d8
16 changed files with 3605 additions and 100 deletions
68
src/Yavsc/Views/LiveFlow/AdminEdit.cshtml
Normal file
68
src/Yavsc/Views/LiveFlow/AdminEdit.cshtml
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
@model Yavsc.Models.Streaming.LiveFlow
|
||||
|
||||
@{
|
||||
ViewData["Title"] = SR["Edit"];
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="AdminEdit">
|
||||
<div class="form-horizontal">
|
||||
<h4>LiveFlow</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="DifferedFileName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DifferedFileName" class="form-control" />
|
||||
<span asp-validation-for="DifferedFileName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="MediaType" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="MediaType" class="form-control" />
|
||||
<span asp-validation-for="MediaType" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="OwnerId" class="control-label col-md-2">OwnerId</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="OwnerId" class="form-control" asp-items="@ViewBag.OwnerId"></select>
|
||||
<span asp-validation-for="OwnerId" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Pitch" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Pitch" class="form-control" />
|
||||
<span asp-validation-for="Pitch" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SequenceNumber" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="SequenceNumber" class="form-control" />
|
||||
<span asp-validation-for="SequenceNumber" class="text-danger" ></span>
|
||||
</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" ></span>
|
||||
</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>
|
||||
|
||||
62
src/Yavsc/Views/LiveFlow/AdminIndex.cshtml
Normal file
62
src/Yavsc/Views/LiveFlow/AdminIndex.cshtml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
@model IEnumerable<Yavsc.Models.Streaming.LiveFlow>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DifferedFileName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MediaType)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Pitch)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SequenceNumber)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Owner)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DifferedFileName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MediaType)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Pitch)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SequenceNumber)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Title)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Owner)
|
||||
</td>
|
||||
<td>
|
||||
<a asp-action="AdminEdit" 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>
|
||||
56
src/Yavsc/Views/LiveFlow/Create.cshtml
Normal file
56
src/Yavsc/Views/LiveFlow/Create.cshtml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
@model Yavsc.Models.Streaming.LiveFlow
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>LiveFlow</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="DifferedFileName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DifferedFileName" class="form-control" />
|
||||
<span asp-validation-for="DifferedFileName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="MediaType" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="MediaType" class="form-control" />
|
||||
<span asp-validation-for="MediaType" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<input type="hidden" asp-for="OwnerId" class ="form-control"
|
||||
value="@User.GetUserId()" />
|
||||
|
||||
<div class="form-group">
|
||||
<label asp-for="Pitch" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Pitch" class="form-control" />
|
||||
<span asp-validation-for="Pitch" class="text-danger" ></span>
|
||||
</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" ></span>
|
||||
</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
src/Yavsc/Views/LiveFlow/Delete.cshtml
Normal file
52
src/Yavsc/Views/LiveFlow/Delete.cshtml
Normal file
|
|
@ -0,0 +1,52 @@
|
|||
@model Yavsc.Models.Streaming.LiveFlow
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>Are you sure you want to delete this?</h3>
|
||||
<div>
|
||||
<h4>LiveFlow</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DifferedFileName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DifferedFileName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MediaType)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MediaType)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Pitch)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Pitch)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.SequenceNumber)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.SequenceNumber)
|
||||
</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>
|
||||
48
src/Yavsc/Views/LiveFlow/Details.cshtml
Normal file
48
src/Yavsc/Views/LiveFlow/Details.cshtml
Normal file
|
|
@ -0,0 +1,48 @@
|
|||
@model Yavsc.Models.Streaming.LiveFlow
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>LiveFlow</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DifferedFileName)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DifferedFileName)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.MediaType)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.MediaType)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Pitch)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Pitch)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.SequenceNumber)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.SequenceNumber)
|
||||
</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>
|
||||
62
src/Yavsc/Views/LiveFlow/Edit.cshtml
Normal file
62
src/Yavsc/Views/LiveFlow/Edit.cshtml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
@model Yavsc.Models.Streaming.LiveFlow
|
||||
|
||||
@{
|
||||
ViewData["Title"] = SR["Edit"];
|
||||
}
|
||||
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>LiveFlow</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
||||
<input type="hidden" asp-for="Id" />
|
||||
<div class="form-group">
|
||||
<label asp-for="DifferedFileName" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="DifferedFileName" class="form-control" />
|
||||
<span asp-validation-for="DifferedFileName" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="MediaType" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="MediaType" class="form-control" />
|
||||
<span asp-validation-for="MediaType" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Pitch" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Pitch" class="form-control" />
|
||||
<span asp-validation-for="Pitch" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="SequenceNumber" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="SequenceNumber" class="form-control" />
|
||||
<span asp-validation-for="SequenceNumber" class="text-danger" ></span>
|
||||
</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" ></span>
|
||||
</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>
|
||||
<input type="hidden" asp-for="OwnerId" >
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
56
src/Yavsc/Views/LiveFlow/Index.cshtml
Normal file
56
src/Yavsc/Views/LiveFlow/Index.cshtml
Normal file
|
|
@ -0,0 +1,56 @@
|
|||
@model IEnumerable<Yavsc.Models.Streaming.LiveFlow>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DifferedFileName)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.MediaType)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Pitch)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.SequenceNumber)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Title)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DifferedFileName)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.MediaType)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Pitch)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.SequenceNumber)
|
||||
</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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue