mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-05 09:41:40 +09:00
Use extravar module skin in member edit page, too
This commit is contained in:
parent
fc406a927c
commit
c26e242fdf
4 changed files with 83 additions and 197 deletions
|
|
@ -45,6 +45,8 @@
|
|||
@include ('form_types/text')
|
||||
@endswitch
|
||||
|
||||
@if ($desc)
|
||||
<p>{{ nl2br(escape(Context::replaceUserLang($definition->desc), false)) }}</p>
|
||||
@if (!empty($desc))
|
||||
<p class="rx_ev_description">
|
||||
{{ nl2br(escape(Context::replaceUserLang($definition->desc), false)) }}
|
||||
</p>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -1,19 +1,41 @@
|
|||
<ul class="rx_ev_{{ $type }}">
|
||||
@foreach ($default ?? [] as $v)
|
||||
@php
|
||||
$column_suffix = $type === 'checkbox' ? '[]' : '';
|
||||
$tempid = $definition->getNextTempID();
|
||||
$is_checked = is_array($value) && in_array(trim($v), $value);
|
||||
@endphp
|
||||
<li>
|
||||
<input type="{{ $type }}" name="{{ $input_name . $column_suffix }}"
|
||||
id="{{ $tempid }}" class="{{ $type }}" value="{{ $v }}"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
@checked($is_checked)
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
/><label for="{{ $tempid }}">{{ $v }}</label>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@if ($parent_type === 'member')
|
||||
<div class="rx_ev_{{ $type }}" style="padding-top:5px">
|
||||
@foreach ($default ?? [] as $v)
|
||||
@php
|
||||
$column_suffix = $type === 'checkbox' ? '[]' : '';
|
||||
$tempid = $definition->getNextTempID();
|
||||
$is_checked = is_array($value) && in_array(trim($v), $value);
|
||||
@endphp
|
||||
<label for="{{ $tempid }}">
|
||||
<input type="{{ $type }}" name="{{ $input_name . $column_suffix }}"
|
||||
id="{{ $tempid }}" value="{{ $v }}"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
@checked($is_checked)
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
/> {{ $v }}
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
@else
|
||||
<ul class="rx_ev_{{ $type }}">
|
||||
@foreach ($default ?? [] as $v)
|
||||
@php
|
||||
$column_suffix = $type === 'checkbox' ? '[]' : '';
|
||||
$tempid = $definition->getNextTempID();
|
||||
$is_checked = is_array($value) && in_array(trim($v), $value);
|
||||
@endphp
|
||||
<li>
|
||||
<input type="{{ $type }}" name="{{ $input_name . $column_suffix }}"
|
||||
id="{{ $tempid }}" class="{{ $type }}" value="{{ $v }}"
|
||||
style="{{ $definition->style }}"|if="$definition->style"
|
||||
@checked($is_checked)
|
||||
@required(toBool($definition->is_required))
|
||||
@disabled(toBool($definition->is_disabled))
|
||||
@readonly(toBool($definition->is_readonly))
|
||||
/><label for="{{ $tempid }}">{{ $v }}</label>
|
||||
</li>
|
||||
@endforeach
|
||||
</ul>
|
||||
@endif
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
$lang_sort = $lang_type === 'ko' ? Rhymix\Framework\i18n::SORT_NAME_KOREAN : Rhymix\Framework\i18n::SORT_NAME_ENGLISH;
|
||||
$countries = Rhymix\Framework\i18n::listCountries($lang_sort);
|
||||
@endphp
|
||||
<select name="{{ $input_name }}[]" class="select rx_ev_select rx_ev_select_country" style="{{ $definition->style }}"|if="$definition->style">
|
||||
<select name="{{ $input_name }}[]" class="select rx_ev_select rx_ev_select_country">
|
||||
<option value=""></option>
|
||||
@foreach ($countries as $country)
|
||||
@php
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue