Skip to content

demo: use adminlte style layout #32

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions demo/apps/apijson_demo/static/layout.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
/* override uliweb_layout/layout/static/layout.css */
.main-footer {background-color: #3c8dbc; color: #e0e0e0;margin-left:0}
#layout-body .content-wrapper {border-left:none}
#layout-body.full .main-header .container { width: 100%; }
#layout-body.full .content-wrapper > .container { width: 100%; padding: 0; }
6 changes: 5 additions & 1 deletion demo/apps/apijson_demo/templates/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{{extend "layout_demo.html"}}

{{block content_header_title}}<h1>uliweb-apijson api examples</h1>{{end content_header_title}}

{{block content_main}}
{{use "ui.vue"}}
{{use "ui.iview"}}

<div id="app">
<div id="app" class='box'>
<div class="box-body">
<tabs v-model:value="tab_current" type="card" :animated="false">
<tab-pane label="apijson get" name="tab_get"></tab-pane>
<tab-pane label="apijson head" name="tab_head"></tab-pane>
Expand Down Expand Up @@ -96,6 +99,7 @@
<i-col span="8"><i-input v-model="response_data" type="textarea" readonly :autosize="{minRows: 5,maxRows: 30}" /></i-col>
</Row>
</div>
</div>
<script>
var vm = new Vue({
el: '#app',
Expand Down
6 changes: 5 additions & 1 deletion demo/apps/tables/templates/Tables/list.html
Original file line number Diff line number Diff line change
@@ -1,19 +1,23 @@
{{extend "Tables/layout.html"}}

{{block content_header_title}}<h1>apijson-table examples</h1>{{end content_header_title}}

{{block content_main}}
{{use "ui.vue"}}
{{use "ui.iview"}}
{{include "vue/inc_apijson_table.html"}}
{{if role!="ADMIN":}}
<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>
{{pass #if}}
<div id="app">
<div id="app" class='box'>
<div class="box-body">
<tabs v-model:value="tab_current" type="card">
<tab-pane v-for="item in tabs" :key="item" :label="item" :name="item">
<apijson-table :model_name="item" :config="apijson_tables[item]"></apijson-table>
</tab-pane>
</tabs>
</div>
</div>

<script>
var vm = new Vue({
Expand Down