42 lines
2.1 KiB
HTML
Executable File
42 lines
2.1 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="{{:url('Admin/CustomView/Save')}}" method="POST" request-type="ajax-url" request-value="{{:url('Admin/CustomView/Index')}}">
|
|
<legend>
|
|
<span class="fs-16)}}
|
|
{{if empty($data['id'])}}
|
|
自定义页面添加
|
|
{{else /}}
|
|
自定义页面编辑
|
|
{{/if}}
|
|
</span>
|
|
<a href="{{:url('Admin/CustomView/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
|
|
</legend>
|
|
<div class="am-form-group">
|
|
<label>标题</label>
|
|
<input type="text" name="title" placeholder="标题" minlength="3" maxlength="60" data-validation-message="标题长度 3~60 个字符" class="am-radius" <notempty name="data"> value="{{$data.title}}" {{/if}} required />
|
|
</div>
|
|
<include file="Lib/Enable" />
|
|
<include file="Lib/IsHeader" />
|
|
<include file="Lib/IsFooter" />
|
|
<include file="Lib/IsFullScreen" />
|
|
<div class="am-form-group">
|
|
<label>内容{{if IsMobile()}}<span class="fs-12 fw-100 cr-999">(更多编辑功能请使用电脑访问)</span>{{/if}}</label>
|
|
<textarea class="am-radius am-validate" name="content" rows="5" minlength="50" maxlength="105000" {{if !IsMobile()}}id="editor-tag" data-url="{{:url('Admin/Ueditor/Index', ['path_type'=>'customview'])}}" placeholder="内容长度最少 50~105000 个字符" {{else /}} placeholder="内容长度最少 50~105000 个字符更多编辑功能请使用电脑访问" {{/if}} data-validation-message="内容长度最少 50~105000 个字符" required><notempty name="data">{{$data.content}}{{/if}}</textarea>
|
|
</div>
|
|
<div class="am-form-group">
|
|
<input type="hidden" name="id" <notempty name="data"> value="{{$data.id}}"{{/if}}" />
|
|
<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
|
|
</div>
|
|
</form>
|
|
<!-- form end -->
|
|
</div>
|
|
</div>
|
|
<!-- right content end -->
|
|
|
|
<!-- footer start -->
|
|
{{include file="public/footer" /}}
|
|
<!-- footer end --> |