This commit is contained in:
parent
f20318af67
commit
3820e367a9
|
@ -6,7 +6,7 @@
|
|||
<!-- OTHER SCRIPTS INCLUDED ON THIS PAGE - END -->
|
||||
{% endblock %}
|
||||
{% block content %}
|
||||
<body class=" "><!-- START TOPBAR -->
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- END TOPBAR -->
|
||||
<!-- START CONTAINER -->
|
||||
|
@ -50,7 +50,6 @@
|
|||
<!-- SIDEBAR - END -->
|
||||
<!-- START CONTENT -->
|
||||
<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">
|
||||
|
@ -145,15 +144,18 @@
|
|||
</div>
|
||||
</div>
|
||||
</div> <!-- End .row -->
|
||||
<div class="col-lg-12">
|
||||
<section class="box nobox">
|
||||
<div class="content-body">
|
||||
<div class="row">
|
||||
|
||||
<div class="col-md-6 col-sm-7 col-xs-12">
|
||||
<div class="col-md-3 col-sm-5 col-xs-12">
|
||||
|
||||
<div class="r1_graph1 db_box">
|
||||
<span class='bold'>98.95%</span>
|
||||
<span class='pull-right'><small>SERVER UP</small></span>
|
||||
<div class="clearfix"></div>
|
||||
<span id="date-count" style="width: 150%;height: 60px;">Loading...</span>
|
||||
<span class="db_dynamicbar">Loading...</span>
|
||||
</div>
|
||||
|
||||
|
||||
|
@ -166,7 +168,7 @@
|
|||
|
||||
|
||||
<div class="r1_graph3 db_box">
|
||||
<span class='bold'>342/0</span>
|
||||
<span class='bold'>342/123</span>
|
||||
<span class='pull-right'><small>ORDERS / SALES</small></span>
|
||||
<div class="clearfix"></div>
|
||||
<span class="db_compositebar">Loading...</span>
|
||||
|
@ -187,7 +189,8 @@
|
|||
class='icon-secondary fa fa-area-chart icon-xs'></i>
|
||||
</span>
|
||||
|
||||
<div id="db_morris_line_graph" style="height:272px;width:95%;"></div>
|
||||
<div id="db_morris_line_graph"
|
||||
style="height:272px;width:95%;"></div>
|
||||
<div id="db_morris_area_graph"
|
||||
style="height:272px;width:90%;display:none;"></div>
|
||||
<div id="db_morris_bar_graph"
|
||||
|
@ -195,30 +198,32 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{# <div class="col-md-3 col-sm-12 col-xs-12">#}
|
||||
{# <div class="r1_graph4 db_box">#}
|
||||
{# <span class=''>#}
|
||||
{# <i class='icon-purple fa fa-square icon-xs icon-1'></i> <small>CPU USAGE</small>#}
|
||||
{# </span>#}
|
||||
{# <canvas width='180' height='90' id="gauge-meter"></canvas>#}
|
||||
{# <h4 id='gauge-meter-text'></h4>#}
|
||||
{# </div>#}
|
||||
{# <div class="r1_graph5 db_box col-xs-6">#}
|
||||
{# <span class=''><i class='icon-purple fa fa-square icon-xs icon-1'></i> <small>LONDON</small> <i#}
|
||||
{# class='fa fa-square icon-xs icon-2'></i> <small>PARIS</small></span>#}
|
||||
{# <div style="width:120px;height:120px;margin: 0 auto;">#}
|
||||
{# <span class="db_easypiechart1 easypiechart" data-percent="66"><span#}
|
||||
{# class="percent" style='line-height:120px;'></span></span>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
<div class="col-md-3 col-sm-12 col-xs-12">
|
||||
<div class="r1_graph4 db_box">
|
||||
<span class=''>
|
||||
<i class='icon-purple fa fa-square icon-xs icon-1'></i> <small>CPU USAGE</small>
|
||||
</span>
|
||||
<canvas width='180' height='90' id="gauge-meter"></canvas>
|
||||
<h4 id='gauge-meter-text'></h4>
|
||||
</div>
|
||||
<div class="r1_graph5 db_box col-xs-6">
|
||||
<span class=''><i
|
||||
class='icon-purple fa fa-square icon-xs icon-1'></i> <small>LONDON</small> <i
|
||||
class='fa fa-square icon-xs icon-2'></i> <small>PARIS</small></span>
|
||||
<div style="width:120px;height:120px;margin: 0 auto;">
|
||||
<span class="db_easypiechart1 easypiechart"
|
||||
data-percent="66"><span class="percent"
|
||||
style='line-height:120px;'></span></span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
</div> <!-- End .row -->
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-12 col-sm-12 col-xs-12">
|
||||
<div class="col-md-8 col-sm-12 col-xs-12">
|
||||
<div class="wid-vectormap">
|
||||
<h4>Visitor's Statistics</h4>
|
||||
<div class="row">
|
||||
|
@ -232,24 +237,27 @@
|
|||
<h4>Unique Visitors</h4>
|
||||
<span class='text-muted'><small>Last Week Rise by 62%</small></span>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-primary" role="progressbar"
|
||||
aria-valuenow="62" aria-valuemin="0" aria-valuemax="100"
|
||||
<div class="progress-bar progress-bar-primary"
|
||||
role="progressbar" aria-valuenow="62"
|
||||
aria-valuemin="0" aria-valuemax="100"
|
||||
style="width: 62%"></div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Registrations</h4>
|
||||
<span class='text-muted'><small>Up by 57% last 7 days</small></span>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-primary" role="progressbar"
|
||||
aria-valuenow="57" aria-valuemin="0" aria-valuemax="100"
|
||||
<div class="progress-bar progress-bar-primary"
|
||||
role="progressbar" aria-valuenow="57"
|
||||
aria-valuemin="0" aria-valuemax="100"
|
||||
style="width: 57%"></div>
|
||||
</div>
|
||||
<br>
|
||||
<h4>Direct Sales</h4>
|
||||
<span class='text-muted'><small>Last Month Rise by 22%</small></span>
|
||||
<div class="progress">
|
||||
<div class="progress-bar progress-bar-primary" role="progressbar"
|
||||
aria-valuenow="22" aria-valuemin="0" aria-valuemax="100"
|
||||
<div class="progress-bar progress-bar-primary"
|
||||
role="progressbar" aria-valuenow="22"
|
||||
aria-valuemin="0" aria-valuemax="100"
|
||||
style="width: 22%"></div>
|
||||
</div>
|
||||
</div>
|
||||
|
@ -257,280 +265,100 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
{# <div class="col-md-4 col-sm-12 col-xs-12">#}
|
||||
{# <div class="r2_graph1 db_box">#}
|
||||
{##}
|
||||
{##}
|
||||
{# <form id="rickshaw_side_panel">#}
|
||||
{# <section>#}
|
||||
{# <div id="legend"></div>#}
|
||||
{# </section>#}
|
||||
{# <section>#}
|
||||
{# <div id="renderer_form" class="toggler">#}
|
||||
{# <select name="renderer">#}
|
||||
{# <option value="area" selected>Area</option>#}
|
||||
{# <option value="bar">Bar</option>#}
|
||||
{# <option value="line">Line</option>#}
|
||||
{# <option value="scatterplot">Scatter</option>#}
|
||||
{# </select>#}
|
||||
{# </div>#}
|
||||
{# </section>#}
|
||||
{# <section>#}
|
||||
{# <div id="offset_form">#}
|
||||
{# <label for="stack">#}
|
||||
{# <input type="radio" name="offset" id="stack" value="zero"#}
|
||||
{# checked>#}
|
||||
{# <span>stack</span>#}
|
||||
{# </label>#}
|
||||
{# <label for="stream">#}
|
||||
{# <input type="radio" name="offset" id="stream" value="wiggle">#}
|
||||
{# <span>stream</span>#}
|
||||
{# </label>#}
|
||||
{# <label for="pct">#}
|
||||
{# <input type="radio" name="offset" id="pct" value="expand">#}
|
||||
{# <span>pct</span>#}
|
||||
{# </label>#}
|
||||
{# <label for="value">#}
|
||||
{# <input type="radio" name="offset" id="value" value="value">#}
|
||||
{# <span>value</span>#}
|
||||
{# </label>#}
|
||||
{# </div>#}
|
||||
{# <div id="interpolation_form">#}
|
||||
{# <label for="cardinal">#}
|
||||
{# <input type="radio" name="interpolation" id="cardinal"#}
|
||||
{# value="cardinal" checked>#}
|
||||
{# <span>cardinal</span>#}
|
||||
{# </label>#}
|
||||
{# <label for="linear">#}
|
||||
{# <input type="radio" name="interpolation" id="linear"#}
|
||||
{# value="linear">#}
|
||||
{# <span>linear</span>#}
|
||||
{# </label>#}
|
||||
{# <label for="step">#}
|
||||
{# <input type="radio" name="interpolation" id="step"#}
|
||||
{# value="step-after">#}
|
||||
{# <span>step</span>#}
|
||||
{# </label>#}
|
||||
{# </div>#}
|
||||
{# </section>#}
|
||||
{# </form>#}
|
||||
{##}
|
||||
{# <div id="chart_container" class="rickshaw_ext">#}
|
||||
{# <div id="chart"></div>#}
|
||||
{# <div id="timeline"></div>#}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{# <div id='rickshaw_side_panel' class="rickshaw_sliders">#}
|
||||
{# <section>#}
|
||||
{# <h5>Smoothing</h5>#}
|
||||
{# <div id="smoother"></div>#}
|
||||
{# </section>#}
|
||||
{# <section>#}
|
||||
{# <h5>Preview Range</h5>#}
|
||||
{# <div id="preview" class="rickshaw_ext_preview"></div>#}
|
||||
{# </section>#}
|
||||
{# </div>#}
|
||||
{##}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
<div class="col-md-4 col-sm-12 col-xs-12">
|
||||
<div class="r2_graph1 db_box">
|
||||
|
||||
|
||||
<form id="rickshaw_side_panel">
|
||||
<section>
|
||||
<div id="legend"></div>
|
||||
</section>
|
||||
<section>
|
||||
<div id="renderer_form" class="toggler">
|
||||
<select name="renderer">
|
||||
<option value="area" selected>Area</option>
|
||||
<option value="bar">Bar</option>
|
||||
<option value="line">Line</option>
|
||||
<option value="scatterplot">Scatter</option>
|
||||
</select>
|
||||
</div>
|
||||
</section>
|
||||
<section>
|
||||
<div id="offset_form">
|
||||
<label for="stack">
|
||||
<input type="radio" name="offset" id="stack"
|
||||
value="zero" checked>
|
||||
<span>stack</span>
|
||||
</label>
|
||||
<label for="stream">
|
||||
<input type="radio" name="offset" id="stream"
|
||||
value="wiggle">
|
||||
<span>stream</span>
|
||||
</label>
|
||||
<label for="pct">
|
||||
<input type="radio" name="offset" id="pct"
|
||||
value="expand">
|
||||
<span>pct</span>
|
||||
</label>
|
||||
<label for="value">
|
||||
<input type="radio" name="offset" id="value"
|
||||
value="value">
|
||||
<span>value</span>
|
||||
</label>
|
||||
</div>
|
||||
<div id="interpolation_form">
|
||||
<label for="cardinal">
|
||||
<input type="radio" name="interpolation"
|
||||
id="cardinal" value="cardinal" checked>
|
||||
<span>cardinal</span>
|
||||
</label>
|
||||
<label for="linear">
|
||||
<input type="radio" name="interpolation" id="linear"
|
||||
value="linear">
|
||||
<span>linear</span>
|
||||
</label>
|
||||
<label for="step">
|
||||
<input type="radio" name="interpolation" id="step"
|
||||
value="step-after">
|
||||
<span>step</span>
|
||||
</label>
|
||||
</div>
|
||||
</section>
|
||||
</form>
|
||||
|
||||
<div id="chart_container" class="rickshaw_ext">
|
||||
<div id="chart"></div>
|
||||
<div id="timeline"></div>
|
||||
</div>
|
||||
|
||||
<div id='rickshaw_side_panel' class="rickshaw_sliders">
|
||||
<section>
|
||||
<h5>Smoothing</h5>
|
||||
<div id="smoother"></div>
|
||||
</section>
|
||||
<section>
|
||||
<h5>Preview Range</h5>
|
||||
<div id="preview" class="rickshaw_ext_preview"></div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!--
|
||||
<div class="r2_counter1 db_box">
|
||||
counter 1
|
||||
</div>
|
||||
|
||||
<div class="r2_counter2 db_box">
|
||||
counter 2
|
||||
</div> -->
|
||||
|
||||
</div>
|
||||
|
||||
</div> <!-- End .row -->
|
||||
</div>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
|
||||
</section>
|
||||
</section>
|
||||
<!-- END CONTENT -->
|
||||
<div class="page-chatapi hideit">
|
||||
|
||||
<div class="search-bar">
|
||||
<input type="text" placeholder="Search" class="form-control">
|
||||
</div>
|
||||
|
||||
<div class="chat-wrapper">
|
||||
<h4 class="group-head">Groups</h4>
|
||||
<ul class="group-list list-unstyled">
|
||||
<li class="group-row">
|
||||
<div class="group-status available">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
<div class="group-info">
|
||||
<h4><a href="#">Work</a></h4>
|
||||
</div>
|
||||
</li>
|
||||
<li class="group-row">
|
||||
<div class="group-status away">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
<div class="group-info">
|
||||
<h4><a href="#">Friends</a></h4>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<h4 class="group-head">Favourites</h4>
|
||||
<ul class="contact-list">
|
||||
|
||||
<li class="user-row" id='chat_user_1' data-user-id='1'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Clarine Vassar</a></h4>
|
||||
<span class="status available" data-status="available"> Available</span>
|
||||
</div>
|
||||
<div class="user-status available">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_2' data-user-id='2'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Brooks Latshaw</a></h4>
|
||||
<span class="status away" data-status="away"> Away</span>
|
||||
</div>
|
||||
<div class="user-status away">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_3' data-user-id='3'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-3.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Clementina Brodeur</a></h4>
|
||||
<span class="status busy" data-status="busy"> Busy</span>
|
||||
</div>
|
||||
<div class="user-status busy">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
|
||||
<h4 class="group-head">More Contacts</h4>
|
||||
<ul class="contact-list">
|
||||
|
||||
<li class="user-row" id='chat_user_4' data-user-id='4'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-4.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Carri Busey</a></h4>
|
||||
<span class="status offline" data-status="offline"> Offline</span>
|
||||
</div>
|
||||
<div class="user-status offline">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_5' data-user-id='5'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-5.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Melissa Dock</a></h4>
|
||||
<span class="status offline" data-status="offline"> Offline</span>
|
||||
</div>
|
||||
<div class="user-status offline">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_6' data-user-id='6'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Verdell Rea</a></h4>
|
||||
<span class="status available" data-status="available"> Available</span>
|
||||
</div>
|
||||
<div class="user-status available">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_7' data-user-id='7'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Linette Lheureux</a></h4>
|
||||
<span class="status busy" data-status="busy"> Busy</span>
|
||||
</div>
|
||||
<div class="user-status busy">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_8' data-user-id='8'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-3.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Araceli Boatright</a></h4>
|
||||
<span class="status away" data-status="away"> Away</span>
|
||||
</div>
|
||||
<div class="user-status away">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_9' data-user-id='9'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-4.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Clay Peskin</a></h4>
|
||||
<span class="status busy" data-status="busy"> Busy</span>
|
||||
</div>
|
||||
<div class="user-status busy">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_10' data-user-id='10'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-5.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Loni Tindall</a></h4>
|
||||
<span class="status away" data-status="away"> Away</span>
|
||||
</div>
|
||||
<div class="user-status away">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_11' data-user-id='11'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-1.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Tanisha Kimbro</a></h4>
|
||||
<span class="status idle" data-status="idle"> Idle</span>
|
||||
</div>
|
||||
<div class="user-status idle">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
<li class="user-row" id='chat_user_12' data-user-id='12'>
|
||||
<div class="user-img">
|
||||
<a href="#"><img src="{% static 'dashboard/image/avatar-2.png' %}" alt=""></a>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<h4><a href="#">Jovita Tisdale</a></h4>
|
||||
<span class="status idle" data-status="idle"> Idle</span>
|
||||
</div>
|
||||
<div class="user-status idle">
|
||||
<i class="fa fa-circle"></i>
|
||||
</div>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
<div class="chatapi-windows ">
|
||||
|
@ -539,29 +367,10 @@
|
|||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
<!-- General section box modal start -->
|
||||
<div class="modal" id="section-settings" tabindex="-1" role="dialog" aria-labelledby="ultraModal-Label"
|
||||
aria-hidden="true">
|
||||
<div class="modal-dialog animated bounceInDown">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
|
||||
<h4 class="modal-title">Section Settings</h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
|
||||
Body goes here...
|
||||
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button data-dismiss="modal" class="btn btn-default" type="button">Close</button>
|
||||
<button class="btn btn-success" type="button">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- modal end -->
|
||||
</body>
|
||||
|
||||
{% endblock %}
|
||||
{% block add_js %}
|
||||
|
@ -577,8 +386,8 @@
|
|||
<script src="{% static 'js/gauge.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'js/icheck.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'js/dashboard.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'graph/js/echarts.min.js' %}" type="text/javascript"></script>
|
||||
<script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script>
|
||||
{# <script src="{% static 'graph/js/echarts.min.js' %}" type="text/javascript"></script>#}
|
||||
{# <script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script>#}
|
||||
<script>
|
||||
{#$(function () {#}
|
||||
{# var year = '{{ year }}';#}
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
<span class="current">
|
||||
第{{ douyin.number }}页 共{{ douyin.paginator.num_pages }}页</span>
|
||||
|
||||
{% if toutiao.has_next %}
|
||||
{% if douyin.has_next %}
|
||||
<a class='active' href="?page={{ douyin.next_page_number }}">下一页</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
|
|
|
@ -0,0 +1,18 @@
|
|||
<div id="pages" class="text-center">
|
||||
<nav>
|
||||
<ul class="pagination">
|
||||
<li class="step-links">
|
||||
{% if new.has_previous %}
|
||||
<a class='active' href="?page={{ new.previous_page_number }}">上一页</a>
|
||||
{% endif %}
|
||||
|
||||
<span class="current">
|
||||
第{{ new.number }}页 共{{ new.paginator.num_pages }}页</span>
|
||||
|
||||
{% if new.has_next %}
|
||||
<a class='active' href="?page={{ new.next_page_number }}">下一页</a>
|
||||
{% endif %}
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</div>
|
|
@ -46,7 +46,7 @@
|
|||
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
|
||||
class="img-circle"></td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.code }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.toutiaoid }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.douyinid }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
|
||||
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>
|
||||
|
|
|
@ -81,7 +81,7 @@
|
|||
</tbody>
|
||||
</table>
|
||||
<div class="metadata-pagination">
|
||||
{% include 'dashboard/paginator/organization-management-paginate.html' %}
|
||||
{% include 'dashboard/paginator/news-management-paginate.html' %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -194,10 +194,9 @@ def group_management_user(request):
|
|||
|
||||
def group_update(request, pk):
|
||||
group = Group.objects.get(id=pk)
|
||||
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
|
||||
group_status_choices_list = []
|
||||
for g in GROUP_STATUS_CHOICES:
|
||||
group_status_choices_list.append(list(g)[1])
|
||||
for g in range(2):
|
||||
group_status_choices_list.append(g)
|
||||
group_type = Group_type.objects.all()
|
||||
group_admin = Group_admin.objects.filter(group_id=pk)
|
||||
print(pk)
|
||||
|
@ -278,10 +277,9 @@ def group_update(request, pk):
|
|||
|
||||
def group_create(request):
|
||||
user = request.user
|
||||
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
|
||||
group_status_choices_list = []
|
||||
for g in GROUP_STATUS_CHOICES:
|
||||
group_status_choices_list.append(list(g)[1])
|
||||
for g in range(2):
|
||||
group_status_choices_list.append(g)
|
||||
group_type = Group_type.objects.all()
|
||||
if request.method == 'POST':
|
||||
name = request.POST.get('name')
|
||||
|
@ -541,10 +539,9 @@ def newmedia_management_create_menu(request):
|
|||
|
||||
|
||||
def newmedia_management_create_weixin(request):
|
||||
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
|
||||
weixin_status_choices_list = []
|
||||
for w in WEIXIN_STATUS_CHOICES:
|
||||
weixin_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
weixin_status_choices_list.append(w)
|
||||
organization = Organization.objects.all().order_by('-name')
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
|
@ -580,10 +577,9 @@ def newmedia_management_create_weixin(request):
|
|||
|
||||
|
||||
def newmedia_management_create_weibo(request):
|
||||
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
|
||||
weibo_status_choices_list = []
|
||||
for w in WEIBO_STATUS_CHOICES:
|
||||
weibo_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
weibo_status_choices_list.append(w)
|
||||
organization = Organization.objects.all().order_by('-name')
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
|
@ -620,10 +616,9 @@ def newmedia_management_create_weibo(request):
|
|||
|
||||
|
||||
def newmedia_management_create_toutiao(request):
|
||||
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
|
||||
toutiao_status_choices_list = []
|
||||
for w in TOUTIAO_STATUS_CHOICES:
|
||||
toutiao_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
toutiao_status_choices_list.append(w)
|
||||
organization = Organization.objects.all().order_by('-name')
|
||||
if request.method == 'POST':
|
||||
code = request.POST.get('code')
|
||||
|
@ -659,10 +654,9 @@ def newmedia_management_create_toutiao(request):
|
|||
{'toutiao_status_choices_list': toutiao_status_choices_list, "organization": organization})
|
||||
|
||||
def newmedia_management_create_douyin(request):
|
||||
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
|
||||
douyin_status_choices_list = []
|
||||
for w in DOUYIN_STATUS_CHOICES:
|
||||
douyin_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
douyin_status_choices_list.append(w)
|
||||
print(douyin_status_choices_list)
|
||||
organization = Organization.objects.all().order_by('-name')
|
||||
if request.method == 'POST':
|
||||
|
@ -699,10 +693,9 @@ def newmedia_management_create_douyin(request):
|
|||
{'douyin_status_choices_list': douyin_status_choices_list, "organization": organization})
|
||||
|
||||
def newmedia_management_create_qita(request):
|
||||
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
|
||||
qita_status_choices_list = []
|
||||
for w in QITA_STATUS_CHOICES:
|
||||
qita_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
qita_status_choices_list.append(w)
|
||||
organization = Organization.objects.all().order_by('-name')
|
||||
if request.method == 'POST':
|
||||
type = request.POST.get('type')
|
||||
|
@ -774,8 +767,32 @@ def newmedia_management_edit_weixin(request):
|
|||
o['weixinid'] = w.weixinid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.village).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name)
|
||||
elif len(w.organization.province) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-weixin.html', {'weixin': weixin, 'res': res})
|
||||
|
@ -812,8 +829,32 @@ def newmedia_management_edit_weibo(request):
|
|||
o['weiboid'] = w.weiboid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.village).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name)
|
||||
elif len(w.organization.province) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-weibo.html', {'weibo': weibo, 'res': res})
|
||||
|
@ -851,8 +892,32 @@ def newmedia_management_edit_toutiao(request):
|
|||
o['toutiaoid'] = w.toutiaoid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.village).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name)
|
||||
elif len(w.organization.province) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-toutiao.html', {'toutiao': toutiao, 'res': res})
|
||||
|
@ -889,8 +954,26 @@ def newmedia_management_edit_douyin(request):
|
|||
o['douyinid'] = w.douyinid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.village).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0 and len(w.organization.town) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 :
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name)
|
||||
elif len(w.organization.province) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-douyin.html', {'douyin': douyin, 'res': res})
|
||||
|
@ -926,18 +1009,41 @@ def newmedia_management_edit_qita(request):
|
|||
o['qitaid'] = w.qitaid
|
||||
o['organization'] = w.organization.name
|
||||
o['organization_type'] = w.organization.organizationtype.organizationtype
|
||||
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str(
|
||||
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village)
|
||||
if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0 and len(w.organization.village) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.village).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
|
||||
w.organization.district) > 0 and len(w.organization.town) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.town).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(w.organization.district) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.district).name)
|
||||
elif len(w.organization.province) > 0 and len(w.organization.cities) > 0:
|
||||
o['administrativedivision'] = str(
|
||||
Area_code_2020.objects.get(code=w.organization.province).name) + '-' + str(
|
||||
Area_code_2020.objects.get(code=w.organization.cities).name)
|
||||
elif len(w.organization.province) > 0:
|
||||
o['administrativedivision'] = str(Area_code_2020.objects.get(code=w.organization.province).name)
|
||||
o['status'] = w.status
|
||||
res.append(o)
|
||||
return render(request, 'management/newmedia-management-edit-qita.html', {'qita': qita, 'res': res})
|
||||
|
||||
|
||||
def newmedia_management_update_weixin(request, pk):
|
||||
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
|
||||
weixin_status_choices_list = []
|
||||
for w in WEIXIN_STATUS_CHOICES:
|
||||
weixin_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
weixin_status_choices_list.append(w)
|
||||
weixin = Weixin.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
|
@ -977,10 +1083,9 @@ def newmedia_management_update_weixin(request, pk):
|
|||
|
||||
|
||||
def newmedia_management_update_weibo(request, pk):
|
||||
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
|
||||
weibo_status_choices_list = []
|
||||
for w in WEIBO_STATUS_CHOICES:
|
||||
weibo_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
weibo_status_choices_list.append(w)
|
||||
weibo = Weibo.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
|
@ -1020,10 +1125,9 @@ def newmedia_management_update_weibo(request, pk):
|
|||
|
||||
|
||||
def newmedia_management_update_toutiao(request, pk):
|
||||
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
|
||||
toutiao_status_choices_list = []
|
||||
for w in TOUTIAO_STATUS_CHOICES:
|
||||
toutiao_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
toutiao_status_choices_list.append(w)
|
||||
toutiao = Toutiao.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
|
@ -1062,10 +1166,9 @@ def newmedia_management_update_toutiao(request, pk):
|
|||
'toutiao_status_choices_list': toutiao_status_choices_list})
|
||||
|
||||
def newmedia_management_update_douyin(request, pk):
|
||||
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
|
||||
douyin_status_choices_list = []
|
||||
for w in DOUYIN_STATUS_CHOICES:
|
||||
douyin_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
douyin_status_choices_list.append(w)
|
||||
douyin = Douyin.objects.get(id=pk)
|
||||
organization = Organization.objects.all()
|
||||
if request.method == 'POST':
|
||||
|
@ -1103,10 +1206,9 @@ def newmedia_management_update_douyin(request, pk):
|
|||
{'douyin': douyin, 'organization': organization,
|
||||
'douyin_status_choices_list': douyin_status_choices_list})
|
||||
def newmedia_management_update_qita(request, pk):
|
||||
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
|
||||
qita_status_choices_list = []
|
||||
for w in QITA_STATUS_CHOICES:
|
||||
qita_status_choices_list.append(list(w)[1])
|
||||
for w in range(2):
|
||||
qita_status_choices_list.append(w)
|
||||
organization = Organization.objects.all()
|
||||
qita = Qita.objects.get(id=pk)
|
||||
if request.method == 'POST':
|
||||
|
@ -1180,6 +1282,14 @@ def newmedia_management_delete_qita(request, pk):
|
|||
|
||||
def new_management(request):
|
||||
news = News.objects.all()
|
||||
paginator = Paginator(news, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
news = paginator.page(page)
|
||||
except PageNotAnInteger:
|
||||
news = paginator.page(1)
|
||||
except EmptyPage:
|
||||
news = paginator.page(paginator.num_pages)
|
||||
news_list = []
|
||||
for n in news:
|
||||
o = dict()
|
||||
|
@ -1202,7 +1312,7 @@ def new_management(request):
|
|||
elif n.type == '6':
|
||||
o['type'] = '重点新闻'
|
||||
news_list.append(o)
|
||||
return render(request,'management/news-management.html',{'news':news_list})
|
||||
return render(request,'management/news-management.html',{'news':news_list,'new':news})
|
||||
def news_management_create(request):
|
||||
if request.method == 'POST':
|
||||
type = request.POST.get('type')
|
||||
|
|
|
@ -42,8 +42,8 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">微信热点</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-lg-6" style="margin-top: 10px">
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-8" style="margin-top: 10px">
|
||||
<div class="col-md-8">
|
||||
公众号
|
||||
<select id="basicSelect">
|
||||
<option value="qita_all">全部</option>
|
||||
|
@ -52,7 +52,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-4">
|
||||
分组
|
||||
<select id="basicSelect">
|
||||
<option value="group_all">全部</option>
|
||||
|
@ -62,7 +62,7 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-md-4">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search for...">
|
||||
<span class="input-group-btn">
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">微信热点</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-lg-6" style="margin-top: 10px">
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-8" style="margin-top: 10px">
|
||||
<div class="col-md-8">
|
||||
公众号
|
||||
<select id="basicSelect">
|
||||
<option value="toutiao_all">全部</option>
|
||||
|
@ -49,7 +49,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-4">
|
||||
分组
|
||||
<select id="basicSelect">
|
||||
<option value="group_all">全部</option>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-md-4">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search for...">
|
||||
<span class="input-group-btn">
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">微信热点</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-lg-6" style="margin-top: 10px">
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-8" style="margin-top: 10px">
|
||||
<div class="col-md-8">
|
||||
公众号
|
||||
<select id="basicSelect">
|
||||
<option value="weibo_all">全部</option>
|
||||
|
@ -49,7 +49,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-4">
|
||||
分组
|
||||
<select id="basicSelect">
|
||||
<option value="group_all">全部</option>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-md-4">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search for...">
|
||||
<span class="input-group-btn">
|
||||
|
|
|
@ -39,8 +39,8 @@
|
|||
<div class="panel panel-default">
|
||||
<div class="panel-heading">微信热点</div>
|
||||
<div class="panel-body">
|
||||
<div class="col-lg-6" style="margin-top: 10px">
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-8" style="margin-top: 10px">
|
||||
<div class="col-md-8">
|
||||
公众号
|
||||
<select id="basicSelect">
|
||||
<option value="weixin_all">全部</option>
|
||||
|
@ -49,7 +49,7 @@
|
|||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-3">
|
||||
<div class="col-md-4">
|
||||
分组
|
||||
<select id="basicSelect">
|
||||
<option value="group_all">全部</option>
|
||||
|
@ -59,7 +59,7 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-lg-6">
|
||||
<div class="col-md-4">
|
||||
<div class="input-group">
|
||||
<input type="text" class="form-control" placeholder="Search for...">
|
||||
<span class="input-group-btn">
|
||||
|
|
Loading…
Reference in New Issue