@@ -12,30 +12,14 @@
@Html.AntiForgeryToken()

<div class="form-horizontal">
<h4>Checking</h4>
@*<h4>Checking</h4>*@
<hr />
@Html.ValidationSummary(true, "", new { @class = "text-danger" })
<div class="form-group">
@Html.LabelFor(model => model.CheckingsName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CheckingsName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CheckingsName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CheckingsBalance, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CheckingsBalance, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CheckingsBalance, "", 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.EnumDropDownListFor(model => model.TransactionType, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" })
@Html.ValidationMessageFor(model => model.CheckingsName, "Checkings Name", new { @class = "text-danger" })
</div>
</div>

@@ -4,11 +4,11 @@
ViewBag.Title = "Delete";
}

<h2>Delete</h2>
<h2>Delete Checking Account</h2>

<h3>Are you sure you want to delete this?</h3>
<h3>Are you sure you want to delete this checking account?</h3>
<div>
<h4>Checking</h4>
@*<h4>Checking Account</h4>*@
<hr />
<dl class="dl-horizontal">
<dt>
@@ -4,10 +4,10 @@
ViewBag.Title = "Details";
}

<h2>Details</h2>
<h2>Details of Checking Account</h2>

<div>
<h4>Checking</h4>
<h4>Checking Account</h4>
<hr />
<dl class="dl-horizontal">
<dt>
@@ -33,6 +33,13 @@
<dd>
@Html.DisplayFor(model => model.TransactionType)
</dd>
<dt>
@Html.DisplayNameFor(model => model.User.FirstName)
</dt>

<dd>
@Html.DisplayFor(model => model.User.FirstName)
</dd>

</dl>
</div>
@@ -4,7 +4,7 @@
ViewBag.Title = "Edit";
}

<h2>Edit</h2>
<h2>Edit Checking Account</h2>


@using (Html.BeginForm())
@@ -21,23 +21,7 @@
@Html.LabelFor(model => model.CheckingsName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CheckingsName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CheckingsName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.CheckingsBalance, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.CheckingsBalance, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.CheckingsBalance, "", 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.EnumDropDownListFor(model => model.TransactionType, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" })
@Html.ValidationMessageFor(model => model.CheckingsName, "Checkings Name", new { @class = "text-danger" })
</div>
</div>

@@ -4,7 +4,7 @@
ViewBag.Title = "Index";
}

<h2>Index</h2>
<h2>Checking Accounts</h2>

<p>
@Html.ActionLink("Create New", "Create")
@@ -17,9 +17,6 @@
<th>
@Html.DisplayNameFor(model => model.CheckingsBalance)
</th>
<th>
@Html.DisplayNameFor(model => model.TransactionType)
</th>
<th></th>
</tr>

@@ -31,9 +28,6 @@
<td>
@Html.DisplayFor(modelItem => item.CheckingsBalance)
</td>
<td>
@Html.DisplayFor(modelItem => item.TransactionType)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.CheckingID }) |
@Html.ActionLink("Details", "Details", new { id=item.CheckingID }) |
@@ -4,7 +4,7 @@
ViewBag.Title = "Create";
}

<h2>Create</h2>
<h2>Create Savings Account</h2>


@using (Html.BeginForm())
@@ -19,23 +19,7 @@
@Html.LabelFor(model => model.SavingsName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.SavingsName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SavingsName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.SavingsBalance, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.SavingsBalance, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SavingsBalance, "", 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.EnumDropDownListFor(model => model.TransactionType, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" })
@Html.ValidationMessageFor(model => model.SavingsName, "Savings Name", new { @class = "text-danger" })
</div>
</div>

@@ -4,11 +4,11 @@
ViewBag.Title = "Delete";
}

<h2>Delete</h2>
<h2>Delete Savings Account</h2>

<h3>Are you sure you want to delete this?</h3>
<h3>Are you sure you want to delete this savings account?</h3>
<div>
<h4>Saving</h4>
@*<h4>Saving</h4>*@
<hr />
<dl class="dl-horizontal">
<dt>
@@ -4,10 +4,10 @@
ViewBag.Title = "Details";
}

<h2>Details</h2>
<h2>Details of Savings Account</h2>

<div>
<h4>Saving</h4>
@*<h4>Saving</h4>*@
<hr />
<dl class="dl-horizontal">
<dt>
@@ -33,6 +33,13 @@
<dd>
@Html.DisplayFor(model => model.TransactionType)
</dd>
<dt>
@Html.DisplayNameFor(model => model.User.FirstName)
</dt>

<dd>
@Html.DisplayFor(model => model.User.FirstName)
</dd>

</dl>
</div>
@@ -4,7 +4,7 @@
ViewBag.Title = "Edit";
}

<h2>Edit</h2>
<h2>Edit Savings Account</h2>


@using (Html.BeginForm())
@@ -21,23 +21,7 @@
@Html.LabelFor(model => model.SavingsName, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.SavingsName, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SavingsName, "", new { @class = "text-danger" })
</div>
</div>

<div class="form-group">
@Html.LabelFor(model => model.SavingsBalance, htmlAttributes: new { @class = "control-label col-md-2" })
<div class="col-md-10">
@Html.EditorFor(model => model.SavingsBalance, new { htmlAttributes = new { @class = "form-control" } })
@Html.ValidationMessageFor(model => model.SavingsBalance, "", 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.EnumDropDownListFor(model => model.TransactionType, htmlAttributes: new { @class = "form-control" })
@Html.ValidationMessageFor(model => model.TransactionType, "", new { @class = "text-danger" })
@Html.ValidationMessageFor(model => model.SavingsName, "Savings Name", new { @class = "text-danger" })
</div>
</div>

@@ -4,7 +4,7 @@
ViewBag.Title = "Index";
}

<h2>Index</h2>
<h2>Savings Account</h2>

<p>
@Html.ActionLink("Create New", "Create")
@@ -17,9 +17,6 @@
<th>
@Html.DisplayNameFor(model => model.SavingsBalance)
</th>
<th>
@Html.DisplayNameFor(model => model.TransactionType)
</th>
<th></th>
</tr>

@@ -31,9 +28,6 @@
<td>
@Html.DisplayFor(modelItem => item.SavingsBalance)
</td>
<td>
@Html.DisplayFor(modelItem => item.TransactionType)
</td>
<td>
@Html.ActionLink("Edit", "Edit", new { id=item.SavingID }) |
@Html.ActionLink("Details", "Details", new { id=item.SavingID }) |
@@ -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>