Merge branch 'devel'
This commit is contained in:
commit
887fa863bc
@ -23,6 +23,10 @@ textarea {
|
|||||||
@apply grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-1 mt-4;
|
@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 {
|
.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;
|
@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;
|
||||||
}
|
}
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="flex flex-col gap-y-1">
|
<div class="flex flex-col gap-y-1">
|
||||||
<label for="easyMDE">Artikel</label>
|
<label for="easyMDE">Artikel</label>
|
||||||
<textarea id="easyMDE">{{.Content}}</textarea>
|
<textarea id="easyMDE">{{.Content}}</textarea>
|
||||||
<input id="article-content" name="article-content" type="hidden" />
|
<input id="article-content" name="article-content" type="hidden" value="{{.Content}}" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
@ -44,8 +44,6 @@
|
|||||||
</form>
|
</form>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
document.getElementById('article-content').value = easyMDE.value();
|
|
||||||
|
|
||||||
var easyMDE = new EasyMDE({
|
var easyMDE = new EasyMDE({
|
||||||
element: document.getElementById('easyMDE'),
|
element: document.getElementById('easyMDE'),
|
||||||
hideIcons: ['image'],
|
hideIcons: ['image'],
|
||||||
|
@ -31,7 +31,7 @@
|
|||||||
{{end}}
|
{{end}}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="btn-area">
|
<div class="btn-area-3">
|
||||||
<input class="action-btn" type="submit" value="Veröffentlichen" hx-get="/article/publish/{{.Article.ID}}"
|
<input class="action-btn" type="submit" value="Veröffentlichen" hx-get="/article/publish/{{.Article.ID}}"
|
||||||
hx-target="#page-content" />
|
hx-target="#page-content" />
|
||||||
<input class="btn" type="submit" value="Ablehnen" hx-get="/article/reject/{{.Article.ID}}"
|
<input class="btn" type="submit" value="Ablehnen" hx-get="/article/reject/{{.Article.ID}}"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user