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 12:44:19 +02:00
|
|
|
<article class="minmax">
|
2022-04-04 12:06:53 +02:00
|
|
|
<div style="flex-direction: row;">
|
|
|
|
{{ .Content }}
|
|
|
|
</div >
|
|
|
|
<noscript><p><b>Bitte aktiviere Javascript, sonst funktioniert der Generator nicht.</b></p></noscript>
|
2022-04-04 05:39:34 +02:00
|
|
|
|
|
|
|
<form id="myform" style="display: flex; flex-shrink: 0; flex-grow: 1; flex-direction: column; max-width: 950px; margin-top: 1rem;">
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ 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>
|
2022-04-04 12:06:53 +02:00
|
|
|
|
|
|
|
<div id='display' class="result" style="white-space: pre; display: none; background: var(--background-body); padding: .6rem 0 1rem 1rem;">
|
|
|
|
</div>
|
|
|
|
|
2022-04-03 21:08:42 +02:00
|
|
|
{{ partial "orga/generator/submit" }}
|
|
|
|
|
2022-03-27 19:58:39 +02:00
|
|
|
</form>
|
|
|
|
|
|
|
|
|
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>
|