Automated teller machine emulation.
@using SergeyDrozdovATM.Web.Models
@model CreateAccountViewModel
@{
ViewBag.Title = "Create Account";
}
<h2>@ViewBag.Title</h2>
@if (Model.NoAvailableCurrencies)
{
<div class="row">
<hr />
<div class="col-md-8">All possible accounts has created.</div>
</div>
}
else
{
<div class="row">
<div class="col-md-8">
<section id="loginForm">
@using (Html.BeginForm("CreateAccount", "ATM", null, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
{
@Html.AntiForgeryToken()
<hr />
<div class="form-group">
@Html.LabelFor(m => m.CurrencyId, new { @class = "col-md-2 control-label" })
<div class="col-md-10">
@Html.DropDownListFor(m => m.CurrencyId, Model.CurrenciesList, new { @class = "col-md-2 form-control" })
</div>
</div>
<div class="form-group">
<div class="col-md-offset-2 col-md-10">
<input type="submit" value="Create" class="btn btn-primary" />
@Html.ActionLink("Cancel", "Index", "Home", null, new { @class = "btn btn-default" })
</div>
</div>
}
</section>
</div>
</div>
}
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
}