Compare commits

..

No commits in common. "887fa863bc100894a7a1aa32ccb64a35547c07c4" and "74d71cfb6aabde99a71bcd5a0af7f8cebae02456" have entirely different histories.

3 changed files with 4 additions and 6 deletions

View File

@ -23,10 +23,6 @@ textarea {
@apply grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-1 mt-4;
}
.btn-area-3 {
@apply grid grid-cols-1 md:grid-cols-3 gap-x-4 gap-y-1 mt-4;
}
.btn {
@apply bg-slate-200 dark:bg-slate-800 hover:bg-slate-100 dark:hover:bg-slate-900 border border-slate-200 dark:border-slate-800 my-2 px-3 py-2 rounded-md w-full;
}

View File

@ -15,7 +15,7 @@
<div class="flex flex-col gap-y-1">
<label for="easyMDE">Artikel</label>
<textarea id="easyMDE">{{.Content}}</textarea>
<input id="article-content" name="article-content" type="hidden" value="{{.Content}}" />
<input id="article-content" name="article-content" type="hidden" />
</div>
<div>
@ -44,6 +44,8 @@
</form>
<script>
document.getElementById('article-content').value = easyMDE.value();
var easyMDE = new EasyMDE({
element: document.getElementById('easyMDE'),
hideIcons: ['image'],

View File

@ -31,7 +31,7 @@
{{end}}
</div>
<div class="btn-area-3">
<div class="btn-area">
<input class="action-btn" type="submit" value="Veröffentlichen" hx-get="/article/publish/{{.Article.ID}}"
hx-target="#page-content" />
<input class="btn" type="submit" value="Ablehnen" hx-get="/article/reject/{{.Article.ID}}"