#修改
This commit is contained in:
parent
b4cd130266
commit
c81516a06f
|
@ -12,300 +12,300 @@
|
|||
</li>
|
||||
<li class="">
|
||||
<a href="#" data-toggle="dropdown" class="toggle">
|
||||
<i class="fa fa-envelope"></i>
|
||||
<span class="badge badge-primary">0</span>
|
||||
{# <i class="fa fa-envelope"></i>#}
|
||||
{# <span class="badge badge-primary">0</span>#}
|
||||
</a>
|
||||
<ul class="dropdown-menu messages animated fadeIn">
|
||||
|
||||
<li class="list">
|
||||
|
||||
<ul class="dropdown-menu-list list-unstyled ps-scrollbar">
|
||||
<li class="unread status-available">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-1.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Clarine Vassar</strong>
|
||||
<span class="time small">- 15 mins ago</span>
|
||||
<span class="profile-status available pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-away">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-2.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Brooks Latshaw</strong>
|
||||
<span class="time small">- 45 mins ago</span>
|
||||
<span class="profile-status away pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-busy">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-3.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Clementina Brodeur</strong>
|
||||
<span class="time small">- 1 hour ago</span>
|
||||
<span class="profile-status busy pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-offline">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-4.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Carri Busey</strong>
|
||||
<span class="time small">- 5 hours ago</span>
|
||||
<span class="profile-status offline pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-offline">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-5.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Melissa Dock</strong>
|
||||
<span class="time small">- Yesterday</span>
|
||||
<span class="profile-status offline pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-available">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-1.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Verdell Rea</strong>
|
||||
<span class="time small">- 14th Mar</span>
|
||||
<span class="profile-status available pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-busy">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-2.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Linette Lheureux</strong>
|
||||
<span class="time small">- 16th Mar</span>
|
||||
<span class="profile-status busy pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" status-away">
|
||||
<a href="javascript:;">
|
||||
<div class="user-img">
|
||||
<img src="{% static 'dashboard/image/avatar-3.png' %}" alt="user-image"
|
||||
class="img-circle img-inline">
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Araceli Boatright</strong>
|
||||
<span class="time small">- 16th Mar</span>
|
||||
<span class="profile-status away pull-right"></span>
|
||||
</span>
|
||||
<span class="desc small">
|
||||
Sometimes it takes a lifetime to win a battle.
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="external">
|
||||
<a href="javascript:;">
|
||||
<span>Read All Messages</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
{# <ul class="dropdown-menu messages animated fadeIn">#}
|
||||
{##}
|
||||
{# <li class="list">#}
|
||||
{##}
|
||||
{# <ul class="dropdown-menu-list list-unstyled ps-scrollbar">#}
|
||||
{# <li class="unread status-available">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-1.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Clarine Vassar</strong>#}
|
||||
{# <span class="time small">- 15 mins ago</span>#}
|
||||
{# <span class="profile-status available pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-away">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-2.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Brooks Latshaw</strong>#}
|
||||
{# <span class="time small">- 45 mins ago</span>#}
|
||||
{# <span class="profile-status away pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-busy">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-3.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Clementina Brodeur</strong>#}
|
||||
{# <span class="time small">- 1 hour ago</span>#}
|
||||
{# <span class="profile-status busy pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-offline">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-4.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Carri Busey</strong>#}
|
||||
{# <span class="time small">- 5 hours ago</span>#}
|
||||
{# <span class="profile-status offline pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-offline">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-5.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Melissa Dock</strong>#}
|
||||
{# <span class="time small">- Yesterday</span>#}
|
||||
{# <span class="profile-status offline pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-available">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-1.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Verdell Rea</strong>#}
|
||||
{# <span class="time small">- 14th Mar</span>#}
|
||||
{# <span class="profile-status available pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-busy">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-2.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Linette Lheureux</strong>#}
|
||||
{# <span class="time small">- 16th Mar</span>#}
|
||||
{# <span class="profile-status busy pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" status-away">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="user-img">#}
|
||||
{# <img src="{% static 'dashboard/image/avatar-3.png' %}" alt="user-image"#}
|
||||
{# class="img-circle img-inline">#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Araceli Boatright</strong>#}
|
||||
{# <span class="time small">- 16th Mar</span>#}
|
||||
{# <span class="profile-status away pull-right"></span>#}
|
||||
{# </span>#}
|
||||
{# <span class="desc small">#}
|
||||
{# Sometimes it takes a lifetime to win a battle.#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{##}
|
||||
{# </ul>#}
|
||||
{##}
|
||||
{# </li>#}
|
||||
{##}
|
||||
{# <li class="external">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <span>Read All Messages</span>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
|
||||
</li>
|
||||
<li class="">
|
||||
<a href="#" data-toggle="dropdown" class="toggle">
|
||||
<i class="fa fa-bell"></i>
|
||||
<span class="badge badge-orange">0</span>
|
||||
</a>
|
||||
<ul class="dropdown-menu notifications animated fadeIn">
|
||||
<li class="total">
|
||||
<span class="small">
|
||||
You have <strong>3</strong> new notifications.
|
||||
<a href="javascript:;" class="pull-right">Mark all as Read</a>
|
||||
</span>
|
||||
</li>
|
||||
<li class="list">
|
||||
|
||||
<ul class="dropdown-menu-list list-unstyled ps-scrollbar">
|
||||
<li class="unread available"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Server needs to reboot</strong>
|
||||
<span class="time small">15 mins ago</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class="unread away"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-envelope"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>45 new messages</strong>
|
||||
<span class="time small">45 mins ago</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" busy"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-times"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Server IP Blocked</strong>
|
||||
<span class="time small">1 hour ago</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" offline"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-user"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>10 Orders Shipped</strong>
|
||||
<span class="time small">5 hours ago</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" offline"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-user"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>New Comment on blog</strong>
|
||||
<span class="time small">Yesterday</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" available"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-check"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Great Speed Notify</strong>
|
||||
<span class="time small">14th Mar</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
<li class=" busy"> <!-- available: success, warning, info, error -->
|
||||
<a href="javascript:;">
|
||||
<div class="notice-icon">
|
||||
<i class="fa fa-times"></i>
|
||||
</div>
|
||||
<div>
|
||||
<span class="name">
|
||||
<strong>Team Meeting at 6PM</strong>
|
||||
<span class="time small">16th Mar</span>
|
||||
</span>
|
||||
</div>
|
||||
</a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
|
||||
</li>
|
||||
|
||||
<li class="external">
|
||||
<a href="javascript:;">
|
||||
<span>Read All Notifications</span>
|
||||
</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li class="hidden-sm hidden-xs searchform">
|
||||
<div class="input-group">
|
||||
<span class="input-group-addon input-focus">
|
||||
<i class="fa fa-search"></i>
|
||||
</span>
|
||||
<form action="search-page.html" method="post">
|
||||
<input type="text" class="form-control animated fadeIn" placeholder="Search & Enter">
|
||||
<input type='submit' value="">
|
||||
</form>
|
||||
</div>
|
||||
</li>
|
||||
{# <li class="">#}
|
||||
{# <a href="#" data-toggle="dropdown" class="toggle">#}
|
||||
{# <i class="fa fa-bell"></i>#}
|
||||
{# <span class="badge badge-orange">0</span>#}
|
||||
{# </a>#}
|
||||
{# <ul class="dropdown-menu notifications animated fadeIn">#}
|
||||
{# <li class="total">#}
|
||||
{# <span class="small">#}
|
||||
{# You have <strong>3</strong> new notifications.#}
|
||||
{# <a href="javascript:;" class="pull-right">Mark all as Read</a>#}
|
||||
{# </span>#}
|
||||
{# </li>#}
|
||||
{# <li class="list">#}
|
||||
{##}
|
||||
{# <ul class="dropdown-menu-list list-unstyled ps-scrollbar">#}
|
||||
{# <li class="unread available"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-check"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Server needs to reboot</strong>#}
|
||||
{# <span class="time small">15 mins ago</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class="unread away"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-envelope"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>45 new messages</strong>#}
|
||||
{# <span class="time small">45 mins ago</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" busy"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-times"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Server IP Blocked</strong>#}
|
||||
{# <span class="time small">1 hour ago</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" offline"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-user"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>10 Orders Shipped</strong>#}
|
||||
{# <span class="time small">5 hours ago</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" offline"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-user"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>New Comment on blog</strong>#}
|
||||
{# <span class="time small">Yesterday</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" available"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-check"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Great Speed Notify</strong>#}
|
||||
{# <span class="time small">14th Mar</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# <li class=" busy"> <!-- available: success, warning, info, error -->#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <div class="notice-icon">#}
|
||||
{# <i class="fa fa-times"></i>#}
|
||||
{# </div>#}
|
||||
{# <div>#}
|
||||
{# <span class="name">#}
|
||||
{# <strong>Team Meeting at 6PM</strong>#}
|
||||
{# <span class="time small">16th Mar</span>#}
|
||||
{# </span>#}
|
||||
{# </div>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{##}
|
||||
{# </ul>#}
|
||||
{##}
|
||||
{# </li>#}
|
||||
{##}
|
||||
{# <li class="external">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <span>Read All Notifications</span>#}
|
||||
{# </a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# <li class="hidden-sm hidden-xs searchform">#}
|
||||
{# <div class="input-group">#}
|
||||
{# <span class="input-group-addon input-focus">#}
|
||||
{# <i class="fa fa-search"></i>#}
|
||||
{# </span>#}
|
||||
{# <form action="search-page.html" method="post">#}
|
||||
{# <input type="text" class="form-control animated fadeIn" placeholder="Search & Enter">#}
|
||||
{# <input type='submit' value="">#}
|
||||
{# </form>#}
|
||||
{# </div>#}
|
||||
{# </li>#}
|
||||
</ul>
|
||||
</div>
|
||||
<div class='pull-right'>
|
||||
|
@ -338,9 +338,9 @@
|
|||
</li>
|
||||
<li class="chat-toggle-wrapper">
|
||||
{# <a href="#" data-toggle="chatbar" class="toggle_chat">#}
|
||||
{% for i in user.userprofile_set.all %}
|
||||
<span>{{ i.name }}</span>
|
||||
{% endfor %}
|
||||
{# {% for i in user.userprofile_set.all %}#}
|
||||
{# <span>{{ i.name }}</span>#}
|
||||
{# {% endfor %}#}
|
||||
{# <i class="fa fa-comments"></i>#}
|
||||
{# <span class="badge badge-warning">9</span>#}
|
||||
{# </a>#}
|
||||
|
@ -349,7 +349,7 @@
|
|||
{% else %}
|
||||
<div class='quick-area'>
|
||||
<div class='pull-left'>
|
||||
<ul class="info-menu left-links list-unstyled">
|
||||
<ul class="info-menu left-links list-unstyled" style="margin-left: -30%">
|
||||
<li class="sidebar-toggle-wrap">
|
||||
<a href="{% url 'dashboard-login' %}" style="margin-right: 50px">
|
||||
<i class="glyphicon glyphicon-education">登录</i>
|
||||
|
|
|
@ -1,207 +1,218 @@
|
|||
{% load startswith %}
|
||||
{% with request.resolver_match.url_name as url_name %}
|
||||
<div class="page-sidebar-wrapper" id="main-menu-wrapper" style="min-height: 1000px">
|
||||
<!-- USER INFO - START -->
|
||||
<div class="profile-info row">
|
||||
<div class="page-sidebar-wrapper" id="main-menu-wrapper" style="min-height: 1000px">
|
||||
<!-- USER INFO - START -->
|
||||
<div class="profile-info row">
|
||||
|
||||
<div class="profile-image col-md-4 col-sm-4 col-xs-4">
|
||||
<a href="{% url 'dashboard-index' %}">
|
||||
{% for u in user.userprofile_set.all %}
|
||||
<img src="{{ u.image.url }}" class="img-responsive img-circle">
|
||||
{% endfor %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<div class="profile-details col-md-8 col-sm-8 col-xs-8">
|
||||
|
||||
<h3>
|
||||
{% for u in user.userprofile_set.all %}
|
||||
<a href="#">{{ u.name }}</a>
|
||||
{% endfor %}
|
||||
|
||||
|
||||
<!-- Available statuses: online, idle, busy, away and offline -->
|
||||
<span class="profile-status online"></span>
|
||||
</h3>
|
||||
|
||||
<div class="profile-image col-md-4 col-sm-4 col-xs-4">
|
||||
<a href="{% url 'dashboard-index' %}">
|
||||
{% for u in user.userprofile_set.all %}
|
||||
<img src="{{ u.image.url }}" class="img-responsive img-circle">
|
||||
<p class="profile-title">{{ u.organization }}</p>
|
||||
{% endfor %}
|
||||
</a>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div class="profile-details col-md-8 col-sm-8 col-xs-8">
|
||||
|
||||
<h3>
|
||||
<a href="#">{{ user.username }}</a>
|
||||
|
||||
<!-- Available statuses: online, idle, busy, away and offline -->
|
||||
<span class="profile-status online"></span>
|
||||
</h3>
|
||||
|
||||
{% for u in user.userprofile_set.all %}
|
||||
<p class="profile-title">{{ u.organization }}</p>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
<!-- USER INFO - END -->
|
||||
<!-- USER INFO - END -->
|
||||
|
||||
|
||||
<ul class='wraplist'>
|
||||
<li {% if url_name == 'monitor-new-media-public-opinion-weixin' %} class="open" {% endif %} >
|
||||
<a href="{% url 'monitor-new-media-public-opinion-weixin' %}">
|
||||
<i class="fa fa-th"></i>
|
||||
<span class="title">新媒体舆情</span>
|
||||
</a>
|
||||
</li>
|
||||
{# <li class="open">#}
|
||||
<li {% if url_name == 'monitor-timeliness-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-timeliness-monitoring' %}">
|
||||
<i class="fa fa-map-marker"></i>
|
||||
<span class="title">时效性监测</span>
|
||||
{# <span class="arrow "></span>#}
|
||||
</a>
|
||||
<ul class='wraplist'>
|
||||
<li {% if url_name == 'monitor-new-media-public-opinion-weixin' %} class="open" {% endif %} >
|
||||
<a href="{% url 'monitor-new-media-public-opinion-weixin' %}">
|
||||
<i class="fa fa-th"></i>
|
||||
<span class="title">新媒体舆情</span>
|
||||
</a>
|
||||
</li>
|
||||
{# <li class="open">#}
|
||||
<li {% if url_name == 'monitor-timeliness-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-timeliness-monitoring' %}">
|
||||
<i class="fa fa-map-marker"></i>
|
||||
<span class="title">时效性监测</span>
|
||||
{# <span class="arrow "></span>#}
|
||||
</a>
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">新媒体详情监测</a>#}
|
||||
{# </li>#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">页面详情</a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-error-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-error-monitoring' %}">
|
||||
<i class="fa fa-bar-chart"></i>
|
||||
<span class="title">错别字监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-sensitive-word-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-sensitive-word-monitoring' %}">
|
||||
<i class="fa fa-folder-open"></i>
|
||||
<span class="title">敏感词监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-comment-on-interactive-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-comment-on-interactive-monitoring' %}">
|
||||
<i class="fa fa-th"></i>
|
||||
<span class="title">评论互动监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-monitoring-report' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-monitoring-report' %}">
|
||||
<i class="fa fa-suitcase"></i>
|
||||
<span class="title">监测报告</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'group' %}class="open" {% endif %}>
|
||||
<a href="{% url 'group-management-management-init' %}">
|
||||
<i class="fa fa-sliders"></i>
|
||||
<span class="title">矩阵管理</span>
|
||||
<span class="arrow "></span>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'group-management-create' %} class="active" {% endif %}
|
||||
href="{% url 'group-management-create' %}">新建矩阵</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'group-management-management-init' %} class="active" {% endif %}
|
||||
href="{% url 'group-management-management-init' %}">查看矩阵</a>
|
||||
</li>
|
||||
{# <li>#}
|
||||
{# <a class="" href="">搜索添加单位</a>#}
|
||||
{# </li>#}
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'newmedia' %}class="open" {% endif %}>
|
||||
<a href="{% url 'newmedia-management-edit-menu' %}">
|
||||
<i class="fa fa-gift"></i>
|
||||
<span class="title">新媒体管理</span>
|
||||
<span class="arrow "></span>
|
||||
{# <span class="arrow "></span><span class="label label-orange">NEW</span>#}
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'newmedia-management-create-menu' %} class="active" {% endif %}
|
||||
href="{% url 'newmedia-management-create-menu' %}">新建新媒体</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'newmedia-management-edit-menu' %} class="active" {% endif %}
|
||||
href="{% url 'newmedia-management-edit-menu' %}">查看新媒体</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'organization' %}class="open" {% endif %}>
|
||||
<a href="{% url 'organization-management-management' %}">
|
||||
<i class="fa fa-envelope"></i>
|
||||
<span class="title">主体单位管理</span>
|
||||
<span class="arrow "></span>
|
||||
{# <span class="arrow "></span><span class="label label-orange">0</span>#}
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'organization-management-create' %} class="active" {% endif %}
|
||||
href="{% url 'organization-management-create' %}">新建单位</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'organization-management-management' %} class="active" {% endif %}
|
||||
href="{% url 'organization-management-management' %}">查看单位</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'news' %}class="open" {% endif %}>
|
||||
<a href="{% url 'news-management' %}">
|
||||
<i class="fa fa-sliders"></i>
|
||||
<span class="title">新闻管理</span>
|
||||
<span class="arrow "></span>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'news-management-create' %} class="active" {% endif %}
|
||||
href="{% url 'news-management-create' %}">发布新闻</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'news-management' %} class="active" {% endif %}
|
||||
href="{% url 'news-management' %}">查看新闻</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name == 'user-management-management' %} class="open" {% endif %}>
|
||||
<a href="{% url 'user-management-management' %}">
|
||||
<i class="fa fa-columns"></i>
|
||||
<span class="title">用户管理</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'user-management-update' %} class="open" {% endif %}>
|
||||
<a href="{% url 'user-management-update' user.id %}">
|
||||
<i class="fa fa-dashboard"></i>
|
||||
<span class="title">系统设置</span>
|
||||
</a>
|
||||
</li>
|
||||
{# <li class="">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <i class="fa fa-columns"></i>#}
|
||||
{# <span class="title">工作首页</span>#}
|
||||
{# <span class="arrow "></span>#}
|
||||
{# </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">新媒体详情监测</a>#}
|
||||
{# <a class="" href="">工作列表</a>#}
|
||||
{# </li>#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">页面详情</a>#}
|
||||
{# <a class="" href="">考勤管理</a>#}
|
||||
{# </li>#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">新闻管理</a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-error-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-error-monitoring' %}">
|
||||
<i class="fa fa-bar-chart"></i>
|
||||
<span class="title">错别字监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-sensitive-word-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-sensitive-word-monitoring' %}">
|
||||
<i class="fa fa-folder-open"></i>
|
||||
<span class="title">敏感词监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-comment-on-interactive-monitoring' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-comment-on-interactive-monitoring' %}">
|
||||
<i class="fa fa-th"></i>
|
||||
<span class="title">评论互动监测</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'monitor-monitoring-report' %} class="open" {% endif %}>
|
||||
<a href="{% url 'monitor-monitoring-report' %}">
|
||||
<i class="fa fa-suitcase"></i>
|
||||
<span class="title">监测报告</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'group' %}class="open" {% endif %}>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-sliders"></i>
|
||||
<span class="title">矩阵管理</span>
|
||||
<span class="arrow "></span>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'group-management-create' %} class="active" {% endif %} href="{% url 'group-management-create' %}">新建矩阵</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'group-management-management-init' %} class="active" {% endif %} href="{% url 'group-management-management-init' %}">编辑矩阵</a>
|
||||
</li>
|
||||
{# <li>#}
|
||||
{# <a class="" href="">搜索添加单位</a>#}
|
||||
{# </li>#}
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'newmedia' %}class="open" {% endif %}>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-gift"></i>
|
||||
<span class="title">新媒体管理</span>
|
||||
<span class="arrow "></span>
|
||||
{# <span class="arrow "></span><span class="label label-orange">NEW</span>#}
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'newmedia-management-create-menu' %} class="active" {% endif %} href="{% url 'newmedia-management-create-menu' %}">新建新媒体</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'newmedia-management-edit-menu' %} class="active" {% endif %} href="{% url 'newmedia-management-edit-menu' %}">编辑新媒体</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'organization' %}class="open" {% endif %}>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-envelope"></i>
|
||||
<span class="title">主体单位管理</span>
|
||||
<span class="arrow "></span>
|
||||
{# <span class="arrow "></span><span class="label label-orange">0</span>#}
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'organization-management-create' %} class="active" {% endif %} href="{% url 'organization-management-create' %}">新建单位</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'organization-management-management' %} class="active" {% endif %} href="{% url 'organization-management-management' %}">编辑单位</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name|startswith:'news' %}class="open" {% endif %}>
|
||||
<a href="javascript:;">
|
||||
<i class="fa fa-sliders"></i>
|
||||
<span class="title">新闻管理</span>
|
||||
<span class="arrow "></span>
|
||||
</a>
|
||||
<ul class="sub-menu">
|
||||
<li>
|
||||
<a {% if url_name == 'news-management-create' %} class="active" {% endif %} href="{% url 'news-management-create' %}">发布新闻</a>
|
||||
</li>
|
||||
<li>
|
||||
<a {% if url_name == 'news-management' %} class="active" {% endif %} href="{% url 'news-management' %}">新闻管理</a>
|
||||
</li>
|
||||
</ul>
|
||||
</li>
|
||||
<li {% if url_name == 'user-management-management' %} class="open" {% endif %}>
|
||||
<a href="{% url 'user-management-management' %}">
|
||||
<i class="fa fa-columns"></i>
|
||||
<span class="title">用户管理</span>
|
||||
</a>
|
||||
</li>
|
||||
<li {% if url_name == 'user-management-update' %} class="open" {% endif %}>
|
||||
<a href="{% url 'user-management-update' user.id %}">
|
||||
<i class="fa fa-dashboard"></i>
|
||||
<span class="title">系统设置</span>
|
||||
</a>
|
||||
</li>
|
||||
{# <li class="">#}
|
||||
{# <a href="javascript:;">#}
|
||||
{# <i class="fa fa-columns"></i>#}
|
||||
{# <span class="title">工作首页</span>#}
|
||||
{# <span class="arrow "></span>#}
|
||||
{# </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">工作列表</a>#}
|
||||
{# </li>#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">考勤管理</a>#}
|
||||
{# </li>#}
|
||||
{# <li>#}
|
||||
{# <a class="" href="">新闻管理</a>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# </li>#}
|
||||
|
||||
|
||||
{# <li class=""><a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Menu Levels</span>#}
|
||||
{# <span class="arrow "></span> </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 1.1</span> </a></li>#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 1.2</span> <span#}
|
||||
{# class="arrow "></span> </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 2.1</span> </a></li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 2.2</span> <span#}
|
||||
{# class="arrow "></span></a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 3.1</span> <span#}
|
||||
{# class="arrow "></span></a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 4.1</span>#}
|
||||
{# </a></li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 4.2</span>#}
|
||||
{# </a></li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 3.2</span> </a></li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# <li class=""><a href="javascript:;"> <i class="fa fa-folder-open"></i> <span class="title">Menu Levels</span>#}
|
||||
{# <span class="arrow "></span> </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 1.1</span> </a></li>#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 1.2</span> <span#}
|
||||
{# class="arrow "></span> </a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 2.1</span> </a></li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 2.2</span> <span#}
|
||||
{# class="arrow "></span></a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="javascript:;"> <span class="title">Level 3.1</span> <span#}
|
||||
{# class="arrow "></span></a>#}
|
||||
{# <ul class="sub-menu">#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 4.1</span>#}
|
||||
{# </a></li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 4.2</span>#}
|
||||
{# </a></li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# <li><a href="ujavascript:;"> <span class="title">Level 3.2</span> </a></li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
{# </ul>#}
|
||||
{# </li>#}
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
</ul>
|
||||
</div>
|
||||
{% endwith %}
|
|
@ -3,7 +3,9 @@ import json
|
|||
import http.client
|
||||
import random
|
||||
|
||||
from django.contrib.auth.decorators import login_required
|
||||
from django.contrib.auth.hashers import make_password
|
||||
from django.core.paginator import Paginator, PageNotAnInteger, EmptyPage
|
||||
from django.utils import timezone
|
||||
import time
|
||||
from urllib import parse
|
||||
|
@ -419,3 +421,26 @@ def import_user(request):
|
|||
except:
|
||||
print(phone)
|
||||
return HttpResponse('ok')
|
||||
@login_required
|
||||
def user_search_by_keyword(request):
|
||||
keytype = request.POST.get('keytype')
|
||||
keyword = request.POST.get('ketword')
|
||||
userprofile = None
|
||||
if keytype == '1':
|
||||
userprofile = Userprofile.objects.filter(name__contains=keyword)
|
||||
elif keytype == '2':
|
||||
userprofile = Userprofile.objects.filter(organization__name__contains=keyword)
|
||||
paginator = Paginator(userprofile, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
try:
|
||||
userprofile = paginator.page(page)
|
||||
except PageNotAnInteger:
|
||||
userprofile = paginator.page(1)
|
||||
except EmptyPage:
|
||||
userprofile = paginator.page(paginator.num_pages)
|
||||
for u in userprofile:
|
||||
o = dict()
|
||||
o['id'] = str(u.id)
|
||||
o['name'] = u.name
|
||||
o['image'] = u.image.url
|
||||
|
||||
|
|
|
@ -15,84 +15,94 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
<!-- START CONTAINER -->
|
||||
<div class="page-container row-fluid">
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<div class="container">
|
||||
<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-danger 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="panel-heading" style="margin-top: 100px">
|
||||
<h3 style="text-align: center;">添加新闻</h3>
|
||||
</div>
|
||||
|
||||
|
||||
<form action="{% url 'news-management-create' %}" method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻标题</label>
|
||||
<input type="text" class="form-control" id="title" placeholder="请填写新闻标题"
|
||||
name="title">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻分类</label>
|
||||
<select class="form-control" name="type">
|
||||
{% for t in type %}
|
||||
<option value="{{ t.choices }}">{{ t.choices }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="title">新闻发布者</label>
|
||||
<input type="text" class="form-control" id="author" placeholder="请填写新闻作者"
|
||||
name="author" value="系统管理员">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="date">时间</label>
|
||||
<input type="date" class="form-control" id="source"
|
||||
name="date">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="source">来源</label>
|
||||
<input type="text" class="form-control" id="source"
|
||||
name="source">
|
||||
</div>
|
||||
<div class="form-group col-md-12" >
|
||||
<label class="form-label" for="image">缩略图
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
<div class="alert alert-danger 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="panel-heading" style="margin-top: 100px">
|
||||
<h3 style="text-align: center;">添加新闻</h3>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label for="country">正文</label>
|
||||
|
||||
<div>
|
||||
<textarea id="summernote" name="content" class="input-block-level"></textarea>
|
||||
<form action="{% url 'news-management-create' %}" method="post"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻标题</label>
|
||||
<input type="text" class="form-control" id="title" placeholder="请填写新闻标题"
|
||||
name="title">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻分类</label>
|
||||
<select class="form-control" name="type">
|
||||
{% for t in type %}
|
||||
<option value="{{ t.choices }}">{{ t.choices }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="title">新闻发布者</label>
|
||||
<input type="text" class="form-control" id="author" placeholder="请填写新闻作者"
|
||||
name="author" value="系统管理员">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="date">时间</label>
|
||||
<input type="date" class="form-control" id="source"
|
||||
name="date">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="source">来源</label>
|
||||
<input type="text" class="form-control" id="source"
|
||||
name="source">
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="image">缩略图
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;text-align: center;padding-bottom: 20px">
|
||||
<button type="submit" class="btn btn-primary ">发布新闻</button>
|
||||
<div class="row col-md-12">
|
||||
<label for="country">正文</label>
|
||||
|
||||
<div>
|
||||
<textarea id="summernote" name="content" class="input-block-level"></textarea>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;text-align: center;padding-bottom: 20px">
|
||||
<button type="submit" class="btn btn-primary ">发布新闻</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</form>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
|
|
@ -15,102 +15,114 @@
|
|||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<div class="page-sidebar ">
|
||||
{% include 'dashboard/base/left.html' %}
|
||||
</div>
|
||||
<div class="container">
|
||||
<body class=" ">
|
||||
<!-- START TOPBAR -->
|
||||
|
||||
{% if messages %}
|
||||
|
||||
<div class="alert alert-danger 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="panel-heading" style="margin-top: 100px">
|
||||
<h3 style="text-align: center;">编辑新闻</h3>
|
||||
<!-- 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;'>
|
||||
|
||||
|
||||
<form action="{% url 'news-management-update' news.id %}" method="post" enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻标题</label>
|
||||
<input type="text" class="form-control" id="title" placeholder="请填写新闻标题"
|
||||
name="title" value="{{ news.title }}">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻分类</label>
|
||||
<select class="form-control" name="type">
|
||||
{% if news.type == '0' %}
|
||||
<option value="政策依据">政策依据</option>
|
||||
{% elif news.type == '1' %}
|
||||
<option value="基层动态">基层动态</option>
|
||||
{% elif news.type == '2' %}
|
||||
<option value="外省动态">外省动态</option>
|
||||
{% elif news.type == '3' %}
|
||||
<option value="监测通报">监测通报</option>
|
||||
{% elif news.type == '4' %}
|
||||
<option value="舆情热点">舆情热点</option>
|
||||
{% elif news.type == '5' %}
|
||||
<option value="通知">通知</option>
|
||||
{% elif news.type == '6' %}
|
||||
<option value="重点新闻">重点新闻</option>
|
||||
{% endif %}
|
||||
{% for t in type %}
|
||||
<option value="{{ t.choices }}">{{ t.choices }}</option>
|
||||
{% if messages %}
|
||||
|
||||
<div class="alert alert-danger 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 %}
|
||||
</select>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="panel-heading" style="margin-top: 100px">
|
||||
<h3 style="text-align: center;">编辑新闻</h3>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="title">新闻发布者</label>
|
||||
<input type="text" class="form-control" id="author" placeholder="请填写新闻作者"
|
||||
name="author" value="{{ news.author }}">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="date">时间:</label>{{ news.date }}
|
||||
<input type="date" class="form-control" id="source"
|
||||
name="date">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="source">来源</label>
|
||||
<input type="text" class="form-control" id="source"
|
||||
name="source" value="{{ news.source }}">
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="image">缩略图
|
||||
{% if news.image %}
|
||||
<img src="{{ news.image.url }}">
|
||||
{% endif %}
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
|
||||
|
||||
<form action="{% url 'news-management-update' news.id %}" method="post"
|
||||
enctype="multipart/form-data">{% csrf_token %}
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻标题</label>
|
||||
<input type="text" class="form-control" id="title" placeholder="请填写新闻标题"
|
||||
name="title" value="{{ news.title }}">
|
||||
</div>
|
||||
<div class="form-group col-md-6">
|
||||
<label for="title">新闻分类</label>
|
||||
<select class="form-control" name="type">
|
||||
{% if news.type == '0' %}
|
||||
<option value="政策依据">政策依据</option>
|
||||
{% elif news.type == '1' %}
|
||||
<option value="基层动态">基层动态</option>
|
||||
{% elif news.type == '2' %}
|
||||
<option value="外省动态">外省动态</option>
|
||||
{% elif news.type == '3' %}
|
||||
<option value="监测通报">监测通报</option>
|
||||
{% elif news.type == '4' %}
|
||||
<option value="舆情热点">舆情热点</option>
|
||||
{% elif news.type == '5' %}
|
||||
<option value="通知">通知</option>
|
||||
{% elif news.type == '6' %}
|
||||
<option value="重点新闻">重点新闻</option>
|
||||
{% endif %}
|
||||
{% for t in type %}
|
||||
<option value="{{ t.choices }}">{{ t.choices }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="panel-body col-md-12">
|
||||
<div class="form-group col-md-4">
|
||||
<label for="title">新闻发布者</label>
|
||||
<input type="text" class="form-control" id="author" placeholder="请填写新闻作者"
|
||||
name="author" value="{{ news.author }}">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="date">时间:</label>{{ news.date }}
|
||||
<input type="date" class="form-control" id="source"
|
||||
name="date">
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label for="source">来源</label>
|
||||
<input type="text" class="form-control" id="source"
|
||||
name="source" value="{{ news.source }}">
|
||||
</div>
|
||||
<div class="form-group col-md-12">
|
||||
<label class="form-label" for="image">缩略图
|
||||
{% if news.image %}
|
||||
<img src="{{ news.image.url }}">
|
||||
{% endif %}
|
||||
<div class="controls">
|
||||
<input type="file" name="image">
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<label for="country">正文</label>
|
||||
<div class="row col-md-12" >
|
||||
<label for="country">正文</label>
|
||||
|
||||
<div>
|
||||
<textarea id="summernote" name="content" class="input-block-level">{{ news.content }}</textarea>
|
||||
</div>
|
||||
<div>
|
||||
<textarea id="summernote" name="content"
|
||||
class="input-block-level">{{ news.content }}</textarea>
|
||||
</div>
|
||||
|
||||
<div style="margin-top: 20px;text-align: center;padding-bottom: 20px">
|
||||
<button type="submit" class="btn btn-primary ">提交修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
<div style="margin-top: 20px;text-align: center;padding-bottom: 20px">
|
||||
<button type="submit" class="btn btn-primary ">提交修改</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</section>
|
||||
</section>
|
||||
</div>
|
||||
</body>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
|
|
@ -91,16 +91,16 @@
|
|||
</select>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label class="form-label" for="level">权限</label>
|
||||
<div class="controls">
|
||||
<select class="form-control" name="level">
|
||||
{% for l in level %}
|
||||
<option value="{{ l.id }}">{{ l.name }}</option>
|
||||
{% endfor %}
|
||||
</select>
|
||||
</div>
|
||||
</div>
|
||||
{# <div class="form-group">#}
|
||||
{# <label class="form-label" for="level">权限</label>#}
|
||||
{# <div class="controls">#}
|
||||
{# <select class="form-control" name="level">#}
|
||||
{# {% for l in level %}#}
|
||||
{# <option value="{{ l.id }}">{{ l.name }}</option>#}
|
||||
{# {% endfor %}#}
|
||||
{# </select>#}
|
||||
{# </div>#}
|
||||
{# </div>#}
|
||||
<button type="submit" class="btn btn-success" style="margin-top: 50px">点击新建
|
||||
</button>
|
||||
</form>
|
||||
|
|
|
@ -28,7 +28,7 @@
|
|||
<select class="form-control" name="keytype">
|
||||
<option value="1">姓名</option>
|
||||
<option value="2">单位</option>
|
||||
<option value="3">行政区划</option>
|
||||
{# <option value="3">行政区划</option>#}
|
||||
</select>
|
||||
</div>
|
||||
<div class="col-lg-6 title">
|
||||
|
|
|
@ -31,6 +31,8 @@ def user_management(request):
|
|||
userpaginator = User.objects.filter(userprofile__organization__province=province,
|
||||
userprofile__organization__cities=cities,
|
||||
userprofile__organization__district=district).order_by('-date_joined')
|
||||
elif level == 9:
|
||||
userpaginator = User.objects.all().order_by('-date_joined')
|
||||
userallinfo = []
|
||||
if userpaginator is not None:
|
||||
paginator = Paginator(userpaginator, 6)
|
||||
|
@ -573,6 +575,8 @@ def organization_management(request):
|
|||
elif level == 3:
|
||||
organization = Organization.objects.filter(province=province, cities=cities, district=district).order_by(
|
||||
'-created')
|
||||
elif level == 9:
|
||||
organization = Organization.objects.all().order_by('-created')
|
||||
if organization is not None:
|
||||
paginator = Paginator(organization, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
@ -689,17 +693,17 @@ def organization_update(request, pk):
|
|||
|
||||
def organization_create(request):
|
||||
user = request.user
|
||||
l = Userprofile.objects.get(user_id=user.id).organization.level.level
|
||||
if user.is_superuser:
|
||||
level = Level.objects.filter(level__in=[1, 2, 3, 5, 0])
|
||||
elif l == '1':
|
||||
level = Level.objects.filter(level__in=[2, 3, 5, 0])
|
||||
elif l == '2':
|
||||
level = Level.objects.filter(level__in=[3, 5, 0])
|
||||
elif l == '3':
|
||||
level = Level.objects.filter(level__in=[5, 0])
|
||||
else:
|
||||
level = Level.objects.filter(level__in=[0])
|
||||
# l = Userprofile.objects.get(user_id=user.id).organization.level.level
|
||||
# if user.is_superuser:
|
||||
# level = Level.objects.filter(level__in=[1, 2, 3, 5, 0])
|
||||
# elif l == '1':
|
||||
# level = Level.objects.filter(level__in=[2, 3, 5, 0])
|
||||
# elif l == '2':
|
||||
# level = Level.objects.filter(level__in=[3, 5, 0])
|
||||
# elif l == '3':
|
||||
# level = Level.objects.filter(level__in=[5, 0])
|
||||
# else:
|
||||
# level = Level.objects.filter(level__in=[0])
|
||||
if request.method == 'POST':
|
||||
name = request.POST.get('name')
|
||||
image = None
|
||||
|
@ -709,7 +713,7 @@ def organization_create(request):
|
|||
image = 'danweimoren.jpg'
|
||||
|
||||
# organizationtype = request.POST.get('organizationtype')
|
||||
level_id = request.POST.get('level_id')
|
||||
# level_id = request.POST.get('level_id')
|
||||
province = request.POST.get('province')
|
||||
if province != '':
|
||||
province = province
|
||||
|
@ -727,15 +731,14 @@ def organization_create(request):
|
|||
if name is not None:
|
||||
organization = Organization(name=name, image=image,
|
||||
province=province, cities=city, district=district, town=town,
|
||||
village=village, level_id=level_id, status='0')
|
||||
village=village, level_id='f517fd75-8127-4599-ad6e-72687da63bdd', status='0')
|
||||
organization.save()
|
||||
messages.success(request, '添加成功')
|
||||
return HttpResponseRedirect('/management/organization/create/')
|
||||
else:
|
||||
messages.error(request, '单位名不能为空')
|
||||
return HttpResponseRedirect('/management/organization/create/')
|
||||
return render(request, 'management/organization-management-create.html',
|
||||
{'level': level})
|
||||
return render(request, 'management/organization-management-create.html')
|
||||
|
||||
|
||||
@login_required
|
||||
|
@ -998,6 +1001,8 @@ def newmedia_management_edit_weixin(request):
|
|||
weixin = Weixin.objects.filter(organization__province=province, organization__cities=cities,
|
||||
organization__district=district).order_by(
|
||||
'-created')
|
||||
elif level == 9:
|
||||
weixin = Weixin.objects.all().order_by('-created')
|
||||
if weixin is not None:
|
||||
paginator = Paginator(weixin, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
@ -1067,6 +1072,8 @@ def newmedia_management_edit_weibo(request):
|
|||
elif level == 3:
|
||||
weibo = Weibo.objects.filter(organization__province=province, organization__cities=cities,
|
||||
organization__district=district).order_by('-created')
|
||||
elif level == 9:
|
||||
weibo = Weibo.objects.all().order_by('-created')
|
||||
if weibo is not None:
|
||||
paginator = Paginator(weibo, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
@ -1137,6 +1144,8 @@ def newmedia_management_edit_toutiao(request):
|
|||
toutiao = Toutiao.objects.filter(organization__province=province, organization__cities=cities,
|
||||
organization__district=district).order_by(
|
||||
'-created')
|
||||
elif level == 9:
|
||||
toutiao = Toutiao.objects.all().order_by('-created')
|
||||
if toutiao is not None:
|
||||
paginator = Paginator(toutiao, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
@ -1206,6 +1215,8 @@ def newmedia_management_edit_douyin(request):
|
|||
douyin = Douyin.objects.filter(organization__province=province, organization__cities=cities,
|
||||
organization__district=district).order_by(
|
||||
'-created')
|
||||
elif level == 9:
|
||||
douyin = Douyin.objects.all().order_by('-created')
|
||||
if douyin is not None:
|
||||
paginator = Paginator(douyin, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
@ -1273,6 +1284,8 @@ def newmedia_management_edit_qita(request):
|
|||
elif level == 3:
|
||||
qita = Qita.objects.filter(organization__province=province, organization__cities=cities,
|
||||
organization__district=district).order_by('-created')
|
||||
elif level == 9:
|
||||
qita = Qita.objects.all().order_by('-created')
|
||||
if qita is not None:
|
||||
paginator = Paginator(qita, 6)
|
||||
page = int(request.GET.get('page', 1))
|
||||
|
|
Loading…
Reference in New Issue