Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @model HomeDepotWebApp.Models.CustomerToolViewModel
- @{
- ViewBag.Title = "Detailed";
- }
- <h2>Detailed</h2>
- <div>
- <h4>Customer</h4>
- <hr />
- <dl class="dl-horizontal">
- <dt>
- @Html.DisplayNameFor(model => model.Customer.Name)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Customer.Name)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => model.Customer.Address)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Customer.Address)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => model.Customer.Email)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Customer.Email)
- </dd>
- <dt>
- @Html.DisplayNameFor(model => model.Customer.Password)
- </dt>
- <dd>
- @Html.DisplayFor(model => model.Customer.Password)
- </dd>
- @using (Html.BeginForm("Detailed", "Home"))
- {
- <dt>
- Værktøj
- </dt>
- <dd>
- @Html.DropDownListFor(model => model.SelectedValue, Model.SelectList);
- @Html.HiddenFor(model => model.SelectedTool.Id);
- </dd>
- <dd>
- <label>Start dato</label>
- @Html.TextBoxFor(model => model.StartDate, new { @type = "date", @class = "form-control datepicker", @Value = Model.StartDate.ToString("yyyy-MM-dd") })
- </dd>
- <dd>
- <label>Slut dato</label>
- @Html.TextBoxFor(model => model.EndDate, new { @type = "date", @class = "form-control datepicker", @Value = Model.EndDate.ToString("yyyy-MM-dd") })
- </dd>
- <dd>
- @Html.HiddenFor(model => model.Customer.Id)
- @Html.HiddenFor(model => model.Customer.Name)
- @Html.HiddenFor(model => model.Customer.Address)
- @Html.HiddenFor(model => model.Customer.Email)
- @Html.HiddenFor(model => model.Customer.Password)
- </dd>
- <dd>
- <input type="submit" value="Opret Booking" />
- </dd>
- }
- </dl>
- </div>
- <p>
- @* @Html.ActionLink("Edit", "Edit", new { id = Model.Id }) |*@
- @Html.ActionLink("Log ud", "Index")
- </p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement