mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Fix null defaults in extravar skin
This commit is contained in:
parent
936e1931c0
commit
28de1335a7
3 changed files with 6 additions and 6 deletions
|
|
@ -1,7 +1,7 @@
|
|||
<input type="password" name="{{ $input_name }}"
|
||||
id="{{ $input_id }}"|if="$input_id" class="password rx_ev_password"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
value="{{ strval($value) !== '' ? $value : $default }}"
|
||||
value="{{ strval($value) !== '' ? $value : strval($default) }}"
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
<input type="url" name="{{ $input_name }}"
|
||||
id="{{ $input_id }}"|if="$input_id" class="homepage rx_ev_url"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
value="{{ strval($value) !== '' ? $value : $default }}"
|
||||
value="{{ strval($value) !== '' ? $value : strval($default) }}"
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
<input type="email" name="{{ $input_name }}"
|
||||
id="{{ $input_id }}"|if="$input_id" class="email_address rx_ev_email"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
value="{{ strval($value) !== '' ? $value : $default }}"
|
||||
value="{{ strval($value) !== '' ? $value : strval($default) }}"
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
|
|
@ -20,7 +20,7 @@
|
|||
<input type="number" name="{{ $input_name }}"
|
||||
id="{{ $input_id }}"|if="$input_id" class="number rx_ev_number"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
value="{{ strval($value) !== '' ? $value : $default }}"
|
||||
value="{{ strval($value) !== '' ? $value : strval($default) }}"
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
|
|
@ -29,7 +29,7 @@
|
|||
<input type="text" name="{{ $input_name }}"
|
||||
id="{{ $input_id }}"|if="$input_id" class="text rx_ev_text"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
value="{{ strval($value) !== '' ? $value : $default }}"
|
||||
value="{{ strval($value) !== '' ? $value : strval($default) }}"
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
|
|
|
|||
|
|
@ -4,4 +4,4 @@
|
|||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
rows="8" cols="42">{{ $value !== null ? $value : $definition->getDefaultValue() }}</textarea>
|
||||
rows="8" cols="42">{{ $value !== null ? $value : strval($definition->getDefaultValue()) }}</textarea>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue