Simplification
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
<header class="page-header">
|
||||
<div>
|
||||
<h1 class="page-title" id="media-title">Médiathèque</h1>
|
||||
<p class="field-help">Parcourir les images par page évite de charger toute la bibliothèque d'un coup.</p>
|
||||
<p class="field-help">Ajoute une image ou copie son Markdown pour l’insérer dans un article.</p>
|
||||
</div>
|
||||
|
||||
<div class="page-actions">
|
||||
@@ -13,11 +13,11 @@
|
||||
<form class="panel stack" method="post" action="{{ 'media_upload' | alias }}" enctype="multipart/form-data">
|
||||
<include href="partials/csrf_field.html" />
|
||||
<label class="field">
|
||||
<span class="field-label">Nouvelle image</span>
|
||||
<span class="field-label">Image</span>
|
||||
<input class="control" type="file" name="image" accept="image/jpeg,image/png" required>
|
||||
<span class="field-help">Formats : JPG, PNG. Taille maximale : 10 Mo.</span>
|
||||
</label>
|
||||
<button class="button" type="submit">Envoyer</button>
|
||||
<button class="button" type="submit">Ajouter</button>
|
||||
</form>
|
||||
|
||||
<check if="{{ @items }}">
|
||||
@@ -31,8 +31,8 @@
|
||||
</true>
|
||||
<false>
|
||||
<section class="empty-state" aria-labelledby="media-empty-title">
|
||||
<h2 class="card-title" id="media-empty-title">Aucune image</h2>
|
||||
<p>Ajoute ta première image.</p>
|
||||
<h2 class="card-title" id="media-empty-title">Aucune image.</h2>
|
||||
<p>Ajoute une image pour commencer.</p>
|
||||
</section>
|
||||
</false>
|
||||
</check>
|
||||
|
||||
Reference in New Issue
Block a user