save_info.html 4.1 KB
Newer Older
G
gongfuxiang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
{{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/Article/Save')}}" method="POST" request-type="ajax-url" request-value="{{:url('Admin/Article/Index')}}">
			<legend>
				<span class="fs-16)}}
					{{if empty($data['id'])}}
						{{:lang('article_add_name')}}
					{{else /}}
						{{:lang('article_edit_name')}}
					{{/if}}
				</span>
D
devil_gong 已提交
16
				<a href="{{:url('Admin/Article/Index')}}" class="fr fs-14 m-t-5 am-icon-mail-reply"> 返回</a>
G
gongfuxiang 已提交
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
			</legend>
			<div class="am-form-group">
				<label>{{:lang('article_title_text')}}</label>
				<div class="am-input-group am-input-group-sm">
					<input type="hidden" name="title_color" value="{{if !empty($data['title_color'])}}{{$data.title_color}}{{/if}}" />
					<input type="text" name="title" placeholder="{{:lang('article_title_text')}}" minlength="3" maxlength="60" data-validation-message="{{:lang('article_title_format')}}" class="am-form-field am-radius" <notempty name="data"> value="{{$data.title}}" {{/if}} {{if !empty($data['title_color'])}} style="color:{{$data.title_color}};" {{/if}} required />
					<span class="am-input-group-btn">
						<button class="am-btn am-btn-default colorpicker-submit" type="button" data-input-tag="input[name='title']" data-color-tag="input[name='title_color']">
							<img src="__PUBLIC__/Common/Images/colorpicker.png" />
						</button>
					</span>
				</div>
			</div>
			<div class="am-form-group">
				<label>{{:lang('article_category_text')}}</label>
D
devil_gong 已提交
32 33
				<select name="article_category_id" class="am-radius c-p chosen-select" data-placeholder="可选择..." data-validation-message="{{:lang('article_category_format')}}" required>
					<option value="">可选择...</option>
G
gongfuxiang 已提交
34 35 36 37 38 39 40 41 42 43
					<foreach name="article_category_list" item="v">
						<option value="{{$v.id}}" {{if isset($data['article_category_id']) and $data['article_category_id'] eq $v['id']">selected{{/if}}>{{$v.name}}</option>
					{{/foreach}}
				</select>
			</div>
			<div class="am-form-group">
				<label>{{:lang('article_jump_url_text')}}</label>
				<input type="url" name="jump_url" placeholder="{{:lang('article_jump_url_text')}}" data-validation-message="{{:lang('article_jump_url_format')}}" class="am-radius" <notempty name="data"> value="{{$data.jump_url}}"{{/if}} />
			</div>
			<div class="am-form-group">
D
devil_gong 已提交
44 45
			    <label class="block">是否启用</label>
			    <input name="is_enable" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch {{if !empty($data) and $data['is_enable'] eq 1)}}checked="true"{{/if}} />
G
gongfuxiang 已提交
46 47 48
			</div>
			<div class="am-form-group">
			    <label class="block">{{:lang('article_home_recommended_text')}}</label>
D
devil_gong 已提交
49
			    <input name="is_home_recommended" value="1" type="checkbox" data-off-text="否" data-on-text="是" data-size="xs" data-on-color="success" data-off-color="default" data-handle-width="50" data-am-switch {{if !empty($data) and $data['is_home_recommended'] eq 1)}}checked="true"{{/if}} />
G
gongfuxiang 已提交
50 51 52 53 54 55 56
			</div>
			<div class="am-form-group">
				<label>{{:lang('article_content_text')}}</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'=>'article'])}}" placeholder="{{:lang('article_content_format')}}" {{else /}} placeholder="{{:lang('article_content_format')}}{{:lang('article_content_format_mobile')}}" {{/if}} data-validation-message="{{:lang('article_content_format')}}" 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}}" />
D
devil_gong 已提交
57
				<button type="submit" class="am-btn am-btn-primary am-radius btn-loading-example am-btn-sm w100" data-am-loading="{loadingText:'处理中...'}">保存</button>
G
gongfuxiang 已提交
58 59 60 61 62 63 64 65 66 67
			</div>
		</form>
        <!-- form end -->
	</div>
</div>
<!-- right content end  -->

<!-- footer start -->
{{include file="public/footer" /}}
<!-- footer end -->