vr-shopxo-plugin/shopxo/app/admin/view/default/lib/gender.html

12 lines
759 B
HTML
Raw Normal View History

<!-- 性别 开始 -->
<div class="am-form-group {{if !empty($module_data) and isset($module_data['is_row']) and $module_data['is_row'] eq 1}}row{{/if}}">
<label class="am-block">{{:MyLang('form_gender_title')}}<span class="am-form-group-label-tips-must">*</span></label>
<div class="am-radio-group">
{{foreach :MyConst('common_gender_list') as $v}}
<label class="am-radio-inline am-margin-right-sm">
<input type="radio" name="gender" value="{{$v.id}}" {{if isset($data['gender']) and $data['gender'] eq $v['id']}}checked="checked"{{else /}}{{if !isset($data['gender']) and isset($v['checked']) and $v['checked'] eq true}}checked="checked"{{/if}}{{/if}} data-am-ucheck /> {{$v.name}}
</label>
{{/foreach}}
</div>
</div>
<!-- 性别 结束 -->