51 lines
2.8 KiB
HTML
Executable File
51 lines
2.8 KiB
HTML
Executable File
<include file="Public/Header" />
|
|
|
|
<!-- right content start -->
|
|
<div class="content-right">
|
|
<div class="content">
|
|
<!-- form start -->
|
|
<form class="am-form form-validation view-save" action="{{:U('Admin/User/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/User/Index', $param)}}">
|
|
<legend>
|
|
<span class="fs-16">
|
|
<if condition="empty($data['id'])">
|
|
{{:L('user_add_name')}}
|
|
<else />
|
|
{{:L('user_edit_name')}}
|
|
</if>
|
|
</span>
|
|
<a href="{{:U('Admin/User/Index', $param)}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
|
|
</legend>
|
|
<div class="am-form-group">
|
|
<label>{{:L('common_mobile_name')}}</label>
|
|
<input type="text" name="mobile" class="am-radius" placeholder="{{:L('common_mobile_name')}}" pattern="{{:L('common_regex_mobile')}}" data-validation-message="{{:L('common_mobile_format_error')}}" <notempty name="data"> value="{{$data.mobile}}"</notempty> />
|
|
</div>
|
|
<div class="am-form-group">
|
|
<label>{{:L('common_email_name')}}</label>
|
|
<input type="email" name="email" class="am-radius" placeholder="{{:L('common_email_name')}}" data-validation-message="{{:L('common_email_format_error')}}" <notempty name="data"> value="{{$data.email}}"</notempty> />
|
|
</div>
|
|
<div class="am-form-group">
|
|
<label>{{:L('user_birthday_name')}}</label>
|
|
<input type="text" name="birthday" class="am-radius Wdate" placeholder="{{:L('user_birthday_name')}}" pattern="{{:L('common_regex_date')}}" data-validation-message="{{:L('user_birthday_format')}}" <notempty name="data"> value="{{$data.birthday_text}}" </notempty> onclick="WdatePicker({firstDayOfWeek:1,dateFmt:'yyyy-MM-dd'})" />
|
|
</div>
|
|
<div class="am-form-group">
|
|
<label>{{:L('common_address_text')}}</label>
|
|
<input type="text" placeholder="{{:L('common_address_text')}}" name="address" data-validation-message="{{:L('common_address_format')}}" class="am-radius" <notempty name="data"> value="{{$data.address}}"</notempty> />
|
|
</div>
|
|
<include file="Lib/Gender" />
|
|
<div class="am-form-group">
|
|
<label>{{:L('user_integral_name')}}</label>
|
|
<input type="number" placeholder="{{:L('user_integral_name')}}" name="integral" data-validation-message="{{:L('common_address_format')}}" class="am-radius" <notempty name="data"> value="{{$data.integral}}"</notempty> />
|
|
</div>
|
|
<div class="am-form-group">
|
|
<input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"</notempty> />
|
|
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'{{:L('common_form_loading_tips')}}'}">{{:L('common_operation_save')}}</button>
|
|
</div>
|
|
</form>
|
|
<!-- form end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
<include file="Public/Footer" />
|
|
<!-- footer end --> |