REORG
This commit is contained in:
parent
8d68ee380a
commit
45514010f2
3505 changed files with 154 additions and 523 deletions
62
src/Org/Views/MailingTemplate/Create.cshtml
Normal file
62
src/Org/Views/MailingTemplate/Create.cshtml
Normal file
|
|
@ -0,0 +1,62 @@
|
|||
@model Yavsc.Server.Models.EMailing.MailingTemplate
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Create";
|
||||
}
|
||||
|
||||
<h2>Create</h2>
|
||||
|
||||
<form asp-action="Create">
|
||||
<div class="form-horizontal">
|
||||
<h4>MailingTemplate</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="All" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Id" class="control-label col-md-2">Id</label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="Id" asp-items="@ViewBag.Id" class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="Id" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Body" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<textarea asp-for="Body" class="form-control" >
|
||||
</textarea>
|
||||
<span asp-validation-for="Body" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ReplyToAddress" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ReplyToAddress" class="form-control" />
|
||||
<span asp-validation-for="ReplyToAddress" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Topic" class="form-control" />
|
||||
<span asp-validation-for="Topic" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ToSend" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ToSend" asp-items="@ViewBag.ToSend" class="form-control"></select>
|
||||
<span asp-validation-for="ToSend" 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-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
70
src/Org/Views/MailingTemplate/Delete.cshtml
Normal file
70
src/Org/Views/MailingTemplate/Delete.cshtml
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
@model Yavsc.Server.Models.EMailing.MailingTemplate
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Delete";
|
||||
}
|
||||
|
||||
<h2>Delete</h2>
|
||||
|
||||
<h3>AreYourSureYouWantToDeleteThis</h3>
|
||||
<div>
|
||||
<h4>MailingTemplate</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.DateCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ReplyToAddress)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ReplyToAddress)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Topic)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ToSend)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ToSend)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserModified)
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
<form asp-action="Delete">
|
||||
<div class="form-actions no-color">
|
||||
<input type="submit" value="Delete" class="btn btn-primary" /> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
69
src/Org/Views/MailingTemplate/Details.cshtml
Normal file
69
src/Org/Views/MailingTemplate/Details.cshtml
Normal file
|
|
@ -0,0 +1,69 @@
|
|||
@model Yavsc.Server.Models.EMailing.MailingTemplate
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Details";
|
||||
}
|
||||
@section scripts {
|
||||
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
||||
}
|
||||
|
||||
<h2>Details</h2>
|
||||
|
||||
<div>
|
||||
<h4>MailingTemplate</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Body)
|
||||
</dt>
|
||||
<dd>
|
||||
<code><pre class="prettyprint">@Model.Body</pre></code>
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.DateModified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ReplyToAddress)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ReplyToAddress)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.Topic)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.ToSend)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.ToSend)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserCreated)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.UserModified)
|
||||
</dd>
|
||||
</dl>
|
||||
</div>
|
||||
<p>
|
||||
<a asp-action="Edit" asp-route-id="@Model.Id">Edit</a> |
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</p>
|
||||
65
src/Org/Views/MailingTemplate/Edit.cshtml
Normal file
65
src/Org/Views/MailingTemplate/Edit.cshtml
Normal file
|
|
@ -0,0 +1,65 @@
|
|||
@model Yavsc.Server.Models.EMailing.MailingTemplate
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Edit";
|
||||
}
|
||||
@section scripts {
|
||||
<script src="https://cdn.rawgit.com/google/code-prettify/master/loader/run_prettify.js"></script>
|
||||
}
|
||||
<h2>Edit</h2>
|
||||
|
||||
<form asp-action="Edit">
|
||||
<div class="form-horizontal">
|
||||
<h4>MailingTemplate</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Id" class="control-label col-md-2">Id</label>
|
||||
<div class="col-md-10">
|
||||
<select name="Id" asp-for="Id" asp-items="@ViewBag.Id" class="form-control" >
|
||||
</select>
|
||||
<span asp-validation-for="Id" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Body" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<code><pre class="prettyprint">@Model.Body</pre>
|
||||
<textarea Id="Body" Name="Body" class="form-control" >@Model.Body</textarea>
|
||||
</code>
|
||||
<span asp-validation-for="Body" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ReplyToAddress" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="ReplyToAddress" class="form-control" />
|
||||
<span asp-validation-for="ReplyToAddress" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="Topic" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<input asp-for="Topic" class="form-control" />
|
||||
<span asp-validation-for="Topic" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label asp-for="ToSend" class="col-md-2 control-label"></label>
|
||||
<div class="col-md-10">
|
||||
<select asp-for="ToSend" asp-items="@ViewBag.ToSend" class="form-control"></select>
|
||||
<span asp-validation-for="ToSend" 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-primary" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
<div>
|
||||
<a asp-action="Index">Back to List</a>
|
||||
</div>
|
||||
|
||||
74
src/Org/Views/MailingTemplate/Index.cshtml
Normal file
74
src/Org/Views/MailingTemplate/Index.cshtml
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
@model IEnumerable<Yavsc.Server.Models.EMailing.MailingTemplate>
|
||||
|
||||
@{
|
||||
ViewData["Title"] = "Index";
|
||||
}
|
||||
|
||||
<h2>Index</h2>
|
||||
|
||||
<p>
|
||||
<a asp-action="Create">Create New</a>
|
||||
</p>
|
||||
<table class="table">
|
||||
<tr>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Topic)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ReplyToAddress)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.Body)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.ToSend)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateCreated)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UserCreated)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.DateModified)
|
||||
</th>
|
||||
<th>
|
||||
@Html.DisplayNameFor(model => model.UserModified)
|
||||
</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
|
||||
@foreach (var item in Model) {
|
||||
<tr>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Topic)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ReplyToAddress)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.Body)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.ToSend)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateCreated)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UserCreated)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.DateModified)
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.UserModified)
|
||||
</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