Files
marechai/cicm_web/Areas/Admin/Views/StorageByOwnedMachines/Create.cshtml

107 lines
3.8 KiB
Plaintext

@{
/******************************************************************************
// Canary Islands Computer Museum Website
// ----------------------------------------------------------------------------
//
// Filename : Create.cshtml
// Author(s) : Natalia Portillo <claunia@claunia.com>
//
// --[ Description ] ----------------------------------------------------------
//
// Admin view create
//
// --[ License ] --------------------------------------------------------------
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as
// published by the Free Software Foundation, either version 3 of the
// License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.
//
// ----------------------------------------------------------------------------
// Copyright © 2003-2018 Natalia Portillo
*******************************************************************************/
}
@using Cicm.Database
@model Cicm.Database.Models.StorageByOwnedMachine
@{
ViewData["Title"] = "Create";
}
<h2>Create</h2>
<h4>Storage by machine</h4>
<hr />
<div class="row">
<div class="col-md-4">
<form asp-action="Create">
<div asp-validation-summary="ModelOnly"
class="text-danger">
</div>
<div class="form-group">
<label asp-for="OwnedMachine"
class="control-label">
</label>
<select asp-for="OwnedMachineId"
class="form-control"
asp-items="ViewBag.OwnedMachineId">
</select>
</div>
<div class="form-group">
<label asp-for="Type"
class="control-label">
</label>
<select asp-for="Type"
class="form-control"
asp-items="Html.GetEnumSelectList<StorageType>().OrderBy(s => s.Text)">
</select>
<span asp-validation-for="Type"
class="text-danger">
</span>
</div>
<div class="form-group">
<label asp-for="Interface"
class="control-label">
</label>
<select asp-for="Interface"
class="form-control"
asp-items="Html.GetEnumSelectList<StorageInterface>().OrderBy(s => s.Text)">
</select>
<span asp-validation-for="Interface"
class="text-danger">
</span>
</div>
<div class="form-group">
<label asp-for="Capacity"
class="control-label">
</label>
<input asp-for="Capacity"
class="form-control" />
<span asp-validation-for="Capacity"
class="text-danger">
</span>
</div>
<div class="form-group">
<input class="btn btn-primary"
type="submit"
value="Create" />
<a asp-action="Index"
class="btn btn-secondary">
Back to List
</a>
</div>
</form>
</div>
</div>
@section Scripts {
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}