@model Activity

@{
    ViewData["Title"] = "Create";
}

<h2>Create</h2>

<form asp-action="Create">
    <div class="form-horizontal">
        <h4>Activity</h4>
        <hr />
        <div asp-validation-summary="ModelOnly" class="text-danger"></div>
        <div class="form-group">
            <label asp-for="Code" class="col-md-2 control-label">Code</label>
            <div class="col-md-10">
                <input asp-for="Code" class="form-control" />
                <span asp-validation-for="Code" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Name" class="col-md-2 control-label">
                Name"]</label>
            <div class="col-md-10">
                <input asp-for="Name" class="form-control" />
                <span asp-validation-for="Name" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Parent" class="col-md-2 control-label">
                Parent"]</label>
            <div class="col-md-10">
                <select asp-for="ParentCode" asp-items=@ViewBag.ParentCode class="form-control" >
                </select>
                <span asp-validation-for="ParentCode" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Description" class="col-md-2 control-label">
                Description"]</label>
            <div class="col-md-10">
                <input asp-for="Description" class="form-control" />
                <span asp-validation-for="Description" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Photo" class="col-md-2 control-label">
                Photo"]
            </label>
            <div class="col-md-10">
                <input asp-for="Photo" class="form-control" />
                <span asp-validation-for="Photo" class="text-danger" ></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="SettingsClassName" class="col-md-2 control-label">
                SettingsClass"]
            </label>
            <div class="col-md-10">
                <select asp-for="SettingsClassName" class="form-control" asp-items="@ViewBag.SettingsClassName">
                </select>
                <span asp-validation-for="SettingsClassName" class="text-danger" ></span>
            </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>
</form>

<div>
    <a asp-action="Index">Back to List</a>
</div>


@section Scripts {
    @{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
}
