Skip to content

Commit 962a59f

Browse files
committed
demo: use adminlte style layout
1 parent 9bfba84 commit 962a59f

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/* override uliweb_layout/layout/static/layout.css */
2+
.main-footer {background-color: #3c8dbc; color: #e0e0e0;margin-left:0}
3+
#layout-body .content-wrapper {border-left:none}
4+
#layout-body.full .main-header .container { width: 100%; }
5+
#layout-body.full .content-wrapper > .container { width: 100%; padding: 0; }

demo/apps/apijson_demo/templates/index.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
{{extend "layout_demo.html"}}
22

3+
{{block content_header_title}}<h1>uliweb-apijson api examples</h1>{{end content_header_title}}
4+
35
{{block content_main}}
46
{{use "ui.vue"}}
57
{{use "ui.iview"}}
68

7-
<div id="app">
9+
<div id="app" class='box'>
10+
<div class="box-body">
811
<tabs v-model:value="tab_current" type="card" :animated="false">
912
<tab-pane label="apijson get" name="tab_get"></tab-pane>
1013
<tab-pane label="apijson head" name="tab_head"></tab-pane>
@@ -96,6 +99,7 @@
9699
<i-col span="8"><i-input v-model="response_data" type="textarea" readonly :autosize="{minRows: 5,maxRows: 30}" /></i-col>
97100
</Row>
98101
</div>
102+
</div>
99103
<script>
100104
var vm = new Vue({
101105
el: '#app',

demo/apps/tables/templates/Tables/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
11
{{extend "Tables/layout.html"}}
22

3+
{{block content_header_title}}<h1>apijson-table examples</h1>{{end content_header_title}}
4+
35
{{block content_main}}
46
{{use "ui.vue"}}
57
{{use "ui.iview"}}
68
{{include "vue/inc_apijson_table.html"}}
79
{{if role!="ADMIN":}}
810
<div class="alert alert-warning" role="alert">You should <a class="btn btn-primary btn-sm" href="{{=url_for('uliweb_apps.login.views.login')}}" role="button">login</a> with user <strong>admin</strong> to view all the tables</div>
911
{{pass #if}}
10-
<div id="app">
12+
<div id="app" class='box'>
13+
<div class="box-body">
1114
<tabs v-model:value="tab_current" type="card">
1215
<tab-pane v-for="item in tabs" :key="item" :label="item" :name="item">
1316
<apijson-table :model_name="item" :config="apijson_tables[item]"></apijson-table>
1417
</tab-pane>
1518
</tabs>
1619
</div>
20+
</div>
1721

1822
<script>
1923
var vm = new Vue({

0 commit comments

Comments
 (0)