File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 1
1
< li >
2
- < select onchange ="clChange('prodlist') ">
2
+ {{- with .Parent }}
3
+ < select onchange ="clChange('{{ .Get 0 }}') ">
4
+ {{- end }}
3
5
< option value ="R "> ❌</ option >
4
6
< option value ="G "> ✅</ option >
5
7
< option value ="A "> 🔍</ option >
6
8
< option value ="X "> ∅</ option >
7
9
</ select >
8
- {{- if index .Params 0 -}}
10
+ {{- if .Get 0 -}}
9
11
< a href ="{{ index .Params 0 }} "> {{ .Inner }}</ a >
10
12
{{- else -}}
11
13
{{ .Inner }}
Original file line number Diff line number Diff line change 1
- {{ $formId := index .Params 0 }}
1
+ {{ $formId := .Get 0 }}
2
2
< form id ="{{ $formId }} ">
3
3
< ul style ="list-style-type: none;padding-left: 0px; ">
4
4
{{ .Inner }}
17
17
document . addEventListener ( 'DOMContentLoaded' , ( ) => {
18
18
let itemString = localStorage . getItem ( "{{ $formId }}" ) ;
19
19
20
- if ( itemString !== "" ) {
20
+ if ( itemString ) {
21
21
setCLItemsFromString ( "{{ $formId }}" , itemString ) ;
22
22
} else {
23
23
clChange ( "{{ $formId }}" ) ;
You can’t perform that action at this time.
0 commit comments