webworld888/resources/views/dynamicField/boolean/default/edit.blade.php
2021-10-26 19:14:12 +09:00

21 lines
1.3 KiB
PHP

<div class="xe-form-group xe-dynamicField">
<div>
<div class="xe-form-inline __xe-input-group">
<label class="xe-label">
<strong>{{ xe_trans($config->get('label')) }}</strong>
</label>
<label class="xe-label">
<input type="radio" name="{{$key['boolean']}}" class="__xe_df __xe_df_boolean __xe_df_boolean_{{$config->get('id')}}" value="1" @if($data['boolean'] === 1) checked @endif data-valid-name="{{ xe_trans($config->get('label')) }}">
<span class="xe-input-helper"></span>
<span class="xe-label-text">{{ $config->get('radioLabelYes') ?: xe_trans('xe::yes') }}</span>
</label>
<label class="xe-label">
<input type="radio" name="{{$key['boolean']}}" class="__xe_df __xe_df_boolean __xe_df_boolean_{{$config->get('id')}}" value="0" @if($data['boolean'] === 0) checked @endif data-valid-name="{{ xe_trans($config->get('label')) }}">
<span class="xe-input-helper"></span>
<span class="xe-label-text">{{ $config->get('radioLabelNo') ?: xe_trans('xe::no') }}</span>
</label>
</div>
</div>
@if ($config->get('skinDescription') !== '')<small>{{$config->get('skinDescription')}}</small>@endif
</div>