forked from Bunteshaus/bunteshaus.de
remove old generator
This commit is contained in:
parent
9ecda4c451
commit
cee2381107
|
@ -1,2 +0,0 @@
|
|||
<label for="content">{{ i18n "content" }}*</label>
|
||||
<textarea id="contentform" name="content" value="" placeholder=""></textarea>
|
|
@ -1,60 +0,0 @@
|
|||
{{ $in0 := .name }}
|
||||
{{ $name := .name }}
|
||||
{{ $id := .name }}
|
||||
{{ $newname := .name }}
|
||||
|
||||
{{ if i18n $name }}
|
||||
{{ $name = i18n $name }}
|
||||
{{ end }}
|
||||
|
||||
{{ $openname := printf "open%s" $in0 }}
|
||||
{{- $finale := slice -}}
|
||||
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
|
||||
{{ if eq .name "tags" }}
|
||||
{{ range $pages }}
|
||||
{{- if .Params.tags -}}
|
||||
{{- $finale = $finale | append .Params.tags -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $id = $name }}
|
||||
{{ else }}
|
||||
{{ range $pages }}
|
||||
{{ range .Param $in0 }}
|
||||
{{- $finale = $finale | append . -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ if ne .name "categories" }}
|
||||
{{ $cat := "categories" }}
|
||||
{{ if i18n $cat }}
|
||||
{{ $cat = i18n $cat }}
|
||||
{{ end }}
|
||||
{{ $id = printf "%s %s" $name $cat }}
|
||||
{{ else }}
|
||||
{{ $id = $name }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $finale = $finale | uniq -}}
|
||||
{{ if eq .expanded "true" }}
|
||||
<div style="flex-direction: column;">
|
||||
{{ $id }}{{- if eq .mandatory "true" -}}*{{- end -}}
|
||||
{{ else }}
|
||||
{{ partial "misc/generator/partials/expand" (dict "id" $id "name" $openname ) }}
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="{{- $openname }} == 'true'">
|
||||
{{ end }}
|
||||
<fieldset style="max-width: 58.5rem; padding: 0; margin: 0; border-style: none;" id="{{ $in0 }}" name="{{ $in0 }}">
|
||||
{{ range sort $finale }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="{{ $in0 }}" id="{{ $in0 }}-cat" value="{{ $n }}"><label style="width: 20rem;" for="{{ $in0 }}-cat">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
{{ if eq .new "true" }}
|
||||
{{ partial "misc/generator/partials/input_line" (dict "name" $in0) }}
|
||||
{{ end }}
|
||||
</div>
|
||||
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<div style="display:flex; flex-direction: row;">{{ if i18n .id }}{{ i18n .id }}{{ else }}{{ .id }}{{ end }}<input type="checkbox" name="{{ .name }}" value="true" style="font-size: smaller;" /> <div style="font-size: smaller;">{{ if i18n "expand" }}{{ i18n "expand" }}{{ else }}{{ "expand" }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}</div></div>
|
||||
|
|
@ -1,2 +0,0 @@
|
|||
<label id="label" for="new{{- .name -}}">{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}</label>
|
||||
<input type="text" name="new{{- .name -}}" id="new{{- .name -}}" value="" placeholder="{{ .eg }}" />
|
|
@ -1,5 +0,0 @@
|
|||
<fieldset id="{{ .name }}" name="{{ .name }}" style="padding: 0; margin: 0; border-style: none;">
|
||||
<div style="display: flex; flex-direction: row;">{{ if i18n .name }}{{ i18n .name }}{{ else }}{{ .name }}{{ end }}{{- if eq .mandatory "true" -}}*{{- end -}}
|
||||
<input type="checkbox" name="{{ .name }}" id="{{ .name }}" value="{{ .name }}" />
|
||||
</div>
|
||||
</fieldset>
|
|
@ -1,3 +0,0 @@
|
|||
<div class="frow">
|
||||
<input class="f" type="submit" value="{{ i18n "generate" }}" onclick="showInput(event);" />
|
||||
</div>
|
|
@ -1,25 +0,0 @@
|
|||
{{ $pages := where site.RegularPages "Type" "in" site.Params.searchSections }}
|
||||
{{- $tags := slice -}}
|
||||
{{ range $pages }}
|
||||
{{- if .Params.tags -}}
|
||||
{{- $tags = $tags | append .Params.tags -}}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{- $tags := $tags | uniq -}}
|
||||
{{ partial "misc/generator/partials/expand" (dict "id" "tags" "name" "opentag" "translation" "aufklappen" ) }}
|
||||
<div style="flex-direction: column;" class="visibleIf" data-visibleif-rule="opentag == 'true'">
|
||||
<fieldset style="display: flex; flex-direction: column; max-width: 58.5rem;" id="tags" name="tags">
|
||||
{{ range sort $tags }}
|
||||
{{ $n := . | i18n }}
|
||||
{{ if not $n }}
|
||||
{{ $n = . }}
|
||||
{{ end }}
|
||||
<div style="display: flex; flex-direction: row;">
|
||||
<input type="checkbox" name="tags" id="{{ . }}-tag" value="{{ . }}"><label style="width: 20rem;" for="{{ . }}-tag">{{ strings.FirstUpper $n }}</label>
|
||||
</div>
|
||||
{{ end }}
|
||||
</fieldset>
|
||||
|
||||
<label style="width: 12vw;" for="newtag">{{ i18n "new" }}</label>
|
||||
<input style="max-width: 58.5rem;" type="text" class="f" name="newtag" id="newtag" placeholder="" />
|
||||
</div>
|
Loading…
Reference in New Issue
Block a user