|
|
@@ -1,14 +1,15 @@ |
|
|
|
<form action="{{ @target }}" method="post"> |
|
|
|
<repeat group="{{ @fields }}" key="{{ @name }}" value="{{ @info }}"> |
|
|
|
|
|
|
|
<check if="{{ @info.type == 'text' }}"> |
|
|
|
<check if="{{ in_array(@info.type,['text','email']) }}"> |
|
|
|
<true> |
|
|
|
<input |
|
|
|
name="{{ @name }}" |
|
|
|
id="{{ @name }}" |
|
|
|
type="text" |
|
|
|
type="{{ @info.type }}" |
|
|
|
size="{{ @info.length }}" |
|
|
|
value="{{ @info.value }}" /> |
|
|
|
value="{{ @info.value }}" |
|
|
|
{{ @info.required ? 'required' : '' }} /> |
|
|
|
<label for="{{ @name }}">{{ @info.description }}</label><br> |
|
|
|
</true> |
|
|
|
</check> |
|
|
@@ -56,7 +57,8 @@ |
|
|
|
type="radio" |
|
|
|
id="{{ sprintf('%s-%s',@name,@key) }}" |
|
|
|
name="{{ sprintf('%s',@name) }}" |
|
|
|
value="true" |
|
|
|
value="{{ @val }}" |
|
|
|
{{ @info.required ? 'required' : '' }} |
|
|
|
{{ is_array(@info.checked) ? in_array(@key,@info.checked) ? 'checked' : '' : !strcmp(@key,@info.checked) ? 'checked' : '' }} /> |
|
|
|
<label for="{{ sprintf('%s-%s',@name,@key) }}"> |
|
|
|
{{ @val }}</label> |