Commit c7773492 authored by christianrhansen's avatar christianrhansen

cleaned up html

parent 972d5143
Pipeline #29672 passed with stage
in 4 minutes and 18 seconds
<template lang="pug">
div
// buttons and search bar above the table
.row.gutter-md.q-mb-md
//
.col-3.col-sm-5.col-md-4.col-lg-3.col-xl-3
slot(name="top-buttons", slot-scope="props")
.col-9.col-sm-7.col-md-8.col-lg-9.col-xl-9
.col-12
q-search(v-model="filter", dark, icon="search")
q-table.full-width(
v-if="cols.length > 0",
dark,
ref="table",
row-key="name",
:data="rows",
:columns="cols",
:selection="selection",
:selected.sync="selected",
@request="request",
:loading="loading",
:rows-per-page-options="rowsPerPage",
:pagination.sync="pagination",
:hide-bottom="hideBottom",
:filter="filter",
:title="tableTitle")
v-if="cols.length > 0",
dark,
ref="table",
row-key="name",
:data="rows",
:columns="cols",
:selection="selection",
:selected.sync="selected",
@request="request",
:loading="loading",
:rows-per-page-options="rowsPerPage",
:pagination.sync="pagination",
:hide-bottom="hideBottom",
:filter="filter",
:title="tableTitle")
template(slot="top-left", slot-scope="props")
slot(name="buttons-left")
<!--template(slot="top-right", slot-scope="props")-->
<!--q-search(v-model="filter", dark, icon="search")-->
q-td(slot="body-cell-title", slot-scope="props", :props="props")
template(v-if="customTitleLink")
q-btn(
type="a",
color="primary",
:to="getCustomLink(customTitleLink, props.row._uuid)",
flat
)
q-btn( type="a", color="primary", :to="getCustomLink(customTitleLink, props.row._uuid)", flat)
promise-span(:value="props.value")
template(v-else)
q-btn(
v-if="hasShow",
type="a",
color="primary",
:to="getViewLink(props.row._uuid)",
flat
)
q-btn(v-if="hasShow", type="a", color="primary", :to="getViewLink(props.row._uuid)", flat)
promise-span(:value="props.value")
promise-span(v-if="!hasShow", :value="props.value")
......@@ -65,6 +48,7 @@
q-td(slot="body-cell-actions", slot-scope="props", :props="props")
q-btn(v-for="btn in props.value", :key="btn.icon", "flat", size="md", :icon="btn.icon",
@click="defaultClick(btn, props)") {{ $t(btn.title) }}
</template>
<script>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment