tout du bon:
- mobile app declaration (WIP) - login/logout depuis la même resource, sans bug (note: appliquer AllowAnonymous à la classe => methodes d'attribut Authorize non redirigées) - les médias des posts
This commit is contained in:
parent
9d078e4e8e
commit
6e301e52d8
20 changed files with 320 additions and 187 deletions
|
|
@ -10,20 +10,20 @@
|
|||
<div class="form-horizontal">
|
||||
<h4>Blog</h4>
|
||||
<hr />
|
||||
<div asp-validation-summary="ValidationSummary.ModelOnly" class="text-danger"></div>
|
||||
<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 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 asp-validation-for="photo" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
@ -31,7 +31,7 @@
|
|||
<div class="col-md-10">
|
||||
<textarea asp-for="bcontent" class="form-control" >
|
||||
</textarea>
|
||||
<span asp-validation-for="bcontent" class="text-danger" />
|
||||
<span asp-validation-for="bcontent" class="text-danger" ></span>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
|
|
@ -40,7 +40,6 @@
|
|||
<input asp-for="visible" class="form-control"/>
|
||||
</div>
|
||||
</div>
|
||||
@Html.Hidden("AuthorId")
|
||||
<div class="form-group">
|
||||
<div class="col-md-offset-2 col-md-10">
|
||||
<input type="submit" value="Create" class="btn btn-default" />
|
||||
|
|
|
|||
|
|
@ -8,6 +8,18 @@
|
|||
<h4>Blog</h4>
|
||||
<hr />
|
||||
<dl class="dl-horizontal">
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.title)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.photo)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.photo)
|
||||
</dd>
|
||||
<dt>
|
||||
@SR["Author"]
|
||||
</dt>
|
||||
|
|
@ -18,7 +30,7 @@
|
|||
Contenu
|
||||
</dt>
|
||||
<dd>
|
||||
<div markdown="@Model.bcontent" base="~/@Model.Author.UserName/@Model.Id"
|
||||
<div markdown="@Model.bcontent" base="~/@Model.Id"
|
||||
site="SiteSettings.Value"></div>
|
||||
</dd>
|
||||
<dt>
|
||||
|
|
@ -27,12 +39,7 @@
|
|||
<dd>
|
||||
@Html.DisplayFor(model => model.modified)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.photo)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.photo)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.posted)
|
||||
</dt>
|
||||
|
|
@ -45,12 +52,7 @@
|
|||
<dd>
|
||||
@Html.DisplayFor(model => model.rate)
|
||||
</dd>
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.title)
|
||||
</dt>
|
||||
<dd>
|
||||
@Html.DisplayFor(model => model.title)
|
||||
</dd>
|
||||
|
||||
<dt>
|
||||
@Html.DisplayNameFor(model => model.visible)
|
||||
</dt>
|
||||
|
|
|
|||
|
|
@ -182,8 +182,9 @@ editorcontenu.on('text-change',function(delta,source){
|
|||
</div>
|
||||
|
||||
</form>
|
||||
|
||||
|
||||
<div>
|
||||
|
||||
</div>
|
||||
<div >
|
||||
<form id="postfiles" class="dropzone" method="post" enctype="multipart/form-data">
|
||||
<div class="fallback">
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
@item.Author?.UserName
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.title)
|
||||
<markdown>@item.title</markdown>
|
||||
</td>
|
||||
<td>
|
||||
@Html.DisplayFor(modelItem => item.modified)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue