12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <!-- header start -->
- <include file="Public/Header" />
- <!-- header end -->
- <!-- right content start -->
- <div class="content-right">
- <div class="content">
- <!-- form start -->
- <form class="am-form form-validation view-save" action="{{:U('Admin/CultureSceneBackground/Save')}}" method="POST" request-type="ajax-url" request-value="{{:U('Admin/CultureSceneBackground/Index')}}">
- <legend>
- <span class="fs-16">
- <if condition="empty($data['scene_background_id'])">
- {{:L('scene_background_add_name')}}
- <else />
- {{:L('scene_background_edit_name')}}
- </if>
- </span>
- <a href="{{:U('Admin/CultureSceneBackground/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
- </legend>
- <div class="am-form-group">
- <label>{{:L('scene_background_name')}}</label>
- <input type="text" name="scene_background_name" placeholder="{{:L('scene_background_name')}}" maxlength="16" data-validation-message="{{:L('scene_background_nickname_format')}}" class="am-radius" <notempty name="data"> value="{{$data.scene_background_name}}"</notempty> />
- </div>
- <div class="am-form-group am-form-file">
- <label>{{:L('thumb')}}</label>
- <div id="uploader"><i class="am-icon-cloud-upload"></i> 选择要上传的文件</div>
- <input type="hidden" name="thumb" id="thumb" value="{{$data['thumb']}}">
- </div>
- <div class="am-form-group">
- <div id="fileList" class="uploader-list">
- <notempty name="data.thumb">
- <img src="{{$data['thumb']}}" alt="{{$data['pet_name']}}" class="am-img-thumbnail">
- </notempty>
- </div>
- </div>
- <div class="am-form-group">
- <label>{{:L('scene_name')}}</label>
- <select name="scene_id" data-validation-message="{{:L('scene_name_format')}}" required class="am-hide chosen-select">
- <option value="">{{:L('common_select_can_choose')}}</option>
- <foreach name="scenes" item="v">
- <option value="{{$v.scene_id}}" <if condition="isset($data['scene_id']) and $data['scene_id'] eq $v['scene_id']">selected</if>>{{$v.scene_name}}</option>
- </foreach>
- </select>
- </div>
- <div class="am-form-group am-form-file">
- <label>{{:L('sale_price')}}</label>
- <input type="number" min="0" name="sale_price" class="am-radius" placeholder="{{:L('sale_price')}}" <notempty name="data"> value="{{$data.sale_price}}"</notempty> />
- </div>
- <div class="am-form-group">
- <label>{{:L('description')}}</label>
- <textarea rows="5" maxlength="255" name="description" class="am-radius" placeholder="{{:L('description')}}" data-validation-message="{{:L('scene_background_describe_format')}}"><present name="data">{{$data.description}}</present></textarea>
- </div>
- <div class="am-form-group am-form-file">
- <label>{{:L('is_lock')}}</label>
- <input name="is_lock" type="checkbox" data-size="xs" data-am-switch data-on-text="是" data-off-text="否" <if condition="$data['is_lock'] eq 1">checked</if>>
- </div>
- <div class="am-form-group am-form-file">
- <label>{{:L('is_unlock_buy')}}</label>
- <input name="is_unlock_buy" type="checkbox" data-size="xs" data-am-switch data-on-text="是" data-off-text="否" <if condition="$data['is_unlock_buy'] eq 1">checked</if> >
- </div>
- <div class="am-form-group">
- <input type="hidden" name="scene_background_id" <notempty name="data"> value="{{$data.scene_background_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 -->
|