@model Activity

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

<h2>@SR["Edit"]</h2>

<form asp-action="Edit">
    <div class="form-horizontal">
        <h4>@SR["Activity"] @Model.Code</h4>
        <hr />
        <div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
        <input type="hidden" asp-for="Code" />
                <div class="form-group">
            <label asp-for="Name" class="col-md-2 control-label"></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"></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"></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"></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"></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">
            <label asp-for="Hidden" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <input asp-for="Hidden" class="form-control" />
                <span asp-validation-for="Hidden" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group">
            <label asp-for="Rate" class="col-md-2 control-label"></label>
            <div class="col-md-10">
                <input asp-for="Rate" class="form-control" />
                <span asp-validation-for="Rate" class="text-danger"></span>
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="Save" class="btn btn-default" />
            </div>
        </div>
    </div>
</form>

<div>
    <a asp-action="Index">@SR["Back to List"]</a>
</div>


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