This commit is contained in:
Bob 2020-09-26 12:07:48 +08:00
parent f20318af67
commit 3820e367a9
10 changed files with 919 additions and 982 deletions

View File

@ -6,7 +6,7 @@
<!-- OTHER SCRIPTS INCLUDED ON THIS PAGE - END --> <!-- OTHER SCRIPTS INCLUDED ON THIS PAGE - END -->
{% endblock %} {% endblock %}
{% block content %} {% block content %}
<body class=" "><!-- START TOPBAR --> <!-- START TOPBAR -->
<!-- END TOPBAR --> <!-- END TOPBAR -->
<!-- START CONTAINER --> <!-- START CONTAINER -->
@ -50,7 +50,6 @@
<!-- SIDEBAR - END --> <!-- SIDEBAR - END -->
<!-- START CONTENT --> <!-- START CONTENT -->
<section id="main-content" class=" "> <section id="main-content" class=" ">
<section class="wrapper" style='margin-top:60px;display:inline-block;width:100%;padding:15px 0 0 15px;'>
{% if messages %} {% if messages %}
<div class="alert alert-success alert-dismissible" role="alert"> <div class="alert alert-success alert-dismissible" role="alert">
<button type="button" class="close" data-dismiss="alert"> <button type="button" class="close" data-dismiss="alert">
@ -145,15 +144,18 @@
</div> </div>
</div> </div>
</div> <!-- End .row --> </div> <!-- End .row -->
<div class="col-lg-12">
<section class="box nobox">
<div class="content-body">
<div class="row"> <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"> <div class="r1_graph1 db_box">
<span class='bold'>98.95%</span> <span class='bold'>98.95%</span>
<span class='pull-right'><small>SERVER UP</small></span> <span class='pull-right'><small>SERVER UP</small></span>
<div class="clearfix"></div> <div class="clearfix"></div>
<span id="date-count" style="width: 150%;height: 60px;">Loading...</span> <span class="db_dynamicbar">Loading...</span>
</div> </div>
@ -166,7 +168,7 @@
<div class="r1_graph3 db_box"> <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> <span class='pull-right'><small>ORDERS / SALES</small></span>
<div class="clearfix"></div> <div class="clearfix"></div>
<span class="db_compositebar">Loading...</span> <span class="db_compositebar">Loading...</span>
@ -187,7 +189,8 @@
class='icon-secondary fa fa-area-chart icon-xs'></i> class='icon-secondary fa fa-area-chart icon-xs'></i>
</span> </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" <div id="db_morris_area_graph"
style="height:272px;width:90%;display:none;"></div> style="height:272px;width:90%;display:none;"></div>
<div id="db_morris_bar_graph" <div id="db_morris_bar_graph"
@ -195,30 +198,32 @@
</div> </div>
</div> </div>
{# <div class="col-md-3 col-sm-12 col-xs-12">#} <div class="col-md-3 col-sm-12 col-xs-12">
{# <div class="r1_graph4 db_box">#} <div class="r1_graph4 db_box">
{# <span class=''>#} <span class=''>
{# <i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>CPU USAGE</small>#} <i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>CPU USAGE</small>
{# </span>#} </span>
{# <canvas width='180' height='90' id="gauge-meter"></canvas>#} <canvas width='180' height='90' id="gauge-meter"></canvas>
{# <h4 id='gauge-meter-text'></h4>#} <h4 id='gauge-meter-text'></h4>
{# </div>#} </div>
{# <div class="r1_graph5 db_box col-xs-6">#} <div class="r1_graph5 db_box col-xs-6">
{# <span class=''><i class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>LONDON</small>&nbsp; &nbsp;<i#} <span class=''><i
{# class='fa fa-square icon-xs icon-2'></i>&nbsp;<small>PARIS</small></span>#} class='icon-purple fa fa-square icon-xs icon-1'></i>&nbsp;<small>LONDON</small>&nbsp; &nbsp;<i
{# <div style="width:120px;height:120px;margin: 0 auto;">#} class='fa fa-square icon-xs icon-2'></i>&nbsp;<small>PARIS</small></span>
{# <span class="db_easypiechart1 easypiechart" data-percent="66"><span#} <div style="width:120px;height:120px;margin: 0 auto;">
{# class="percent" style='line-height:120px;'></span></span>#} <span class="db_easypiechart1 easypiechart"
{# </div>#} data-percent="66"><span class="percent"
{# </div>#} style='line-height:120px;'></span></span>
{##} </div>
{# </div>#} </div>
</div>
</div> <!-- End .row --> </div> <!-- End .row -->
<div class="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"> <div class="wid-vectormap">
<h4>Visitor's Statistics</h4> <h4>Visitor's Statistics</h4>
<div class="row"> <div class="row">
@ -232,24 +237,27 @@
<h4>Unique Visitors</h4> <h4>Unique Visitors</h4>
<span class='text-muted'><small>Last Week Rise by 62%</small></span> <span class='text-muted'><small>Last Week Rise by 62%</small></span>
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar" <div class="progress-bar progress-bar-primary"
aria-valuenow="62" aria-valuemin="0" aria-valuemax="100" role="progressbar" aria-valuenow="62"
aria-valuemin="0" aria-valuemax="100"
style="width: 62%"></div> style="width: 62%"></div>
</div> </div>
<br> <br>
<h4>Registrations</h4> <h4>Registrations</h4>
<span class='text-muted'><small>Up by 57% last 7 days</small></span> <span class='text-muted'><small>Up by 57% last 7 days</small></span>
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar" <div class="progress-bar progress-bar-primary"
aria-valuenow="57" aria-valuemin="0" aria-valuemax="100" role="progressbar" aria-valuenow="57"
aria-valuemin="0" aria-valuemax="100"
style="width: 57%"></div> style="width: 57%"></div>
</div> </div>
<br> <br>
<h4>Direct Sales</h4> <h4>Direct Sales</h4>
<span class='text-muted'><small>Last Month Rise by 22%</small></span> <span class='text-muted'><small>Last Month Rise by 22%</small></span>
<div class="progress"> <div class="progress">
<div class="progress-bar progress-bar-primary" role="progressbar" <div class="progress-bar progress-bar-primary"
aria-valuenow="22" aria-valuemin="0" aria-valuemax="100" role="progressbar" aria-valuenow="22"
aria-valuemin="0" aria-valuemax="100"
style="width: 22%"></div> style="width: 22%"></div>
</div> </div>
</div> </div>
@ -257,280 +265,100 @@
</div> </div>
</div> </div>
{# <div class="col-md-4 col-sm-12 col-xs-12">#} <div class="col-md-4 col-sm-12 col-xs-12">
{# <div class="r2_graph1 db_box">#} <div class="r2_graph1 db_box">
{##}
{##}
{# <form id="rickshaw_side_panel">#} <form id="rickshaw_side_panel">
{# <section>#} <section>
{# <div id="legend"></div>#} <div id="legend"></div>
{# </section>#} </section>
{# <section>#} <section>
{# <div id="renderer_form" class="toggler">#} <div id="renderer_form" class="toggler">
{# <select name="renderer">#} <select name="renderer">
{# <option value="area" selected>Area</option>#} <option value="area" selected>Area</option>
{# <option value="bar">Bar</option>#} <option value="bar">Bar</option>
{# <option value="line">Line</option>#} <option value="line">Line</option>
{# <option value="scatterplot">Scatter</option>#} <option value="scatterplot">Scatter</option>
{# </select>#} </select>
{# </div>#} </div>
{# </section>#} </section>
{# <section>#} <section>
{# <div id="offset_form">#} <div id="offset_form">
{# <label for="stack">#} <label for="stack">
{# <input type="radio" name="offset" id="stack" value="zero"#} <input type="radio" name="offset" id="stack"
{# checked>#} value="zero" checked>
{# <span>stack</span>#} <span>stack</span>
{# </label>#} </label>
{# <label for="stream">#} <label for="stream">
{# <input type="radio" name="offset" id="stream" value="wiggle">#} <input type="radio" name="offset" id="stream"
{# <span>stream</span>#} value="wiggle">
{# </label>#} <span>stream</span>
{# <label for="pct">#} </label>
{# <input type="radio" name="offset" id="pct" value="expand">#} <label for="pct">
{# <span>pct</span>#} <input type="radio" name="offset" id="pct"
{# </label>#} value="expand">
{# <label for="value">#} <span>pct</span>
{# <input type="radio" name="offset" id="value" value="value">#} </label>
{# <span>value</span>#} <label for="value">
{# </label>#} <input type="radio" name="offset" id="value"
{# </div>#} value="value">
{# <div id="interpolation_form">#} <span>value</span>
{# <label for="cardinal">#} </label>
{# <input type="radio" name="interpolation" id="cardinal"#} </div>
{# value="cardinal" checked>#} <div id="interpolation_form">
{# <span>cardinal</span>#} <label for="cardinal">
{# </label>#} <input type="radio" name="interpolation"
{# <label for="linear">#} id="cardinal" value="cardinal" checked>
{# <input type="radio" name="interpolation" id="linear"#} <span>cardinal</span>
{# value="linear">#} </label>
{# <span>linear</span>#} <label for="linear">
{# </label>#} <input type="radio" name="interpolation" id="linear"
{# <label for="step">#} value="linear">
{# <input type="radio" name="interpolation" id="step"#} <span>linear</span>
{# value="step-after">#} </label>
{# <span>step</span>#} <label for="step">
{# </label>#} <input type="radio" name="interpolation" id="step"
{# </div>#} value="step-after">
{# </section>#} <span>step</span>
{# </form>#} </label>
{##} </div>
{# <div id="chart_container" class="rickshaw_ext">#} </section>
{# <div id="chart"></div>#} </form>
{# <div id="timeline"></div>#}
{# </div>#} <div id="chart_container" class="rickshaw_ext">
{##} <div id="chart"></div>
{# <div id='rickshaw_side_panel' class="rickshaw_sliders">#} <div id="timeline"></div>
{# <section>#} </div>
{# <h5>Smoothing</h5>#}
{# <div id="smoother"></div>#} <div id='rickshaw_side_panel' class="rickshaw_sliders">
{# </section>#} <section>
{# <section>#} <h5>Smoothing</h5>
{# <h5>Preview Range</h5>#} <div id="smoother"></div>
{# <div id="preview" class="rickshaw_ext_preview"></div>#} </section>
{# </section>#} <section>
{# </div>#} <h5>Preview Range</h5>
{##} <div id="preview" class="rickshaw_ext_preview"></div>
{# </div>#} </section>
{# </div>#} </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> <!-- End .row -->
</div> </div>
</section> </section>
</div> </div>
</section>
</section>
<!-- END CONTENT --> <!-- 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 "> <div class="chatapi-windows ">
@ -539,29 +367,10 @@
</div> </div>
</div> </div>
</section>
<!-- General section box modal start --> <!-- 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">&times;</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 --> <!-- modal end -->
</body>
{% endblock %} {% endblock %}
{% block add_js %} {% block add_js %}
@ -577,8 +386,8 @@
<script src="{% static 'js/gauge.min.js' %}" type="text/javascript"></script> <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/icheck.min.js' %}" type="text/javascript"></script>
<script src="{% static 'js/dashboard.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/echarts.min.js' %}" type="text/javascript"></script>#}
<script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script> {# <script src="{% static 'graph/js/data-count.js' %}" type="text/javascript"></script>#}
<script> <script>
{#$(function () {#} {#$(function () {#}
{# var year = '{{ year }}';#} {# var year = '{{ year }}';#}

View File

@ -9,7 +9,7 @@
<span class="current"> <span class="current">
第{{ douyin.number }}页 共{{ douyin.paginator.num_pages }}页</span> 第{{ 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> <a class='active' href="?page={{ douyin.next_page_number }}">下一页</a>
{% endif %} {% endif %}
</li> </li>

View File

@ -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>

View File

@ -46,7 +46,7 @@
<td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto" <td><img src="{{ w.image.url }}" style="width: 60px;height: 60px;margin: auto"
class="img-circle"></td> class="img-circle"></td>
<td style="vertical-align: middle;text-align: center">{{ w.code }}</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 }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td> <td style="vertical-align: middle;text-align: center">{{ w.organization_type }}</td>
<td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td> <td style="vertical-align: middle;text-align: center">{{ w.administrativedivision }}</td>

View File

@ -81,7 +81,7 @@
</tbody> </tbody>
</table> </table>
<div class="metadata-pagination"> <div class="metadata-pagination">
{% include 'dashboard/paginator/organization-management-paginate.html' %} {% include 'dashboard/paginator/news-management-paginate.html' %}
</div> </div>
</div> </div>
</div> </div>

View File

@ -194,10 +194,9 @@ def group_management_user(request):
def group_update(request, pk): def group_update(request, pk):
group = Group.objects.get(id=pk) group = Group.objects.get(id=pk)
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
group_status_choices_list = [] group_status_choices_list = []
for g in GROUP_STATUS_CHOICES: for g in range(2):
group_status_choices_list.append(list(g)[1]) group_status_choices_list.append(g)
group_type = Group_type.objects.all() group_type = Group_type.objects.all()
group_admin = Group_admin.objects.filter(group_id=pk) group_admin = Group_admin.objects.filter(group_id=pk)
print(pk) print(pk)
@ -278,10 +277,9 @@ def group_update(request, pk):
def group_create(request): def group_create(request):
user = request.user user = request.user
GROUP_STATUS_CHOICES = Group.GROUP_STATUS_CHOICES
group_status_choices_list = [] group_status_choices_list = []
for g in GROUP_STATUS_CHOICES: for g in range(2):
group_status_choices_list.append(list(g)[1]) group_status_choices_list.append(g)
group_type = Group_type.objects.all() group_type = Group_type.objects.all()
if request.method == 'POST': if request.method == 'POST':
name = request.POST.get('name') name = request.POST.get('name')
@ -541,10 +539,9 @@ def newmedia_management_create_menu(request):
def newmedia_management_create_weixin(request): def newmedia_management_create_weixin(request):
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
weixin_status_choices_list = [] weixin_status_choices_list = []
for w in WEIXIN_STATUS_CHOICES: for w in range(2):
weixin_status_choices_list.append(list(w)[1]) weixin_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name') organization = Organization.objects.all().order_by('-name')
if request.method == 'POST': if request.method == 'POST':
code = request.POST.get('code') code = request.POST.get('code')
@ -580,10 +577,9 @@ def newmedia_management_create_weixin(request):
def newmedia_management_create_weibo(request): def newmedia_management_create_weibo(request):
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
weibo_status_choices_list = [] weibo_status_choices_list = []
for w in WEIBO_STATUS_CHOICES: for w in range(2):
weibo_status_choices_list.append(list(w)[1]) weibo_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name') organization = Organization.objects.all().order_by('-name')
if request.method == 'POST': if request.method == 'POST':
code = request.POST.get('code') code = request.POST.get('code')
@ -620,10 +616,9 @@ def newmedia_management_create_weibo(request):
def newmedia_management_create_toutiao(request): def newmedia_management_create_toutiao(request):
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
toutiao_status_choices_list = [] toutiao_status_choices_list = []
for w in TOUTIAO_STATUS_CHOICES: for w in range(2):
toutiao_status_choices_list.append(list(w)[1]) toutiao_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name') organization = Organization.objects.all().order_by('-name')
if request.method == 'POST': if request.method == 'POST':
code = request.POST.get('code') 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}) {'toutiao_status_choices_list': toutiao_status_choices_list, "organization": organization})
def newmedia_management_create_douyin(request): def newmedia_management_create_douyin(request):
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
douyin_status_choices_list = [] douyin_status_choices_list = []
for w in DOUYIN_STATUS_CHOICES: for w in range(2):
douyin_status_choices_list.append(list(w)[1]) douyin_status_choices_list.append(w)
print(douyin_status_choices_list) print(douyin_status_choices_list)
organization = Organization.objects.all().order_by('-name') organization = Organization.objects.all().order_by('-name')
if request.method == 'POST': if request.method == 'POST':
@ -699,10 +693,9 @@ def newmedia_management_create_douyin(request):
{'douyin_status_choices_list': douyin_status_choices_list, "organization": organization}) {'douyin_status_choices_list': douyin_status_choices_list, "organization": organization})
def newmedia_management_create_qita(request): def newmedia_management_create_qita(request):
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
qita_status_choices_list = [] qita_status_choices_list = []
for w in QITA_STATUS_CHOICES: for w in range(2):
qita_status_choices_list.append(list(w)[1]) qita_status_choices_list.append(w)
organization = Organization.objects.all().order_by('-name') organization = Organization.objects.all().order_by('-name')
if request.method == 'POST': if request.method == 'POST':
type = request.POST.get('type') type = request.POST.get('type')
@ -774,8 +767,32 @@ def newmedia_management_edit_weixin(request):
o['weixinid'] = w.weixinid o['weixinid'] = w.weixinid
o['organization'] = w.organization.name o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str( if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village) 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 o['status'] = w.status
res.append(o) res.append(o)
return render(request, 'management/newmedia-management-edit-weixin.html', {'weixin': weixin, 'res': res}) 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['weiboid'] = w.weiboid
o['organization'] = w.organization.name o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str( if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village) 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 o['status'] = w.status
res.append(o) res.append(o)
return render(request, 'management/newmedia-management-edit-weibo.html', {'weibo': weibo, 'res': res}) 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['toutiaoid'] = w.toutiaoid
o['organization'] = w.organization.name o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str( if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village) 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 o['status'] = w.status
res.append(o) res.append(o)
return render(request, 'management/newmedia-management-edit-toutiao.html', {'toutiao': toutiao, 'res': res}) 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['douyinid'] = w.douyinid
o['organization'] = w.organization.name o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str( 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:
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village) 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 o['status'] = w.status
res.append(o) res.append(o)
return render(request, 'management/newmedia-management-edit-douyin.html', {'douyin': douyin, 'res': res}) 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['qitaid'] = w.qitaid
o['organization'] = w.organization.name o['organization'] = w.organization.name
o['organization_type'] = w.organization.organizationtype.organizationtype o['organization_type'] = w.organization.organizationtype.organizationtype
o['administrativedivision'] = str(w.organization.province) + '-' + str(w.organization.cities) + '-' + str( if len(w.organization.province) > 0 and len(w.organization.cities) > 0 and len(
w.organization.district) + '-' + str(w.organization.town) + '-' + str(w.organization.village) 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 o['status'] = w.status
res.append(o) res.append(o)
return render(request, 'management/newmedia-management-edit-qita.html', {'qita': qita, 'res': res}) return render(request, 'management/newmedia-management-edit-qita.html', {'qita': qita, 'res': res})
def newmedia_management_update_weixin(request, pk): def newmedia_management_update_weixin(request, pk):
WEIXIN_STATUS_CHOICES = Weixin.NEWMEDIA_STATUS_CHOICES
weixin_status_choices_list = [] weixin_status_choices_list = []
for w in WEIXIN_STATUS_CHOICES: for w in range(2):
weixin_status_choices_list.append(list(w)[1]) weixin_status_choices_list.append(w)
weixin = Weixin.objects.get(id=pk) weixin = Weixin.objects.get(id=pk)
organization = Organization.objects.all() organization = Organization.objects.all()
if request.method == 'POST': if request.method == 'POST':
@ -977,10 +1083,9 @@ def newmedia_management_update_weixin(request, pk):
def newmedia_management_update_weibo(request, pk): def newmedia_management_update_weibo(request, pk):
WEIBO_STATUS_CHOICES = Weibo.NEWMEDIA_STATUS_CHOICES
weibo_status_choices_list = [] weibo_status_choices_list = []
for w in WEIBO_STATUS_CHOICES: for w in range(2):
weibo_status_choices_list.append(list(w)[1]) weibo_status_choices_list.append(w)
weibo = Weibo.objects.get(id=pk) weibo = Weibo.objects.get(id=pk)
organization = Organization.objects.all() organization = Organization.objects.all()
if request.method == 'POST': if request.method == 'POST':
@ -1020,10 +1125,9 @@ def newmedia_management_update_weibo(request, pk):
def newmedia_management_update_toutiao(request, pk): def newmedia_management_update_toutiao(request, pk):
TOUTIAO_STATUS_CHOICES = Toutiao.NEWMEDIA_STATUS_CHOICES
toutiao_status_choices_list = [] toutiao_status_choices_list = []
for w in TOUTIAO_STATUS_CHOICES: for w in range(2):
toutiao_status_choices_list.append(list(w)[1]) toutiao_status_choices_list.append(w)
toutiao = Toutiao.objects.get(id=pk) toutiao = Toutiao.objects.get(id=pk)
organization = Organization.objects.all() organization = Organization.objects.all()
if request.method == 'POST': if request.method == 'POST':
@ -1062,10 +1166,9 @@ def newmedia_management_update_toutiao(request, pk):
'toutiao_status_choices_list': toutiao_status_choices_list}) 'toutiao_status_choices_list': toutiao_status_choices_list})
def newmedia_management_update_douyin(request, pk): def newmedia_management_update_douyin(request, pk):
DOUYIN_STATUS_CHOICES = Douyin.NEWMEDIA_STATUS_CHOICES
douyin_status_choices_list = [] douyin_status_choices_list = []
for w in DOUYIN_STATUS_CHOICES: for w in range(2):
douyin_status_choices_list.append(list(w)[1]) douyin_status_choices_list.append(w)
douyin = Douyin.objects.get(id=pk) douyin = Douyin.objects.get(id=pk)
organization = Organization.objects.all() organization = Organization.objects.all()
if request.method == 'POST': if request.method == 'POST':
@ -1103,10 +1206,9 @@ def newmedia_management_update_douyin(request, pk):
{'douyin': douyin, 'organization': organization, {'douyin': douyin, 'organization': organization,
'douyin_status_choices_list': douyin_status_choices_list}) 'douyin_status_choices_list': douyin_status_choices_list})
def newmedia_management_update_qita(request, pk): def newmedia_management_update_qita(request, pk):
QITA_STATUS_CHOICES = Qita.NEWMEDIA_STATUS_CHOICES
qita_status_choices_list = [] qita_status_choices_list = []
for w in QITA_STATUS_CHOICES: for w in range(2):
qita_status_choices_list.append(list(w)[1]) qita_status_choices_list.append(w)
organization = Organization.objects.all() organization = Organization.objects.all()
qita = Qita.objects.get(id=pk) qita = Qita.objects.get(id=pk)
if request.method == 'POST': if request.method == 'POST':
@ -1180,6 +1282,14 @@ def newmedia_management_delete_qita(request, pk):
def new_management(request): def new_management(request):
news = News.objects.all() 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 = [] news_list = []
for n in news: for n in news:
o = dict() o = dict()
@ -1202,7 +1312,7 @@ def new_management(request):
elif n.type == '6': elif n.type == '6':
o['type'] = '重点新闻' o['type'] = '重点新闻'
news_list.append(o) 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): def news_management_create(request):
if request.method == 'POST': if request.method == 'POST':
type = request.POST.get('type') type = request.POST.get('type')

View File

@ -42,8 +42,8 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">微信热点</div> <div class="panel-heading">微信热点</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px"> <div class="col-md-8" style="margin-top: 10px">
<div class="col-lg-3"> <div class="col-md-8">
公众号 公众号
<select id="basicSelect"> <select id="basicSelect">
<option value="qita_all">全部</option> <option value="qita_all">全部</option>
@ -52,7 +52,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-lg-3"> <div class="col-md-4">
分组 分组
<select id="basicSelect"> <select id="basicSelect">
<option value="group_all">全部</option> <option value="group_all">全部</option>
@ -62,7 +62,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-lg-6"> <div class="col-md-4">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search for..."> <input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn"> <span class="input-group-btn">

View File

@ -39,8 +39,8 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">微信热点</div> <div class="panel-heading">微信热点</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px"> <div class="col-md-8" style="margin-top: 10px">
<div class="col-lg-3"> <div class="col-md-8">
公众号 公众号
<select id="basicSelect"> <select id="basicSelect">
<option value="toutiao_all">全部</option> <option value="toutiao_all">全部</option>
@ -49,7 +49,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-lg-3"> <div class="col-md-4">
分组 分组
<select id="basicSelect"> <select id="basicSelect">
<option value="group_all">全部</option> <option value="group_all">全部</option>
@ -59,7 +59,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-lg-6"> <div class="col-md-4">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search for..."> <input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn"> <span class="input-group-btn">

View File

@ -39,8 +39,8 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">微信热点</div> <div class="panel-heading">微信热点</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px"> <div class="col-md-8" style="margin-top: 10px">
<div class="col-lg-3"> <div class="col-md-8">
公众号 公众号
<select id="basicSelect"> <select id="basicSelect">
<option value="weibo_all">全部</option> <option value="weibo_all">全部</option>
@ -49,7 +49,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-lg-3"> <div class="col-md-4">
分组 分组
<select id="basicSelect"> <select id="basicSelect">
<option value="group_all">全部</option> <option value="group_all">全部</option>
@ -59,7 +59,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-lg-6"> <div class="col-md-4">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search for..."> <input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn"> <span class="input-group-btn">

View File

@ -39,8 +39,8 @@
<div class="panel panel-default"> <div class="panel panel-default">
<div class="panel-heading">微信热点</div> <div class="panel-heading">微信热点</div>
<div class="panel-body"> <div class="panel-body">
<div class="col-lg-6" style="margin-top: 10px"> <div class="col-md-8" style="margin-top: 10px">
<div class="col-lg-3"> <div class="col-md-8">
公众号 公众号
<select id="basicSelect"> <select id="basicSelect">
<option value="weixin_all">全部</option> <option value="weixin_all">全部</option>
@ -49,7 +49,7 @@
{% endfor %} {% endfor %}
</select> </select>
</div> </div>
<div class="col-lg-3"> <div class="col-md-4">
分组 分组
<select id="basicSelect"> <select id="basicSelect">
<option value="group_all">全部</option> <option value="group_all">全部</option>
@ -59,7 +59,7 @@
</select> </select>
</div> </div>
</div> </div>
<div class="col-lg-6"> <div class="col-md-4">
<div class="input-group"> <div class="input-group">
<input type="text" class="form-control" placeholder="Search for..."> <input type="text" class="form-control" placeholder="Search for...">
<span class="input-group-btn"> <span class="input-group-btn">