SaveInfo.html 3.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <!-- header start -->
  2. <include file="Public/Header" />
  3. <!-- header end -->
  4. <!-- right content start -->
  5. <div class="content-right">
  6. <div class="content">
  7. <!-- form start -->
  8. <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')}}">
  9. <legend>
  10. <span class="fs-16">
  11. <if condition="empty($data['scene_background_id'])">
  12. {{:L('scene_background_add_name')}}
  13. <else />
  14. {{:L('scene_background_edit_name')}}
  15. </if>
  16. </span>
  17. <a href="{{:U('Admin/CultureSceneBackground/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> {{:L('common_operation_back')}}</a>
  18. </legend>
  19. <div class="am-form-group">
  20. <label>{{:L('scene_background_name')}}</label>
  21. <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> />
  22. </div>
  23. <div class="am-form-group am-form-file">
  24. <label>{{:L('thumb')}}</label>
  25. <div id="uploader"><i class="am-icon-cloud-upload"></i> 选择要上传的文件</div>
  26. <input type="hidden" name="thumb" id="thumb" value="{{$data['thumb']}}">
  27. </div>
  28. <div class="am-form-group">
  29. <div id="fileList" class="uploader-list">
  30. <notempty name="data.thumb">
  31. <img src="{{$data['thumb']}}" alt="{{$data['pet_name']}}" class="am-img-thumbnail">
  32. </notempty>
  33. </div>
  34. </div>
  35. <div class="am-form-group">
  36. <label>{{:L('scene_name')}}</label>
  37. <select name="scene_id" data-validation-message="{{:L('scene_name_format')}}" required class="am-hide chosen-select">
  38. <option value="">{{:L('common_select_can_choose')}}</option>
  39. <foreach name="scenes" item="v">
  40. <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>
  41. </foreach>
  42. </select>
  43. </div>
  44. <div class="am-form-group am-form-file">
  45. <label>{{:L('sale_price')}}</label>
  46. <input type="number" min="0" name="sale_price" class="am-radius" placeholder="{{:L('sale_price')}}" <notempty name="data"> value="{{$data.sale_price}}"</notempty> />
  47. </div>
  48. <div class="am-form-group">
  49. <label>{{:L('description')}}</label>
  50. <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>
  51. </div>
  52. <div class="am-form-group am-form-file">
  53. <label>{{:L('is_lock')}}</label>
  54. <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>>
  55. </div>
  56. <div class="am-form-group am-form-file">
  57. <label>{{:L('is_unlock_buy')}}</label>
  58. <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> >
  59. </div>
  60. <div class="am-form-group">
  61. <input type="hidden" name="scene_background_id" <notempty name="data"> value="{{$data.scene_background_id}}"</notempty> />
  62. <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>
  63. </div>
  64. </form>
  65. <!-- form end -->
  66. </div>
  67. </div>
  68. <!-- right content end -->
  69. <!-- footer start -->
  70. <include file="Public/Footer" />
  71. <!-- footer end -->