bunteshaus.de/themes/buha/layouts/partials/orga/generator.html

49 lines
3.1 KiB
HTML
Raw Normal View History

2022-03-27 21:17:25 +02:00
{{ define "css" }}
<link rel="stylesheet" href="/css/visibleIf.css" type="text/css" />
{{ end }}
2022-03-27 20:20:47 +02:00
<h1>Artikelgenerator</h1>
2022-04-04 00:42:08 +02:00
<article>
2022-03-27 20:14:36 +02:00
<p>
Hier kannst du einen neuen Artikel generieren.<br><br>
Wenn du einen Event erstellen willst, schreibe den zB. "Sonntag, 13.2.2022, 19Uhr - 20Uhr" in die Fläche "Termin".<br>
Ist es ein Termin, ist es sinnvoll diesen zu Kategoriesieren:<br>Wähle aus den gegebenen aus oder erstelle neue, indem du
im Feld "Neu" unter "Kategorie" neue Kategorien, mit Komma getrennt, eingibst. ZB. "Workshop,Externer Termin".
<br><br>
Jeder Artikel kann getaggt werden. Dasvorgehen ist dabei Analog zu den Kategorien.
<br>
Soll der Artikel auf der Homepage ganz vorne erscheinen, dann gib "Wichtige Neuigkeiten" einen Haken.
2022-03-27 20:23:06 +02:00
<br>
<br>
2022-03-28 11:41:01 +02:00
<b>Einträge mit * sind minimal erforderlich.</b>
2022-03-27 20:29:45 +02:00
<br>
2022-03-27 20:30:20 +02:00
<noscript><p><b>Bitte aktiviere Javascript, sonst funktioniert der Generator nicht.</b></p></noscript>
2022-03-27 20:14:36 +02:00
</p>
<br>
2022-04-03 21:08:42 +02:00
<form id="myform" style="display: flex; flex-shrink: 0; flex-grow: 1; flex-direction: column; max-width: 950px;">
{{ partial "orga/generator/partials/input_line" (dict "name" "title" "mandatory" "true") }}
{{ partial "orga/generator/content" }}
2022-04-04 00:42:08 +02:00
{{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "categories" "expanded" "true" "new" "false") }}
2022-04-03 21:08:42 +02:00
{{ partial "orga/generator/partials/expand" (dict "id" "Ist es ein Event?" "name" "isevent" "translation" "aufklappen" ) }}
<div style="flex-direction: column; margin-left: 2rem;" class="visibleIf" data-visibleif-rule="isevent == 'true'">
2022-04-04 00:42:08 +02:00
{{ partial "orga/generator/partials/input_line" (dict "name" "when" "mandatory" "false" "eg" "Montag, 13. September 2022, 19Uhr") }}
{{ partial "orga/generator/partials/input_line" (dict "name" "price" "mandatory" "false" "eg" "3€ or free") }}
{{ partial "orga/generator/partials/input_line" (dict "name" "registeremail" "mandatory" "false" "eg" "info@bunteshaus.de") }}
{{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "events" "new" "false") }}
2022-04-03 21:08:42 +02:00
</div>
{{ partial "orga/generator/partials/expand" (dict "id" "Verschiedenes" "name" "misc" "translation" "aufklappen" ) }}
<div style="flex-direction: column; margin-left: 2rem;" class="visibleIf" data-visibleif-rule="misc == 'true'">
{{ partial "orga/generator/partials/truefalse" (dict "name" "featured" "expanded" "true") }}
2022-04-04 00:42:08 +02:00
{{ partial "orga/generator/partials/truefalse" (dict "name" "about" "expanded" "true") }}
{{ partial "orga/generator/partials/categories_and_tags.html" (dict "name" "tags" "new" "true") }}
2022-04-04 01:13:42 +02:00
<!-- {{ partial "orga/generator/partials/input_line" (dict "name" "covid" "mandatory" "false" "eg" "3G") }} -->
2022-04-03 21:08:42 +02:00
</div>
{{ partial "orga/generator/submit" }}
2022-03-27 19:58:39 +02:00
</form>
2022-04-04 01:13:42 +02:00
<div id='display' class="result" style="white-space: pre; background: var(--background-body); padding: 1rem;"></div>
2022-03-27 19:58:39 +02:00
2022-04-04 00:42:08 +02:00
</article>
2022-03-27 19:58:39 +02:00
<script defer language="javascript" type="text/javascript" src="{{ "/js/visibleIf.js" | urlize | relURL }}"></script>
<script defer language="javascript" type="text/javascript" src="{{ "/js/generator.js" | urlize | relURL }}"></script>