From 67c6902217b7de5d801949a7f108a2a10bff02c6 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Mon, 22 May 2023 23:16:56 +0400 Subject: [PATCH] Oh, forgot about other posts in mindflow admin. --- web/templates/mindflow_admin.pug | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/web/templates/mindflow_admin.pug b/web/templates/mindflow_admin.pug index 3eb4a8d..c4d80a7 100755 --- a/web/templates/mindflow_admin.pug +++ b/web/templates/mindflow_admin.pug @@ -40,11 +40,13 @@ block content a(href=`#${post.PostID()}`) h3= post.Category.Name + ": " + post.Title form.edit - select(name='category') - option(value='' selected='') -- Change to category -- - option(value='1') Update - option(value='2') Diary - option(value='0') New category + select(name='category' required='') + each category in categories + if (category.ID == 1) + option(value=category.ID selected='') #{category.Name} + else + option(value=category.ID) #{category.Name} + option(value='0') -- New category -- input(type='text', placeholder='New category name' name='new-category') input(type='hidden', name='post-id' value=post.ID) input(type='hidden', name='old-category' value=post.Category.ID)