Skip to content
Snippets Groups Projects
Commit b0cd48e8 authored by jensilo's avatar jensilo
Browse files

display if other values are allowed for a rule

parent 5d190c00
Branches Luca
No related tags found
Loading
...@@ -152,9 +152,15 @@ ...@@ -152,9 +152,15 @@
{{ if eq $displayType "input-single-select" }} {{ if eq $displayType "input-single-select" }}
<dt>{{ t "eiffel.elicitation.form.value-single-select" }}</dt> <dt>{{ t "eiffel.elicitation.form.value-single-select" }}</dt>
<dd> <dd>
{{ $allowOthers := index $rule.Extra "allowOthers" }}
{{ $valueLength := len $rule.Value }} {{ $valueLength := len $rule.Value }}
{{ range $i, $val := $rule.Value }} {{ range $i, $val := $rule.Value }}
"{{ $val }}"{{ if lt (add $i 1) $valueLength }}, {{ end }} "{{ $val }}"{{ if or (lt (add $i 1) $valueLength) $allowOthers }}, {{ end }}
{{ end }}
{{ if $allowOthers }}
{{- t "eiffel.elicitation.form.value-single-select-allow-others" -}}
{{ else if lt $valueLength 1 }}
{{ t "eiffel.elicitation.form.value-single-select-empty" }}
{{ end }} {{ end }}
</dd> </dd>
{{ end }} {{ end }}
......
...@@ -135,6 +135,8 @@ ...@@ -135,6 +135,8 @@
"no-further-info": "Es wurden keine weiteren Informationen für diese Regel hinterlegt.", "no-further-info": "Es wurden keine weiteren Informationen für diese Regel hinterlegt.",
"value": "Erwartet", "value": "Erwartet",
"value-single-select": "Ein Wert aus", "value-single-select": "Ein Wert aus",
"value-single-select-empty": "Keine Werte in der Schablone vordefiniert.",
"value-single-select-allow-others": "beliebiger Wert",
"copy-and-clear": "Kopieren und leeren" "copy-and-clear": "Kopieren und leeren"
}, },
"template": { "template": {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment