| @@ -0,0 +1,88 @@ | ||
| @model Longhorn_Bank.Models.Transaction | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Create"; | ||
| } | ||
|
|
||
| <h2>Create</h2> | ||
|
|
||
|
|
||
| @using (Html.BeginForm()) | ||
| { | ||
| @Html.AntiForgeryToken() | ||
|
|
||
| <div class="form-horizontal"> | ||
| <h4>Transaction</h4> | ||
| <hr /> | ||
| @Html.ValidationSummary(true, "", new { @class = "text-danger" }) | ||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.TransactionNumber, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.TransactionNumber, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.TransactionNumber, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Date, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Date, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.TransactionType, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.TransactionType, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.EmployeeComment, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.EmployeeComment, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.EmployeeComment, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Status, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Status, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Amount, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Amount, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Amount, "", new { @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> | ||
| } | ||
|
|
||
| <div> | ||
| @Html.ActionLink("Back to List", "Index") | ||
| </div> | ||
|
|
||
| <script src="~/Scripts/jquery-1.10.2.min.js"></script> | ||
| <script src="~/Scripts/jquery.validate.min.js"></script> | ||
| <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script> |
| @@ -0,0 +1,80 @@ | ||
| @model Longhorn_Bank.Models.Transaction | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Delete"; | ||
| } | ||
|
|
||
| <h2>Delete</h2> | ||
|
|
||
| <h3>Are you sure you want to delete this?</h3> | ||
| <div> | ||
| <h4>Transaction</h4> | ||
| <hr /> | ||
| <dl class="dl-horizontal"> | ||
| <dt> | ||
| @Html.DisplayNameFor(model => model.TransactionNumber) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.TransactionNumber) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Date) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Date) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Description) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Description) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.TransactionType) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.TransactionType) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.EmployeeComment) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.EmployeeComment) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Status) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Status) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Amount) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Amount) | ||
| </dd> | ||
|
|
||
| </dl> | ||
|
|
||
| @using (Html.BeginForm()) { | ||
| @Html.AntiForgeryToken() | ||
|
|
||
| <div class="form-actions no-color"> | ||
| <input type="submit" value="Delete" class="btn btn-default" /> | | ||
| @Html.ActionLink("Back to List", "Index") | ||
| </div> | ||
| } | ||
| </div> |
| @@ -0,0 +1,74 @@ | ||
| @model Longhorn_Bank.Models.Transaction | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Details"; | ||
| } | ||
|
|
||
| <h2>Details</h2> | ||
|
|
||
| <div> | ||
| <h4>Transaction</h4> | ||
| <hr /> | ||
| <dl class="dl-horizontal"> | ||
| <dt> | ||
| @Html.DisplayNameFor(model => model.TransactionNumber) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.TransactionNumber) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Date) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Date) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Description) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Description) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.TransactionType) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.TransactionType) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.EmployeeComment) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.EmployeeComment) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Status) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Status) | ||
| </dd> | ||
|
|
||
| <dt> | ||
| @Html.DisplayNameFor(model => model.Amount) | ||
| </dt> | ||
|
|
||
| <dd> | ||
| @Html.DisplayFor(model => model.Amount) | ||
| </dd> | ||
|
|
||
| </dl> | ||
| </div> | ||
| <p> | ||
| @Html.ActionLink("Edit", "Edit", new { id = Model.TransactionID }) | | ||
| @Html.ActionLink("Back to List", "Index") | ||
| </p> |
| @@ -0,0 +1,90 @@ | ||
| @model Longhorn_Bank.Models.Transaction | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Edit"; | ||
| } | ||
|
|
||
| <h2>Edit</h2> | ||
|
|
||
|
|
||
| @using (Html.BeginForm()) | ||
| { | ||
| @Html.AntiForgeryToken() | ||
|
|
||
| <div class="form-horizontal"> | ||
| <h4>Transaction</h4> | ||
| <hr /> | ||
| @Html.ValidationSummary(true, "", new { @class = "text-danger" }) | ||
| @Html.HiddenFor(model => model.TransactionID) | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.TransactionNumber, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.TransactionNumber, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.TransactionNumber, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Date, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Date, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Date, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Description, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Description, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Description, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.TransactionType, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.TransactionType, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.EmployeeComment, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.EmployeeComment, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.EmployeeComment, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Status, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Status, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Status, "", new { @class = "text-danger" }) | ||
| </div> | ||
| </div> | ||
|
|
||
| <div class="form-group"> | ||
| @Html.LabelFor(model => model.Amount, htmlAttributes: new { @class = "control-label col-md-2" }) | ||
| <div class="col-md-10"> | ||
| @Html.EditorFor(model => model.Amount, new { htmlAttributes = new { @class = "form-control" } }) | ||
| @Html.ValidationMessageFor(model => model.Amount, "", new { @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> | ||
| } | ||
|
|
||
| <div> | ||
| @Html.ActionLink("Back to List", "Index") | ||
| </div> | ||
|
|
||
| <script src="~/Scripts/jquery-1.10.2.min.js"></script> | ||
| <script src="~/Scripts/jquery.validate.min.js"></script> | ||
| <script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script> |
| @@ -0,0 +1,69 @@ | ||
| @model IEnumerable<Longhorn_Bank.Models.Transaction> | ||
|
|
||
| @{ | ||
| ViewBag.Title = "Index"; | ||
| } | ||
|
|
||
| <h2>Index</h2> | ||
|
|
||
| <p> | ||
| @Html.ActionLink("Create New", "Create") | ||
| </p> | ||
| <table class="table"> | ||
| <tr> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.TransactionNumber) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.Date) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.Description) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.TransactionType) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.EmployeeComment) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.Status) | ||
| </th> | ||
| <th> | ||
| @Html.DisplayNameFor(model => model.Amount) | ||
| </th> | ||
| <th></th> | ||
| </tr> | ||
|
|
||
| @foreach (var item in Model) { | ||
| <tr> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.TransactionNumber) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.Date) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.Description) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.TransactionType) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.EmployeeComment) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.Status) | ||
| </td> | ||
| <td> | ||
| @Html.DisplayFor(modelItem => item.Amount) | ||
| </td> | ||
| <td> | ||
| @Html.ActionLink("Edit", "Edit", new { id=item.TransactionID }) | | ||
| @Html.ActionLink("Details", "Details", new { id=item.TransactionID }) | | ||
| @Html.ActionLink("Delete", "Delete", new { id=item.TransactionID }) | ||
| </td> | ||
| </tr> | ||
| } | ||
|
|
||
| </table> |