视图

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

@bp.route('/banners/')
@login_required
@permission_required(CMSPersmission.POSTER)
def banners():
return render_template('cms/cms_banners.html')

给这个url添加选中事件

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

else if(url.indexOf('banners') >= 0) {
var bannerManageLi = $('.banner-manage');
bannerManageLi.addClass('unfold').siblings().removeClass('unfold');
}

base模板

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

页面

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

{% extends 'cms/cms_base.html' %}

{% block title %}
轮播图管理
{% endblock %}

{% block head %}
<style>
.top-box{
overflow: hidden;
background: #ecedf0;
padding: 5px;
}
.top-box button{
float: right;
}
</style>
{% endblock %}

{% block page_title %}
{{ self.title() }}
{% endblock %}

{% block main_content %}
<div class="top-box">
<button class="btn btn-warning">添加轮播图</button>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>名称</th>
<th>图片链接</th>
<th>跳转链接 </th>
<th>优先级</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>

</table>
{% endblock %}

访问

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

 

添加轮播图的模态对话框

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

{% extends 'cms/cms_base.html' %}

{% block title %}
轮播图管理
{% endblock %}

{% block head %}
<style>
.top-box {
overflow: hidden;
background: #ecedf0;
padding: 5px;
}

.top-box button {
float: right;
}
</style>
{% endblock %}

{% block page_title %}
{{ self.title() }}
{% endblock %}

{% block main_content %}
<div class="top-box">
<button class="btn btn-warning" data-toggle="modal" data-target="#banner-dialog">添加轮播图</button>
</div>
<table class="table table-bordered">
<thead>
<tr>
<th>名称</th>
<th>图片链接</th>
<th>跳转链接</th>
<th>优先级</th>
<th>创建时间</th>
<th>操作</th>
</tr>
</thead>
</table>
<!-- 模态对话框,需包含上面button包含的属性(#属性),如这里用的#banner-dialog -->
<div class="modal fade" >{% endblock %}

访问

一百二十六:CMS系统之轮播图管理页面布局和添加轮播图的模态对话框制作

 

相关文章:

  • 2022-02-24
  • 2022-01-03
  • 2021-10-15
  • 2021-11-19
  • 2022-02-09
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-05-18
  • 2021-10-01
  • 2021-09-21
  • 2021-10-01
  • 2021-05-15
  • 2021-07-10
相关资源
相似解决方案