2025-02-23 20:23:23 +00:00
|
|
|
@model BlogPostEditViewModel
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
@{
|
2023-03-20 19:38:50 +00:00
|
|
|
ViewData["Title"] = "Blog post edition";
|
2016-05-17 18:22:18 +02:00
|
|
|
}
|
|
|
|
|
|
2019-09-01 01:31:55 +01:00
|
|
|
@section header {
|
2016-08-03 16:38:25 +02:00
|
|
|
|
2017-03-29 10:38:37 +02:00
|
|
|
<link href="~/css/main/dropzone.css" rel="stylesheet">
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.box__dragndrop,
|
|
|
|
|
.box__uploading,
|
|
|
|
|
.box__success,
|
|
|
|
|
.box__error {
|
|
|
|
|
display: none;
|
|
|
|
|
}
|
2019-09-09 03:18:47 +01:00
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
.box.has-advanced-upload {
|
|
|
|
|
background-color: white;
|
|
|
|
|
outline: 2px dashed black;
|
|
|
|
|
outline-offset: -10px;
|
|
|
|
|
}
|
|
|
|
|
.box.has-advanced-upload .box__dragndrop {
|
|
|
|
|
display: inline;
|
|
|
|
|
}
|
|
|
|
|
.box.is-dragover {
|
|
|
|
|
background-color: grey;
|
|
|
|
|
}
|
|
|
|
|
.ql-snow.ql-toolbar {
|
|
|
|
|
border: outset grey 2px;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
</style>
|
2017-01-25 10:42:26 +01:00
|
|
|
<script src="~/js/dropzone.js"></script>
|
2019-09-01 01:31:55 +01:00
|
|
|
|
|
|
|
|
|
2024-11-10 23:12:02 +00:00
|
|
|
@{ await Html.RenderPartialAsync("_FSScriptsPartial"); }
|
2019-09-01 01:31:55 +01:00
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
2023-03-20 09:13:16 +00:00
|
|
|
<h2 > Blog post edition </h2>
|
2017-01-24 15:07:27 +01:00
|
|
|
<label><input type="checkbox" id="vcbtn" />Editer le code source Markdown</label>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
2023-03-20 09:13:16 +00:00
|
|
|
<div asp-validation-summary="All" class="text-danger"></div>
|
2017-01-20 14:20:44 +01:00
|
|
|
|
|
|
|
|
|
2016-08-02 17:02:38 +02:00
|
|
|
<div id="Titletoolbar" class="hidden ql-snow ql-toolbar">
|
2016-05-17 18:22:18 +02:00
|
|
|
<button class="ql-format-button ql-italic"></button>
|
2016-08-03 16:38:25 +02:00
|
|
|
<button class="ql-format-button ql-underline"></button>
|
2016-05-17 18:22:18 +02:00
|
|
|
<button class="ql-format-button ql-strike"></button>
|
|
|
|
|
</div>
|
|
|
|
|
|
2017-05-27 18:29:17 +02:00
|
|
|
<img class="blogphoto" alt="" src="@Model.Photo" title="Photo associée au post">
|
2024-11-10 23:12:02 +00:00
|
|
|
<h2 title="Titre du post" class="blogtitle" id="titleview" >@Model.Title</h2>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
|
2024-11-10 23:12:02 +00:00
|
|
|
<div title="Contenu du post" id="contentview">@Model.Content</div>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
<hr>
|
2025-02-23 20:23:23 +00:00
|
|
|
<form asp-action="Edit">
|
2016-05-17 18:22:18 +02:00
|
|
|
<div class="form-horizontal">
|
|
|
|
|
|
2023-03-20 09:13:16 +00:00
|
|
|
<div asp-validation-summary="ModelOnly" class="text-danger"></div>
|
2025-02-23 20:23:23 +00:00
|
|
|
@Html.HiddenFor(m=>m.Id)
|
2017-01-24 15:07:27 +01:00
|
|
|
|
|
|
|
|
<div class="form-group mdcoding">
|
2016-08-02 17:02:38 +02:00
|
|
|
<label asp-for="Title" class="col-md-2 control-label"></label>
|
2016-05-17 18:22:18 +02:00
|
|
|
<div class="col-md-10">
|
2017-01-24 15:07:27 +01:00
|
|
|
<input asp-for="Title" class="form-control" data-from="titleview"/>
|
2017-01-21 22:36:43 +01:00
|
|
|
<span asp-validation-for="Title" class="text-danger" >
|
|
|
|
|
</span>
|
2016-05-17 18:22:18 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2019-09-05 21:04:57 +01:00
|
|
|
|
2016-05-17 18:22:18 +02:00
|
|
|
<div class="form-group">
|
2016-08-02 17:26:00 +02:00
|
|
|
<label asp-for="Photo" class="col-md-2 control-label"></label>
|
2016-05-17 18:22:18 +02:00
|
|
|
<div class="col-md-10">
|
2016-08-02 17:26:00 +02:00
|
|
|
<input asp-for="Photo" class="form-control" />
|
2017-01-21 22:36:43 +01:00
|
|
|
<span asp-validation-for="Photo" class="text-danger" >
|
|
|
|
|
</span>
|
2016-05-17 18:22:18 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-01-24 15:07:27 +01:00
|
|
|
<div class="form-group mdcoding">
|
|
|
|
|
<label asp-for="Content" class="col-md-2 control-label" ></label>
|
2016-05-17 18:22:18 +02:00
|
|
|
<div class="col-md-10">
|
2017-01-24 15:07:27 +01:00
|
|
|
<textarea asp-for="Content" class="form-control" id="Content" data-from="contentview">
|
2016-05-17 18:22:18 +02:00
|
|
|
</textarea>
|
2017-01-21 22:36:43 +01:00
|
|
|
<span asp-validation-for="Content" class="text-danger" >
|
|
|
|
|
</span>
|
2016-05-17 18:22:18 +02:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2017-01-20 14:20:44 +01:00
|
|
|
<div class="form-group">
|
|
|
|
|
<label asp-for="ACL" class="col-md-2 control-label"></label>
|
|
|
|
|
<div class="col-md-10">
|
2023-03-20 19:38:50 +00:00
|
|
|
@await Component.InvokeAsync("CirclesControl", Model)
|
2017-01-20 14:20:44 +01:00
|
|
|
</div>
|
|
|
|
|
</div>
|
2016-05-17 18:22:18 +02:00
|
|
|
|
|
|
|
|
<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>
|
2017-01-13 16:31:40 +01:00
|
|
|
@await Component.InvokeAsync("Directory","")
|
2016-05-17 18:22:18 +02:00
|
|
|
<div >
|
2019-08-25 01:47:46 +01:00
|
|
|
@{ await Html.RenderPartialAsync("_PostFilesPartial"); }
|
2016-05-17 18:22:18 +02:00
|
|
|
</div>
|
|
|
|
|
<div>
|
2023-03-20 09:13:16 +00:00
|
|
|
<a asp-action="Index">Back to List</a>
|
2016-05-17 18:22:18 +02:00
|
|
|
</div>
|
|
|
|
|
|
2025-02-23 20:23:23 +00:00
|
|
|
using Yavsc.Migrations;
|