31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
@using ComputerShopContracts.ViewModels;
|
|
@using ComputerShopDataModels.Models;
|
|
|
|
@{
|
|
ViewData["Title"] = "AddComponentToAssembly";
|
|
}
|
|
|
|
@model Dictionary<int, IComponentModel>
|
|
|
|
<form method="post">
|
|
<div class="u-form-group u-form-name u-label-top">
|
|
<label class="u-label u-text-custom-color-1 u-label-1">Сборка: </label>
|
|
<div class="u-input u-input-rectangle">
|
|
<select id="assembly" name="assembly" class="form-control" asp-items="@(new SelectList(@ViewBag.Assemblies, "Id", "AssemblyName"))"></select>
|
|
</div>
|
|
</div>
|
|
<div class="u-form-group u-form-name u-label-top">
|
|
<label class="u-label u-text-custom-color-1 u-label-1">Компонент: </label>
|
|
<div class="u-input u-input-rectangle">
|
|
<select id="component" name="component" class="form-control" asp-items="@(new SelectList(@ViewBag.Components, "Id", "ComponentName"))"></select>
|
|
</div>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col-4">Количество:</div>
|
|
<div class="col-8"><input type="text" name="amount" id="amount" /></div>
|
|
</div>
|
|
<div class="u-align-right u-form-group u-form-submit u-label-top">
|
|
<div class="col-8"></div>
|
|
<div class="col-4"><input type="submit" value="Добавить компонент" class="u-active-custom-color-6 u-border-none u-btn u-btn-submit u-button-style u-custom-color-1 u-hover-custom-color-2 u-btn-1" /></div>
|
|
</div>
|
|
</form> |