69 lines
2.3 KiB
Plaintext
69 lines
2.3 KiB
Plaintext
@model BlogPost
|
|
|
|
@{
|
|
ViewData["Title"] = @SR["Create"];
|
|
}
|
|
|
|
<h2>@SR["Create"]</h2>
|
|
|
|
<form asp-action="Create" role="form" method="POST">
|
|
<div class="form-horizontal">
|
|
<h4>Blog</h4>
|
|
<hr />
|
|
<div asp-validation-summary="ValidationSummary.All" class="text-danger"></div>
|
|
|
|
<div class="form-group">
|
|
<label asp-for="Title" class="col-md-2 control-label"></label>
|
|
<div class="col-md-10">
|
|
<input asp-for="Title" class="form-control" />
|
|
<span asp-validation-for="Title" 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="Content" class="col-md-2 control-label"></label>
|
|
<div class="col-md-10">
|
|
<textarea asp-for="Content" class="form-control" >
|
|
</textarea>
|
|
<span asp-validation-for="Content" class="text-danger" ></span>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label asp-for="Visible" class="col-md-2 control-label"></label>
|
|
<div class="col-md-10">
|
|
<input asp-for="Visible" class="form-control"/>
|
|
</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">@SR["Back to List"]</a>
|
|
</div>
|
|
|
|
@{ await Html.RenderPartialAsync("_PostFilesPartial"); }
|
|
|
|
@section Scripts {
|
|
<script src="~/js/dropzone.js"></script>
|
|
@{ await Html.RenderPartialAsync("_FSScriptsPartial"); }
|
|
@{ await Html.RenderPartialAsync("_ValidationScriptsPartial"); }
|
|
<script>
|
|
$(document).ready(function() {
|
|
if (typeof(allowCircleToBlog) !== 'undefined') {
|
|
$('input.Blogcirle[type=checkbox]').on('change', allowCircleToBlog);
|
|
}
|
|
});
|
|
</script>
|
|
}
|