Recomment CSS and HTML templates

Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 18:35:07 +00:00
parent 8dd9897ca4
commit 3159b34e70
26 changed files with 380 additions and 273 deletions

View File

@@ -1,5 +1,5 @@
<!DOCTYPE html>
<!-- Template: d.blog.edit.html -->
<!-- Page: blog editor -->
<html lang="fr">
<?php include('blocks/d.head.html'); ?>
@@ -8,15 +8,19 @@
<?php include('blocks/d.nav.html'); ?>
<!-- Blog edit form -->
<section>
<?php if(isset($new) AND $new==1) { ?>
<!-- Create article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/new" method="post">
<?php }
else { ?>
<!-- Update article -->
<form class="form" action="<?=$config['rel_root_folder']?>blog/<?=$blogArticle->permalink?>/edit" method="post">
<?php } ?>
<h1>
<!-- Locale and title -->
<select name="locale" id="locale">
<?php foreach($locales->objs as $locale) { ?>
<option <?=$blogArticle->locale==$locale->name?'selected':''?> value="<?=$locale->name?>"><?=$locale->display_name?></option>
@@ -26,18 +30,22 @@
</h1>
<?php if(isset($error) AND $error=="permalink") { ?>
<!-- Permalink error -->
<p style="color: red;">L'URL sélectionnée est déjà prise.</p>
<?php } ?>
<!-- Article content -->
<textarea rows="30" name="content" id="content" placeholder="Contenu de l'article"><?=$blogArticle->content?></textarea>
<?php if(isset($new) AND $new==1) { ?>
<!-- Permalink settings -->
<div id="permalink_container">
<label id="permalink_label" for="permalink"><?=$config['web_root_folder']?>blog/</label>
<input type="text" name="permalink" id="permalink" placeholder="URL" required>
</div>
<?php } ?>
<!-- Article options -->
<label for="is_commentable">
<input type="checkbox" name="is_commentable" id="is_commentable"
<?php if($blogArticle->is_commentable == 't') { ?>
@@ -47,10 +55,12 @@
<span>Autoriser les commentaires</span>
</label>
<!-- Form submission -->
<input name="submit" id="submit" type="submit" value="Envoyer">
</form>
</section>
<!-- Permalink generation -->
<script type="text/javascript">
$( "#name" ).keyup(function() {
permalink = $( "#name" ).val();
@@ -73,4 +83,4 @@ $( "#name" ).change(function() {
<?php include('blocks/d.footer.html'); ?>
</body>
</html>
</html>