166 lines
9.5 KiB
HTML
166 lines
9.5 KiB
HTML
{% extends 'dashboard/base/base.html' %}
|
|
{% load static %}
|
|
{% block content %}
|
|
<body class=" ">
|
|
<!-- START TOPBAR -->
|
|
|
|
<!-- START CONTAINER -->
|
|
<div class="page-container row-fluid">
|
|
|
|
<div class="page-sidebar ">
|
|
{% include 'dashboard/base/left.html' %}
|
|
</div>
|
|
<section id="main-content" class=" ">
|
|
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
|
|
{% if messages %}
|
|
<div class="alert alert-success alert-dismissible" role="alert">
|
|
<button type="button" class="close" data-dismiss="alert">
|
|
<span aria-hidden="true">×</span>
|
|
<span class="sr-only">Close</span>
|
|
</button>
|
|
{% for message in messages %}
|
|
{{ message }}.<br/>
|
|
{% endfor %}
|
|
</div>
|
|
{% endif %}
|
|
<div class='col-lg-12 col-md-12 col-sm-12 col-xs-12'>
|
|
<div class="page-title">
|
|
|
|
<div class="pull-left">
|
|
<h1 class="title">新建新媒体</h1></div>
|
|
</div>
|
|
</div>
|
|
<div class="clearfix"></div>
|
|
|
|
<div class="col-lg-12 col-md-12 col-xs-12 col-sm-12">
|
|
<section class="box ">
|
|
<header class="panel_header">
|
|
<h2 class="title pull-left">新建微信</h2>
|
|
</header>
|
|
<div class="content-body">
|
|
<div class="row">
|
|
<div class="col-md-8 col-sm-9 col-xs-10">
|
|
<form method="post"
|
|
action="{% url 'newmedia-management-create-weixin' %}"
|
|
enctype="multipart/form-data">{% csrf_token %}
|
|
<div class="form-group">
|
|
<label class="form-label" for="code">微信公众号</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="code">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="weixinid">BIZ</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="weixinid">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="alias">别名</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="alias">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="organization">单位</label>
|
|
{# <div class="controls">#}
|
|
{# <select class="form-control" name="organization">#}
|
|
{# {% for o in organization %}#}
|
|
{# <option value="{{ o.id }}">{{ o.name }}</option>#}
|
|
{# {% endfor %}#}
|
|
{# </select>#}
|
|
{# </div>#}
|
|
<div class="input-group main-search">
|
|
<input type="text" class="form-control" placeholder="请输入关键字"
|
|
style="height: 40px;width: 550px;opacity: .9 "
|
|
name="organization">
|
|
<div class="input-group-btn" style="display: none">
|
|
<button class="btn btn-default" type="button">
|
|
<span class="glyphicon glyphicon-search"></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="autocomplete-panel" style="z-index: 9999">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="image">图标
|
|
<div class="controls">
|
|
<input type="file" name="image">
|
|
</div>
|
|
</label>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="status">状态</label>
|
|
<div class="controls">
|
|
<select class="form-control" name="status">
|
|
{% for w in weixin_status_choices_list %}
|
|
<option value="{{ w }}">{{ w }}</option>
|
|
{% endfor %}
|
|
</select>
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="identificationcode">新媒体标识码</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="identificationcode">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="function">功能</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="function">
|
|
</div>
|
|
</div>
|
|
<div class="form-group">
|
|
<label class="form-label" for="articleurl">文章url</label>
|
|
<div class="controls">
|
|
<input type="text" class="form-control" name="articleurl">
|
|
</div>
|
|
</div>
|
|
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
</div>
|
|
</section>
|
|
</section>
|
|
<div class="chatapi-windows "></div>
|
|
</div>
|
|
</body>
|
|
{% endblock %}
|
|
{% block add_js %}
|
|
<script>
|
|
$(function () {
|
|
$('.main-search input').focus(function (e) {
|
|
e.preventDefault();
|
|
$("#history_query").hide()
|
|
var width = $(this).width();
|
|
var position = $(this).position();
|
|
var val = $(this).val();
|
|
var params = {keyword: val}
|
|
if (val) {
|
|
$('.autocomplete-panel').load('/get/organization/' + '?' + $.param(params));
|
|
}
|
|
$('.autocomplete-panel').css({
|
|
width: width + 12,
|
|
top: position.top + 34,
|
|
left: position.left + 5
|
|
}).show();
|
|
}).blur(function (e) {
|
|
e.preventDefault();
|
|
}).on('input', function (e) {
|
|
var val = $(this).val();
|
|
var params = {keyword: val}
|
|
$('.autocomplete-panel').load('/get/organization/' + '?' + $.param(params))
|
|
});
|
|
})
|
|
|
|
|
|
</script>
|
|
{% endblock %}
|
|
|