...
|
...
|
@@ -29,7 +29,7 @@ |
|
|
<body>
|
|
|
<div class="wrap js-check-wrap">
|
|
|
<ul class="nav nav-tabs">
|
|
|
<li><a href="{:url('Coa/list')}">产品列表</a></li>
|
|
|
<li><a href="{:url('Coa/list')}">列表</a></li>
|
|
|
<li class="active"><a href="{:url('AdminArticle/add')}">添加文章</a></li>
|
|
|
</ul>
|
|
|
<form action="{:url('AdminArticle/addPost')}" method="post" class="form-horizontal js-ajax-form margin-top-20">
|
...
|
...
|
@@ -53,54 +53,19 @@ |
|
|
id="title" required value="" placeholder="请输入标题"/>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>关键词</th>
|
|
|
<td>
|
|
|
<input class="form-control" type="text" name="post[post_keywords]" id="keywords" value=""
|
|
|
placeholder="请输入关键字">
|
|
|
<p class="help-block">多关键词之间用英文逗号隔开</p>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>文章来源</th>
|
|
|
<td><input class="form-control" type="text" name="post[post_source]" id="source" value=""
|
|
|
placeholder="请输入文章来源"></td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>摘要</th>
|
|
|
<td>
|
|
|
<textarea class="form-control" name="post[post_excerpt]" style="height: 50px;"
|
|
|
placeholder="请填写摘要"></textarea>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
<th>内容</th>
|
|
|
<td>
|
|
|
<script type="text/plain" id="content" name="post[post_content]"></script>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>相册</th>
|
|
|
<td>
|
|
|
<ul id="photos" class="pic-list list-unstyled form-inline"></ul>
|
|
|
<a href="javascript:uploadMultiImage('图片上传','#photos','photos-item-tpl');"
|
|
|
class="btn btn-default btn-sm">选择图片</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
<tr>
|
|
|
<th>附件</th>
|
|
|
<td>
|
|
|
<ul id="files" class="pic-list list-unstyled form-inline">
|
|
|
</ul>
|
|
|
<a href="javascript:uploadMultiFile('附件上传','#files','files-item-tpl');"
|
|
|
class="btn btn-sm btn-default">选择文件</a>
|
|
|
</td>
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
|
<div class="form-group">
|
|
|
<div class="col-sm-offset-2 col-sm-10">
|
|
|
<button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
|
|
|
<a class="btn btn-default" href="{:url('AdminArticle/index')}">{:lang('BACK')}</a>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
...
|
...
|
|