Remove support for Buefy 0.8
only Buefy 0.9 and greater are supported now
This commit is contained in:
parent
5f7fa33eb2
commit
8410419717
|
@ -27,7 +27,6 @@ Rattail config extension for Tailbone
|
|||
from __future__ import unicode_literals, absolute_import
|
||||
|
||||
import warnings
|
||||
from pkg_resources import parse_version
|
||||
|
||||
from rattail.config import ConfigExtension as BaseExtension
|
||||
from rattail.db.config import configure_session
|
||||
|
@ -78,11 +77,9 @@ def get_buefy_version(config):
|
|||
|
||||
|
||||
def get_buefy_0_8(config, version=None):
|
||||
if not version:
|
||||
version = get_buefy_version(config)
|
||||
if version == 'latest':
|
||||
return False
|
||||
return parse_version(version) < parse_version('0.9')
|
||||
warnings.warn("get_buefy_0_8() is no longer supported",
|
||||
DeprecationWarning, stacklevel=2)
|
||||
return False
|
||||
|
||||
|
||||
def global_help_url(config):
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
################################################################################
|
||||
#
|
||||
# Rattail -- Retail Software Framework
|
||||
# Copyright © 2010-2022 Lance Edgar
|
||||
# Copyright © 2010-2023 Lance Edgar
|
||||
#
|
||||
# This file is part of Rattail.
|
||||
#
|
||||
|
@ -40,10 +40,9 @@ from webhelpers2.html import tags
|
|||
import tailbone
|
||||
from tailbone import helpers
|
||||
from tailbone.db import Session
|
||||
from tailbone.config import (csrf_header_name, should_expose_websockets,
|
||||
get_buefy_0_8)
|
||||
from tailbone.config import csrf_header_name, should_expose_websockets
|
||||
from tailbone.menus import make_simple_menus
|
||||
from tailbone.util import should_use_buefy, get_global_search_options, get_libver
|
||||
from tailbone.util import should_use_buefy, get_global_search_options
|
||||
|
||||
|
||||
def new_request(event):
|
||||
|
@ -160,10 +159,8 @@ def before_render(event):
|
|||
# buefy themes get some extra treatment
|
||||
if should_use_buefy(request):
|
||||
|
||||
# TODO: remove this hack once all nodes safely on buefy 0.9
|
||||
version = get_libver(request, 'buefy')
|
||||
renderer_globals['buefy_0_8'] = get_buefy_0_8(rattail_config,
|
||||
version=version)
|
||||
# TODO: remove this hack once nothing references it
|
||||
renderer_globals['buefy_0_8'] = False
|
||||
|
||||
# maybe set custom stylesheet
|
||||
css = None
|
||||
|
|
|
@ -102,68 +102,45 @@
|
|||
|
||||
<b-table :data="weblibs">
|
||||
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="title"
|
||||
label="Name"
|
||||
v-slot="props">
|
||||
{{ props.row.title }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="title"
|
||||
label="Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.title }}
|
||||
</b-table-column>
|
||||
<b-table-column field="configured_version"
|
||||
label="Version"
|
||||
v-slot="props">
|
||||
{{ props.row.configured_version || props.row.default_version }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="configured_version"
|
||||
label="Version"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.configured_version || props.row.default_version }}
|
||||
</b-table-column>
|
||||
<b-table-column field="configured_url"
|
||||
label="URL Override"
|
||||
v-slot="props">
|
||||
{{ props.row.configured_url }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="configured_url"
|
||||
label="URL Override"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.configured_url }}
|
||||
</b-table-column>
|
||||
<b-table-column field="live_url"
|
||||
label="Effective (Live) URL"
|
||||
v-slot="props">
|
||||
<span v-if="props.row.modified"
|
||||
class="has-text-warning">
|
||||
save settings and refresh page to see new URL
|
||||
</span>
|
||||
<span v-if="!props.row.modified">
|
||||
{{ props.row.live_url }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="live_url"
|
||||
label="Effective (Live) URL"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-if="props.row.modified"
|
||||
class="has-text-warning">
|
||||
save settings and refresh page to see new URL
|
||||
</span>
|
||||
<span v-if="!props.row.modified">
|
||||
{{ props.row.live_url }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="editWebLibraryInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
@click.prevent="editWebLibraryInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
|
||||
</b-table>
|
||||
|
||||
|
|
|
@ -59,31 +59,17 @@
|
|||
<div style="width: 100%;">
|
||||
<b-table :data="configFiles">
|
||||
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="priority"
|
||||
label="Priority"
|
||||
v-slot="props">
|
||||
{{ props.row.priority }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="priority"
|
||||
label="Priority"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.priority }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="path"
|
||||
label="File Path"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.path }}
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="path"
|
||||
label="File Path"
|
||||
v-slot="props">
|
||||
{{ props.row.path }}
|
||||
</b-table-column>
|
||||
|
||||
</b-table>
|
||||
</div>
|
||||
|
|
|
@ -886,94 +886,72 @@
|
|||
paginated
|
||||
per-page="5"
|
||||
:debounce-search="1000">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
|
||||
<b-table-column :label="productKeyLabel"
|
||||
field="key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column :label="productKeyLabel"
|
||||
field="key"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Brand"
|
||||
field="brand_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.brand_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Brand"
|
||||
field="brand_name"
|
||||
v-slot="props"
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.brand_name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Description"
|
||||
field="description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.description }}
|
||||
{{ props.row.size }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Description"
|
||||
field="description"
|
||||
v-slot="props"
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.description }}
|
||||
{{ props.row.size }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Unit Price"
|
||||
field="unit_price"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.unit_price_display }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Unit Price"
|
||||
field="unit_price"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.unit_price_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Sale Price"
|
||||
field="sale_price"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Sale Price"
|
||||
field="sale_price"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Sale Ends"
|
||||
field="sale_ends"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_ends_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Sale Ends"
|
||||
field="sale_ends"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_ends_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Department"
|
||||
field="department_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.department_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Department"
|
||||
field="department_name"
|
||||
v-slot="props"
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.department_name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Vendor"
|
||||
field="vendor_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.vendor_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Vendor"
|
||||
field="vendor_name"
|
||||
v-slot="props"
|
||||
sortable
|
||||
searchable>
|
||||
{{ props.row.vendor_name }}
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
<p>
|
||||
|
@ -1009,132 +987,93 @@
|
|||
<b-table v-if="items.length"
|
||||
:data="items"
|
||||
:row-class="(row, i) => row.product_uuid ? null : 'has-text-success'">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
|
||||
<b-table-column :label="productKeyLabel"
|
||||
v-slot="props">
|
||||
{{ props.row.product_key }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Brand"
|
||||
v-slot="props">
|
||||
{{ props.row.product_brand }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.product_description }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Size"
|
||||
v-slot="props">
|
||||
{{ props.row.product_size }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Department"
|
||||
v-slot="props">
|
||||
{{ props.row.department_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Quantity"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.order_quantity_display"></span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Unit Price"
|
||||
v-slot="props">
|
||||
<span
|
||||
% if product_price_may_be_questionable:
|
||||
:class="props.row.price_needs_confirmation ? 'has-background-warning' : ''"
|
||||
% else:
|
||||
:class="props.row.pricing_reflects_sale ? 'has-background-warning' : null"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.unit_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
% if allow_item_discounts:
|
||||
<b-table-column label="Discount"
|
||||
v-slot="props">
|
||||
{{ props.row.discount_percent }}{{ props.row.discount_percent ? " %" : "" }}
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<b-table-column :label="productKeyLabel"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.product_key }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Total"
|
||||
v-slot="props">
|
||||
<span
|
||||
% if product_price_may_be_questionable:
|
||||
:class="props.row.price_needs_confirmation ? 'has-background-warning' : ''"
|
||||
% else:
|
||||
:class="props.row.pricing_reflects_sale ? 'has-background-warning' : null"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.total_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Brand"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.product_brand }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Vendor"
|
||||
v-slot="props">
|
||||
{{ props.row.vendor_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.product_description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="showEditItemDialog(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
|
||||
<b-table-column label="Size"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.product_size }}
|
||||
</b-table-column>
|
||||
<a href="#" class="grid-action has-text-danger"
|
||||
@click.prevent="deleteItem(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Department"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.department_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Quantity"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.order_quantity_display"></span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Unit Price"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span
|
||||
% if product_price_may_be_questionable:
|
||||
:class="props.row.price_needs_confirmation ? 'has-background-warning' : ''"
|
||||
% else:
|
||||
:class="props.row.pricing_reflects_sale ? 'has-background-warning' : null"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.unit_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
% if allow_item_discounts:
|
||||
<b-table-column label="Discount"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.discount_percent }}{{ props.row.discount_percent ? " %" : "" }}
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<b-table-column label="Total"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span
|
||||
% if product_price_may_be_questionable:
|
||||
:class="props.row.price_needs_confirmation ? 'has-background-warning' : ''"
|
||||
% else:
|
||||
:class="props.row.pricing_reflects_sale ? 'has-background-warning' : null"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.total_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Vendor"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.vendor_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="showEditItemDialog(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
|
||||
<a href="#" class="grid-action has-text-danger"
|
||||
@click.prevent="deleteItem(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -106,95 +106,56 @@
|
|||
:checked-rows.sync="changeStatusCheckedRows"
|
||||
narrowed
|
||||
class="is-size-7">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="product_brand" label="Brand"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.product_brand"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="product_description" label="Product"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.product_description"></span>
|
||||
</b-table-column>
|
||||
<!-- <b-table-column field="quantity" label="Quantity"> -->
|
||||
<!-- <span v-html="props.row.quantity"></span> -->
|
||||
<!-- </b-table-column> -->
|
||||
<b-table-column field="product_case_quantity" label="cPack"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.product_case_quantity"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_quantity" label="oQty"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.order_quantity"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_uom" label="UOM"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.order_uom"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="department_name" label="Department"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.department_name"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="product_barcode" label="Product Barcode"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.product_barcode"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="unit_price" label="Unit $"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.unit_price"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="total_price" label="Total $"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.total_price"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_date" label="Order Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.order_date"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="status_code" label="Status"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.status_code"></span>
|
||||
</b-table-column>
|
||||
<!-- <b-table-column field="flagged" label="Flagged"> -->
|
||||
<!-- <span v-html="props.row.flagged"></span> -->
|
||||
<!-- </b-table-column> -->
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="product_brand" label="Brand"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.product_brand"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="product_description" label="Product"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.product_description"></span>
|
||||
</b-table-column>
|
||||
<!-- <b-table-column field="quantity" label="Quantity"> -->
|
||||
<!-- <span v-html="props.row.quantity"></span> -->
|
||||
<!-- </b-table-column> -->
|
||||
<b-table-column field="product_case_quantity" label="cPack"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.product_case_quantity"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_quantity" label="oQty"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.order_quantity"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_uom" label="UOM"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.order_uom"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="department_name" label="Department"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.department_name"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="product_barcode" label="Product Barcode"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.product_barcode"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="unit_price" label="Unit $"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.unit_price"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="total_price" label="Total $"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.total_price"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="order_date" label="Order Date"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.order_date"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="status_code" label="Status"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.status_code"></span>
|
||||
</b-table-column>
|
||||
<!-- <b-table-column field="flagged" label="Flagged"> -->
|
||||
<!-- <span v-html="props.row.flagged"></span> -->
|
||||
<!-- </b-table-column> -->
|
||||
</b-table>
|
||||
|
||||
<br />
|
||||
|
|
|
@ -103,98 +103,66 @@
|
|||
|
||||
<b-table :data="filteredProfilesData"
|
||||
:row-class="(row, i) => row.enabled ? null : 'has-background-warning'">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Watcher Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_spec"
|
||||
label="Watcher Spec"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_dbkey"
|
||||
label="DB Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_delay"
|
||||
label="Loop Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_retry_attempts"
|
||||
label="Attempts / Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_retry_attempts }} / {{ props.row.watcher_retry_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_default_runas"
|
||||
label="Default Runas"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.watcher_default_runas }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Consumers"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ consumerShortList(props.row) }}
|
||||
</b-table-column>
|
||||
<b-table-column field="key"
|
||||
label="Watcher Key"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_spec"
|
||||
label="Watcher Spec"
|
||||
v-slot="props">
|
||||
{{ props.row.watcher_spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_dbkey"
|
||||
label="DB Key"
|
||||
v-slot="props">
|
||||
{{ props.row.watcher_dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_delay"
|
||||
label="Loop Delay"
|
||||
v-slot="props">
|
||||
{{ props.row.watcher_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_retry_attempts"
|
||||
label="Attempts / Delay"
|
||||
v-slot="props">
|
||||
{{ props.row.watcher_retry_attempts }} / {{ props.row.watcher_retry_delay }} sec
|
||||
</b-table-column>
|
||||
<b-table-column field="watcher_default_runas"
|
||||
label="Default Runas"
|
||||
v-slot="props">
|
||||
{{ props.row.watcher_default_runas }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Consumers"
|
||||
v-slot="props">
|
||||
{{ consumerShortList(props.row) }}
|
||||
</b-table-column>
|
||||
## <b-table-column field="notes" label="Notes">
|
||||
## TODO
|
||||
## ## {{ props.row.notes }}
|
||||
## </b-table-column>
|
||||
<b-table-column field="enabled"
|
||||
label="Enabled"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.enabled ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
v-if="useProfileSettings">
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
@click.prevent="editProfile(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="grid-action has-text-danger"
|
||||
@click.prevent="deleteProfile(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="enabled"
|
||||
label="Enabled"
|
||||
v-slot="props">
|
||||
{{ props.row.enabled ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props"
|
||||
v-if="useProfileSettings">
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
@click.prevent="editProfile(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="grid-action has-text-danger"
|
||||
@click.prevent="deleteProfile(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
@ -327,46 +295,31 @@
|
|||
|
||||
<b-table :data="editingProfilePendingWatcherKwargs"
|
||||
style="margin-left: 1rem;">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="value"
|
||||
label="Value"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.value }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="editProfileWatcherKwarg(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="deleteProfileWatcherKwarg(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="value"
|
||||
label="Value"
|
||||
v-slot="props">
|
||||
{{ props.row.value }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
@click.prevent="editProfileWatcherKwarg(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="deleteProfileWatcherKwarg(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
@ -400,46 +353,31 @@
|
|||
<b-table :data="editingProfilePendingConsumers"
|
||||
v-if="!editingProfileWatcherConsumesSelf"
|
||||
:row-class="(row, i) => row.enabled ? null : 'has-background-warning'">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Consumer"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column style="white-space: nowrap;"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.consumer_delay }} / {{ props.row.consumer_retry_attempts }} / {{ props.row.consumer_retry_delay }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
@click.prevent="editProfileConsumer(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="grid-action has-text-danger"
|
||||
@click.prevent="deleteProfileConsumer(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Consumer"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column style="white-space: nowrap;"
|
||||
v-slot="props">
|
||||
{{ props.row.consumer_delay }} / {{ props.row.consumer_retry_attempts }} / {{ props.row.consumer_retry_delay }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
class="grid-action"
|
||||
@click.prevent="editProfileConsumer(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="grid-action has-text-danger"
|
||||
@click.prevent="deleteProfileConsumer(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
|
|
|
@ -49,123 +49,75 @@
|
|||
|
||||
<b-field label="Watcher Status">
|
||||
<b-table :data="watchers">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Watcher"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="spec"
|
||||
label="Spec"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="dbkey"
|
||||
label="DB Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="delay"
|
||||
label="Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.delay }} second(s)
|
||||
</b-table-column>
|
||||
<b-table-column field="lastrun"
|
||||
label="Last Watched"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.lastrun"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="status"
|
||||
label="Status"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span :class="props.row.status == 'okay' ? 'has-background-success' : 'has-background-warning'">
|
||||
{{ props.row.status }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Watcher"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="spec"
|
||||
label="Spec"
|
||||
v-slot="props">
|
||||
{{ props.row.spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="dbkey"
|
||||
label="DB Key"
|
||||
v-slot="props">
|
||||
{{ props.row.dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="delay"
|
||||
label="Delay"
|
||||
v-slot="props">
|
||||
{{ props.row.delay }} second(s)
|
||||
</b-table-column>
|
||||
<b-table-column field="lastrun"
|
||||
label="Last Watched"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.lastrun"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="status"
|
||||
label="Status"
|
||||
v-slot="props">
|
||||
<span :class="props.row.status == 'okay' ? 'has-background-success' : 'has-background-warning'">
|
||||
{{ props.row.status }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
</b-field>
|
||||
|
||||
<b-field label="Consumer Status">
|
||||
<b-table :data="consumers">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Consumer"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="spec"
|
||||
label="Spec"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="dbkey"
|
||||
label="DB Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="delay"
|
||||
label="Delay"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.delay }} second(s)
|
||||
</b-table-column>
|
||||
<b-table-column field="changes"
|
||||
label="Pending Changes"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.changes }}
|
||||
</b-table-column>
|
||||
<b-table-column field="status"
|
||||
label="Status"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span :class="props.row.status == 'okay' ? 'has-background-success' : 'has-background-warning'">
|
||||
{{ props.row.status }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Consumer"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="spec"
|
||||
label="Spec"
|
||||
v-slot="props">
|
||||
{{ props.row.spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="dbkey"
|
||||
label="DB Key"
|
||||
v-slot="props">
|
||||
{{ props.row.dbkey }}
|
||||
</b-table-column>
|
||||
<b-table-column field="delay"
|
||||
label="Delay"
|
||||
v-slot="props">
|
||||
{{ props.row.delay }} second(s)
|
||||
</b-table-column>
|
||||
<b-table-column field="changes"
|
||||
label="Pending Changes"
|
||||
v-slot="props">
|
||||
{{ props.row.changes }}
|
||||
</b-table-column>
|
||||
<b-table-column field="status"
|
||||
label="Status"
|
||||
v-slot="props">
|
||||
<span :class="props.row.status == 'okay' ? 'has-background-success' : 'has-background-warning'">
|
||||
{{ props.row.status }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
</b-field>
|
||||
</%def>
|
||||
|
|
|
@ -108,70 +108,49 @@
|
|||
|
||||
<b-table
|
||||
:data="new_table.columns">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
|
||||
<b-table-column field="name"
|
||||
label="Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="name"
|
||||
label="Name"
|
||||
v-slot="props">
|
||||
{{ props.row.name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="data_type"
|
||||
label="Data Type"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.data_type }}
|
||||
</b-table-column>
|
||||
<b-table-column field="data_type"
|
||||
label="Data Type"
|
||||
v-slot="props">
|
||||
{{ props.row.data_type }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="nullable"
|
||||
label="Nullable"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.nullable }}
|
||||
</b-table-column>
|
||||
<b-table-column field="nullable"
|
||||
label="Nullable"
|
||||
v-slot="props">
|
||||
{{ props.row.nullable }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="editColumnRow(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="editColumnRow(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
|
||||
<a href="#" class="grid-action has-text-danger"
|
||||
@click.prevent="deleteColumn(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
<a href="#" class="grid-action has-text-danger"
|
||||
@click.prevent="deleteColumn(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
|
||||
<b-modal has-modal-card
|
||||
|
|
|
@ -20,71 +20,60 @@
|
|||
% endif
|
||||
>
|
||||
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
% for i, column in enumerate(grid_columns):
|
||||
<b-table-column field="${column['field']}"
|
||||
% if not empty_labels:
|
||||
label="${column['label']}"
|
||||
% elif i > 0:
|
||||
label=" "
|
||||
% endif
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
${'sortable' if column['sortable'] else ''}>
|
||||
% if empty_labels and i == 0:
|
||||
<template slot="header" slot-scope="{ column }"></template>
|
||||
% endif
|
||||
% if grid.is_linked(column['field']):
|
||||
<a :href="props.row._action_url_view"
|
||||
v-html="props.row.${column['field']}"
|
||||
% if view_click_handler:
|
||||
@click.prevent="${view_click_handler}"
|
||||
% endif
|
||||
>
|
||||
% for i, column in enumerate(grid_columns):
|
||||
<b-table-column field="${column['field']}"
|
||||
% if not empty_labels:
|
||||
label="${column['label']}"
|
||||
% elif i > 0:
|
||||
label=" "
|
||||
% endif
|
||||
v-slot="props"
|
||||
${'sortable' if column['sortable'] else ''}>
|
||||
% if empty_labels and i == 0:
|
||||
<template slot="header" slot-scope="{ column }"></template>
|
||||
% endif
|
||||
% if grid.is_linked(column['field']):
|
||||
<a :href="props.row._action_url_view"
|
||||
v-html="props.row.${column['field']}"
|
||||
% if view_click_handler:
|
||||
@click.prevent="${view_click_handler}"
|
||||
% endif
|
||||
>
|
||||
</a>
|
||||
% elif grid.has_click_handler(column['field']):
|
||||
<span>
|
||||
<a href="#"
|
||||
@click.prevent="${grid.click_handlers[column['field']]}"
|
||||
v-html="props.row.${column['field']}">
|
||||
</a>
|
||||
% elif grid.has_click_handler(column['field']):
|
||||
<span>
|
||||
<a href="#"
|
||||
@click.prevent="${grid.click_handlers[column['field']]}"
|
||||
v-html="props.row.${column['field']}">
|
||||
</a>
|
||||
</span>
|
||||
% else:
|
||||
<span v-html="props.row.${column['field']}"></span>
|
||||
% endif
|
||||
</b-table-column>
|
||||
% endfor
|
||||
</span>
|
||||
% else:
|
||||
<span v-html="props.row.${column['field']}"></span>
|
||||
% endif
|
||||
</b-table-column>
|
||||
% endfor
|
||||
|
||||
% if grid.main_actions or grid.more_actions:
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
% for action in grid.main_actions:
|
||||
<a :href="props.row._action_url_${action.key}"
|
||||
% if action.link_class:
|
||||
class="${action.link_class}"
|
||||
% else:
|
||||
class="grid-action${' has-text-danger' if action.key == 'delete' else ''}"
|
||||
% endif
|
||||
% if action.click_handler:
|
||||
@click.prevent="${action.click_handler}"
|
||||
% endif
|
||||
>
|
||||
<i class="fas fa-${action.icon}"></i>
|
||||
${action.label}
|
||||
</a>
|
||||
|
||||
% endfor
|
||||
</b-table-column>
|
||||
% endif
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% if grid.main_actions or grid.more_actions:
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
% for action in grid.main_actions:
|
||||
<a :href="props.row._action_url_${action.key}"
|
||||
% if action.link_class:
|
||||
class="${action.link_class}"
|
||||
% else:
|
||||
class="grid-action${' has-text-danger' if action.key == 'delete' else ''}"
|
||||
% endif
|
||||
% if action.click_handler:
|
||||
@click.prevent="${action.click_handler}"
|
||||
% endif
|
||||
>
|
||||
<i class="fas fa-${action.icon}"></i>
|
||||
${action.label}
|
||||
</a>
|
||||
|
||||
% endfor
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<template slot="empty">
|
||||
|
|
|
@ -218,60 +218,49 @@
|
|||
:hoverable="true"
|
||||
:narrowed="true">
|
||||
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
% for column in grid_columns:
|
||||
<b-table-column field="${column['field']}"
|
||||
label="${column['label']}"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
:sortable="${json.dumps(column['sortable'])}"
|
||||
% if grid.is_searchable(column['field']):
|
||||
searchable
|
||||
% endif
|
||||
cell-class="c_${column['field']}"
|
||||
% if grid.has_click_handler(column['field']):
|
||||
@click.native="${grid.click_handlers[column['field']]}"
|
||||
% endif
|
||||
:visible="${json.dumps(column['visible'])}">
|
||||
% if column['field'] in grid.raw_renderers:
|
||||
${grid.raw_renderers[column['field']]()}
|
||||
% elif grid.is_linked(column['field']):
|
||||
<a :href="props.row._action_url_view" v-html="props.row.${column['field']}"></a>
|
||||
% else:
|
||||
<span v-html="props.row.${column['field']}"></span>
|
||||
% endif
|
||||
</b-table-column>
|
||||
% endfor
|
||||
% for column in grid_columns:
|
||||
<b-table-column field="${column['field']}"
|
||||
label="${column['label']}"
|
||||
v-slot="props"
|
||||
:sortable="${json.dumps(column['sortable'])}"
|
||||
% if grid.is_searchable(column['field']):
|
||||
searchable
|
||||
% endif
|
||||
cell-class="c_${column['field']}"
|
||||
% if grid.has_click_handler(column['field']):
|
||||
@click.native="${grid.click_handlers[column['field']]}"
|
||||
% endif
|
||||
:visible="${json.dumps(column['visible'])}">
|
||||
% if column['field'] in grid.raw_renderers:
|
||||
${grid.raw_renderers[column['field']]()}
|
||||
% elif grid.is_linked(column['field']):
|
||||
<a :href="props.row._action_url_view" v-html="props.row.${column['field']}"></a>
|
||||
% else:
|
||||
<span v-html="props.row.${column['field']}"></span>
|
||||
% endif
|
||||
</b-table-column>
|
||||
% endfor
|
||||
|
||||
% if grid.main_actions or grid.more_actions:
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
## TODO: we do not currently differentiate for "main vs. more"
|
||||
## here, but ideally we would tuck "more" away in a drawer etc.
|
||||
% for action in grid.main_actions + grid.more_actions:
|
||||
<a v-if="props.row._action_url_${action.key}"
|
||||
:href="props.row._action_url_${action.key}"
|
||||
class="grid-action${' has-text-danger' if action.key == 'delete' else ''} ${action.link_class or ''}"
|
||||
% if action.click_handler:
|
||||
@click.prevent="${action.click_handler}"
|
||||
% endif
|
||||
>
|
||||
${action.render_icon()|n}
|
||||
${action.render_label()|n}
|
||||
</a>
|
||||
|
||||
% endfor
|
||||
</b-table-column>
|
||||
% endif
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% if grid.main_actions or grid.more_actions:
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
## TODO: we do not currently differentiate for "main vs. more"
|
||||
## here, but ideally we would tuck "more" away in a drawer etc.
|
||||
% for action in grid.main_actions + grid.more_actions:
|
||||
<a v-if="props.row._action_url_${action.key}"
|
||||
:href="props.row._action_url_${action.key}"
|
||||
class="grid-action${' has-text-danger' if action.key == 'delete' else ''} ${action.link_class or ''}"
|
||||
% if action.click_handler:
|
||||
@click.prevent="${action.click_handler}"
|
||||
% endif
|
||||
>
|
||||
${action.render_icon()|n}
|
||||
${action.render_label()|n}
|
||||
</a>
|
||||
|
||||
% endfor
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<template #empty>
|
||||
|
|
|
@ -10,85 +10,64 @@
|
|||
narrowed
|
||||
icon-pack="fas"
|
||||
:default-sort="['host_title', 'asc']">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="host_title"
|
||||
label="Data Source"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.host_title }}
|
||||
</b-table-column>
|
||||
<b-table-column field="local_title"
|
||||
label="Data Target"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.local_title }}
|
||||
</b-table-column>
|
||||
<b-table-column field="direction"
|
||||
label="Direction"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.direction_display }}
|
||||
</b-table-column>
|
||||
<b-table-column field="handler_spec"
|
||||
label="Handler Spec"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.handler_spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="cmd"
|
||||
label="Command"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.command }} {{ props.row.subcommand }}
|
||||
</b-table-column>
|
||||
<b-table-column field="runas"
|
||||
label="Default Runas"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.default_runas }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="editHandler(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
<p>
|
||||
<b-icon
|
||||
pack="fas"
|
||||
icon="fas fa-sad-tear"
|
||||
size="is-large">
|
||||
</b-icon>
|
||||
</p>
|
||||
<p>Nothing here.</p>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
<b-table-column field="host_title"
|
||||
label="Data Source"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.host_title }}
|
||||
</b-table-column>
|
||||
<b-table-column field="local_title"
|
||||
label="Data Target"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.local_title }}
|
||||
</b-table-column>
|
||||
<b-table-column field="direction"
|
||||
label="Direction"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.direction_display }}
|
||||
</b-table-column>
|
||||
<b-table-column field="handler_spec"
|
||||
label="Handler Spec"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.handler_spec }}
|
||||
</b-table-column>
|
||||
<b-table-column field="cmd"
|
||||
label="Command"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.command }} {{ props.row.subcommand }}
|
||||
</b-table-column>
|
||||
<b-table-column field="runas"
|
||||
label="Default Runas"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.default_runas }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" class="grid-action"
|
||||
@click.prevent="editHandler(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
<template slot="empty">
|
||||
<section class="section">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
<p>
|
||||
<b-icon
|
||||
pack="fas"
|
||||
icon="fas fa-sad-tear"
|
||||
size="is-large">
|
||||
</b-icon>
|
||||
</p>
|
||||
<p>Nothing here.</p>
|
||||
</div>
|
||||
</section>
|
||||
</template>
|
||||
</b-table>
|
||||
|
||||
<b-modal :active.sync="editHandlerShowDialog">
|
||||
|
|
|
@ -23,67 +23,46 @@
|
|||
<div class="block" style="padding-left: 2rem; display: flex;">
|
||||
|
||||
<b-table :data="overnightTasks">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<!-- <b-table-column field="key" -->
|
||||
<!-- label="Key" -->
|
||||
<!-- sortable> -->
|
||||
<!-- {{ props.row.key }} -->
|
||||
<!-- </b-table-column> -->
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="class_name"
|
||||
label="Class Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.class_name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="overnightTaskEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="overnightTaskDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<!-- <b-table-column field="key" -->
|
||||
<!-- label="Key" -->
|
||||
<!-- sortable> -->
|
||||
<!-- {{ props.row.key }} -->
|
||||
<!-- </b-table-column> -->
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="class_name"
|
||||
label="Class Name"
|
||||
v-slot="props">
|
||||
{{ props.row.class_name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
v-slot="props">
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
@click.prevent="overnightTaskEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="overnightTaskDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
|
||||
<b-modal has-modal-card
|
||||
|
@ -161,70 +140,46 @@
|
|||
<div class="block" style="padding-left: 2rem; display: flex;">
|
||||
|
||||
<b-table :data="backfillTasks">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column field="forward"
|
||||
label="Orientation"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.forward ? "Forward" : "Backward" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="target_date"
|
||||
label="Target Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.target_date }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="backfillTaskEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="backfillTaskDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
v-slot="props">
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column field="forward"
|
||||
label="Orientation"
|
||||
v-slot="props">
|
||||
{{ props.row.forward ? "Forward" : "Backward" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="target_date"
|
||||
label="Target Date"
|
||||
v-slot="props">
|
||||
{{ props.row.target_date }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
@click.prevent="backfillTaskEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="backfillTaskDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
|
||||
<b-modal has-modal-card
|
||||
|
|
|
@ -54,99 +54,81 @@
|
|||
<h3 class="block is-size-3">Overnight Tasks</h3>
|
||||
|
||||
<b-table :data="overnightTasks" hoverable>
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Command"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.script || props.row.class_name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="last_date"
|
||||
label="Last Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span :class="overnightTextClass(props.row)">
|
||||
{{ props.row.last_date || "never!" }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="overnightTaskLaunchInit(props.row)">
|
||||
Launch
|
||||
</b-button>
|
||||
<b-modal has-modal-card
|
||||
:active.sync="overnightTaskShowLaunchDialog">
|
||||
<div class="modal-card">
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Command"
|
||||
v-slot="props">
|
||||
{{ props.row.script || props.row.class_name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="last_date"
|
||||
label="Last Date"
|
||||
v-slot="props">
|
||||
<span :class="overnightTextClass(props.row)">
|
||||
{{ props.row.last_date || "never!" }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="overnightTaskLaunchInit(props.row)">
|
||||
Launch
|
||||
</b-button>
|
||||
<b-modal has-modal-card
|
||||
:active.sync="overnightTaskShowLaunchDialog">
|
||||
<div class="modal-card">
|
||||
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">Launch Overnight Task</p>
|
||||
</header>
|
||||
<header class="modal-card-head">
|
||||
<p class="modal-card-title">Launch Overnight Task</p>
|
||||
</header>
|
||||
|
||||
<section class="modal-card-body"
|
||||
v-if="overnightTask">
|
||||
<section class="modal-card-body"
|
||||
v-if="overnightTask">
|
||||
|
||||
<b-field label="Task" horizontal>
|
||||
<span>{{ overnightTask.description }}</span>
|
||||
</b-field>
|
||||
<b-field label="Task" horizontal>
|
||||
<span>{{ overnightTask.description }}</span>
|
||||
</b-field>
|
||||
|
||||
<b-field label="Last Date" horizontal>
|
||||
<span :class="overnightTextClass(overnightTask)">
|
||||
{{ overnightTask.last_date || "n/a" }}
|
||||
</span>
|
||||
</b-field>
|
||||
<b-field label="Last Date" horizontal>
|
||||
<span :class="overnightTextClass(overnightTask)">
|
||||
{{ overnightTask.last_date || "n/a" }}
|
||||
</span>
|
||||
</b-field>
|
||||
|
||||
<b-field label="Next Date" horizontal>
|
||||
<span>
|
||||
${rattail_app.render_date(rattail_app.yesterday())} (yesterday)
|
||||
</span>
|
||||
</b-field>
|
||||
<b-field label="Next Date" horizontal>
|
||||
<span>
|
||||
${rattail_app.render_date(rattail_app.yesterday())} (yesterday)
|
||||
</span>
|
||||
</b-field>
|
||||
|
||||
<p class="block">
|
||||
Launching this task will schedule it to begin
|
||||
within one minute. See the Luigi Task
|
||||
Visualizer after that, for current status.
|
||||
</p>
|
||||
<p class="block">
|
||||
Launching this task will schedule it to begin
|
||||
within one minute. See the Luigi Task
|
||||
Visualizer after that, for current status.
|
||||
</p>
|
||||
|
||||
</section>
|
||||
</section>
|
||||
|
||||
<footer class="modal-card-foot">
|
||||
<b-button @click="overnightTaskShowLaunchDialog = false">
|
||||
Cancel
|
||||
</b-button>
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="overnightTaskLaunchSubmit()"
|
||||
:disabled="overnightTaskLaunching">
|
||||
{{ overnightTaskLaunching ? "Working, please wait..." : "Launch" }}
|
||||
</b-button>
|
||||
</footer>
|
||||
</div>
|
||||
</b-modal>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<footer class="modal-card-foot">
|
||||
<b-button @click="overnightTaskShowLaunchDialog = false">
|
||||
Cancel
|
||||
</b-button>
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="overnightTaskLaunchSubmit()"
|
||||
:disabled="overnightTaskLaunching">
|
||||
{{ overnightTaskLaunching ? "Working, please wait..." : "Launch" }}
|
||||
</b-button>
|
||||
</footer>
|
||||
</div>
|
||||
</b-modal>
|
||||
</b-table-column>
|
||||
<template #empty>
|
||||
<p class="block">No tasks defined.</p>
|
||||
</template>
|
||||
|
@ -159,66 +141,42 @@
|
|||
<h3 class="block is-size-3">Backfill Tasks</h3>
|
||||
|
||||
<b-table :data="backfillTasks" hoverable>
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column field="forward"
|
||||
label="Orientation"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.forward ? "Forward" : "Backward" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="last_date"
|
||||
label="Last Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span :class="backfillTextClass(props.row)">
|
||||
{{ props.row.last_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="target_date"
|
||||
label="Target Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.target_date }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="backfillTaskLaunch(props.row)">
|
||||
Launch
|
||||
</b-button>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="script"
|
||||
label="Script"
|
||||
v-slot="props">
|
||||
{{ props.row.script }}
|
||||
</b-table-column>
|
||||
<b-table-column field="forward"
|
||||
label="Orientation"
|
||||
v-slot="props">
|
||||
{{ props.row.forward ? "Forward" : "Backward" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="last_date"
|
||||
label="Last Date"
|
||||
v-slot="props">
|
||||
<span :class="backfillTextClass(props.row)">
|
||||
{{ props.row.last_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="target_date"
|
||||
label="Target Date"
|
||||
v-slot="props">
|
||||
{{ props.row.target_date }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<b-button type="is-primary"
|
||||
icon-pack="fas"
|
||||
icon-left="arrow-circle-right"
|
||||
@click="backfillTaskLaunch(props.row)">
|
||||
Launch
|
||||
</b-button>
|
||||
</b-table-column>
|
||||
<template #empty>
|
||||
<p class="block">No tasks defined.</p>
|
||||
</template>
|
||||
|
|
|
@ -22,36 +22,21 @@
|
|||
<section class="modal-card-body">
|
||||
<b-table :data="mergeRequestRows"
|
||||
striped hoverable>
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="customer_number"
|
||||
label="Customer #"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.customer_number"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="first_name"
|
||||
label="First Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.first_name"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="last_name"
|
||||
label="Last Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-html="props.row.last_name"></span>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="customer_number"
|
||||
label="Customer #"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.customer_number"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="first_name"
|
||||
label="First Name"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.first_name"></span>
|
||||
</b-table-column>
|
||||
<b-table-column field="last_name"
|
||||
label="Last Name"
|
||||
v-slot="props">
|
||||
<span v-html="props.row.last_name"></span>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
</section>
|
||||
|
||||
|
|
|
@ -296,63 +296,45 @@
|
|||
% endif
|
||||
|
||||
<b-table :data="person.phones">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
|
||||
<b-table-column field="preference"
|
||||
label="Preferred"
|
||||
v-slot="props">
|
||||
{{ props.row.preferred ? "Yes" : "" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="type"
|
||||
label="Type"
|
||||
v-slot="props">
|
||||
{{ props.row.type }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="number"
|
||||
label="Number"
|
||||
v-slot="props">
|
||||
{{ props.row.number }}
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_person'):
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" @click.prevent="editPhoneInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
<a href="#" @click.prevent="deletePhone(props.row)"
|
||||
class="has-text-danger">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
<a href="#" @click.prevent="setPreferredPhone(props.row)"
|
||||
v-if="!props.row.preferred">
|
||||
<i class="fas fa-star"></i>
|
||||
Set Preferred
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<b-table-column field="preference"
|
||||
label="Preferred"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.preferred ? "Yes" : "" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="type"
|
||||
label="Type"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.type }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="number"
|
||||
label="Number"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.number }}
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_person'):
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" @click.prevent="editPhoneInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
<a href="#" @click.prevent="deletePhone(props.row)"
|
||||
class="has-text-danger">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
<a href="#" @click.prevent="setPreferredPhone(props.row)"
|
||||
v-if="!props.row.preferred">
|
||||
<i class="fas fa-star"></i>
|
||||
Set Preferred
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
|
||||
</div>
|
||||
|
@ -440,72 +422,51 @@
|
|||
% endif
|
||||
|
||||
<b-table :data="person.emails">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
|
||||
<b-table-column field="preference"
|
||||
label="Preferred"
|
||||
v-slot="props">
|
||||
{{ props.row.preferred ? "Yes" : "" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="type"
|
||||
label="Type"
|
||||
v-slot="props">
|
||||
{{ props.row.type }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="address"
|
||||
label="Address"
|
||||
v-slot="props">
|
||||
{{ props.row.address }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="invalid"
|
||||
label="Invalid?"
|
||||
v-slot="props">
|
||||
<span v-if="props.row.invalid" class="has-text-danger has-text-weight-bold">Invalid</span>
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_person'):
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" @click.prevent="editEmailInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
<a href="#" @click.prevent="deleteEmail(props.row)"
|
||||
class="has-text-danger">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
<a href="#" @click.prevent="setPreferredEmail(props.row)"
|
||||
v-if="!props.row.preferred">
|
||||
<i class="fas fa-star"></i>
|
||||
Set Preferred
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<b-table-column field="preference"
|
||||
label="Preferred"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.preferred ? "Yes" : "" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="type"
|
||||
label="Type"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.type }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="address"
|
||||
label="Address"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.address }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="invalid"
|
||||
label="Invalid?"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-if="props.row.invalid" class="has-text-danger has-text-weight-bold">Invalid</span>
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_person'):
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" @click.prevent="editEmailInit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
<a href="#" @click.prevent="deleteEmail(props.row)"
|
||||
class="has-text-danger">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
<a href="#" @click.prevent="setPreferredEmail(props.row)"
|
||||
v-if="!props.row.preferred">
|
||||
<i class="fas fa-star"></i>
|
||||
Set Preferred
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
|
||||
</div>
|
||||
|
@ -810,45 +771,30 @@
|
|||
<br />
|
||||
|
||||
<b-table :data="employeeHistory">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
|
||||
<b-table-column field="start_date"
|
||||
label="Start Date"
|
||||
v-slot="props">
|
||||
{{ props.row.start_date }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="end_date"
|
||||
label="End Date"
|
||||
v-slot="props">
|
||||
{{ props.row.end_date }}
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_employee_history'):
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#" @click.prevent="editEmployeeHistory(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
<b-table-column field="start_date"
|
||||
label="Start Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.start_date }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="end_date"
|
||||
label="End Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.end_date }}
|
||||
</b-table-column>
|
||||
|
||||
% if request.has_perm('people_profile.edit_employee_history'):
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#" @click.prevent="editEmployeeHistory(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
</b-table-column>
|
||||
% endif
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
|
||||
</div>
|
||||
|
@ -1653,11 +1599,7 @@
|
|||
<script type="text/javascript">
|
||||
|
||||
let ProfileInfoData = {
|
||||
% if buefy_0_8:
|
||||
activeTab: location.hash ? parseInt(location.hash.substring(1)) : undefined,
|
||||
% else:
|
||||
activeTab: location.hash ? location.hash.substring(1) : undefined,
|
||||
% endif
|
||||
person: ${json.dumps(person_data)|n},
|
||||
customers: ${json.dumps(customers_data)|n},
|
||||
member: null, // TODO
|
||||
|
@ -1692,11 +1634,7 @@
|
|||
},
|
||||
|
||||
activeTabChanged(value) {
|
||||
% if buefy_0_8:
|
||||
location.hash = value.toString()
|
||||
% else:
|
||||
location.hash = value
|
||||
% endif
|
||||
this.activeTabChangedExtra(value)
|
||||
},
|
||||
|
||||
|
|
|
@ -52,103 +52,70 @@
|
|||
icon-pack="fas"
|
||||
:loading="searchResultsLoading"
|
||||
:selected.sync="searchResultSelected">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
|
||||
<b-table-column label="${request.rattail_config.product_key_title()}"
|
||||
field="product_key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.product_key }}
|
||||
</b-table-column>
|
||||
<b-table-column label="${request.rattail_config.product_key_title()}"
|
||||
field="product_key"
|
||||
v-slot="props">
|
||||
{{ props.row.product_key }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Brand"
|
||||
field="brand_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.brand_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Brand"
|
||||
field="brand_name"
|
||||
v-slot="props">
|
||||
{{ props.row.brand_name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Description"
|
||||
field="description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
{{ props.row.size }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Description"
|
||||
field="description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
{{ props.row.size }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Unit Price"
|
||||
field="unit_price"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.unit_price_display }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Unit Price"
|
||||
field="unit_price"
|
||||
v-slot="props">
|
||||
{{ props.row.unit_price_display }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Sale Price"
|
||||
field="sale_price"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Sale Price"
|
||||
field="sale_price"
|
||||
v-slot="props">
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_price_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Sale Ends"
|
||||
field="sale_ends"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_ends_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column label="Sale Ends"
|
||||
field="sale_ends"
|
||||
v-slot="props">
|
||||
<span class="has-background-warning">
|
||||
{{ props.row.sale_ends_display }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Department"
|
||||
field="department_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.department_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Department"
|
||||
field="department_name"
|
||||
v-slot="props">
|
||||
{{ props.row.department_name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Vendor"
|
||||
field="vendor_name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.vendor_name }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Vendor"
|
||||
field="vendor_name"
|
||||
v-slot="props">
|
||||
{{ props.row.vendor_name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a :href="props.row.url"
|
||||
target="_blank"
|
||||
class="grid-action">
|
||||
<i class="fas fa-external-link-alt"></i>
|
||||
View
|
||||
</a>
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a :href="props.row.url"
|
||||
target="_blank"
|
||||
class="grid-action">
|
||||
<i class="fas fa-external-link-alt"></i>
|
||||
View
|
||||
</a>
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<template slot="empty">
|
||||
<div class="content has-text-grey has-text-centered">
|
||||
<p>
|
||||
|
|
|
@ -99,83 +99,59 @@
|
|||
|
||||
<b-table
|
||||
:data="tableColumns">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
|
||||
<b-table-column field="name"
|
||||
label="Name"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.name }}
|
||||
</b-table-column>
|
||||
<b-table-column field="name"
|
||||
label="Name"
|
||||
v-slot="props">
|
||||
{{ props.row.name }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="data_type"
|
||||
label="Data Type"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ formatDataType(props.row.data_type) }}
|
||||
</b-table-column>
|
||||
<b-table-column field="data_type"
|
||||
label="Data Type"
|
||||
v-slot="props">
|
||||
{{ formatDataType(props.row.data_type) }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="nullable"
|
||||
label="Nullable"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.nullable ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="nullable"
|
||||
label="Nullable"
|
||||
v-slot="props">
|
||||
{{ props.row.nullable ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="versioned"
|
||||
label="Versioned"
|
||||
:visible="tableVersioned"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.versioned ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
<b-table-column field="versioned"
|
||||
label="Versioned"
|
||||
:visible="tableVersioned"
|
||||
v-slot="props">
|
||||
{{ props.row.versioned ? "Yes" : "No" }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
<b-table-column field="description"
|
||||
label="Description"
|
||||
v-slot="props">
|
||||
{{ props.row.description }}
|
||||
</b-table-column>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a v-if="props.row.name != 'uuid'"
|
||||
href="#"
|
||||
@click.prevent="tableEditColumn(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<b-table-column field="actions"
|
||||
label="Actions"
|
||||
v-slot="props">
|
||||
<a v-if="props.row.name != 'uuid'"
|
||||
href="#"
|
||||
@click.prevent="tableEditColumn(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
|
||||
<a v-if="props.row.name != 'uuid'"
|
||||
href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="tableDeleteColumn(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
<a v-if="props.row.name != 'uuid'"
|
||||
href="#"
|
||||
class="has-text-danger"
|
||||
@click.prevent="tableDeleteColumn(props.index)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
|
||||
</b-table-column>
|
||||
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
</b-table>
|
||||
|
||||
<b-modal has-modal-card
|
||||
|
|
|
@ -20,46 +20,31 @@
|
|||
</p>
|
||||
|
||||
<b-table :data="engines">
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="DB Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="oldest_date"
|
||||
label="Oldest Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-if="props.row.error" class="has-text-danger">
|
||||
error
|
||||
</span>
|
||||
<span v-if="!props.row.error">
|
||||
{{ props.row.oldest_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="newest_date"
|
||||
label="Newest Date"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<span v-if="props.row.error" class="has-text-danger">
|
||||
error
|
||||
</span>
|
||||
<span v-if="!props.row.error">
|
||||
{{ props.row.newest_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="DB Key"
|
||||
v-slot="props">
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="oldest_date"
|
||||
label="Oldest Date"
|
||||
v-slot="props">
|
||||
<span v-if="props.row.error" class="has-text-danger">
|
||||
error
|
||||
</span>
|
||||
<span v-if="!props.row.error">
|
||||
{{ props.row.oldest_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
<b-table-column field="newest_date"
|
||||
label="Newest Date"
|
||||
v-slot="props">
|
||||
<span v-if="props.row.error" class="has-text-danger">
|
||||
error
|
||||
</span>
|
||||
<span v-if="!props.row.error">
|
||||
{{ props.row.newest_date }}
|
||||
</span>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
</%def>
|
||||
|
||||
|
|
|
@ -9,55 +9,40 @@
|
|||
|
||||
<b-table :data="upgradeSystems"
|
||||
sortable>
|
||||
% if buefy_0_8:
|
||||
<template slot-scope="props">
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="label"
|
||||
label="Label"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.label }}
|
||||
</b-table-column>
|
||||
<b-table-column field="command"
|
||||
label="Command"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
sortable>
|
||||
{{ props.row.command }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
% if not buefy_0_8:
|
||||
v-slot="props"
|
||||
% endif
|
||||
>
|
||||
<a href="#"
|
||||
@click.prevent="upgradeSystemEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
v-if="props.row.key != 'rattail'"
|
||||
class="has-text-danger"
|
||||
@click.prevent="updateSystemDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
% if buefy_0_8:
|
||||
</template>
|
||||
% endif
|
||||
<b-table-column field="key"
|
||||
label="Key"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.key }}
|
||||
</b-table-column>
|
||||
<b-table-column field="label"
|
||||
label="Label"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.label }}
|
||||
</b-table-column>
|
||||
<b-table-column field="command"
|
||||
label="Command"
|
||||
v-slot="props"
|
||||
sortable>
|
||||
{{ props.row.command }}
|
||||
</b-table-column>
|
||||
<b-table-column label="Actions"
|
||||
v-slot="props">
|
||||
<a href="#"
|
||||
@click.prevent="upgradeSystemEdit(props.row)">
|
||||
<i class="fas fa-edit"></i>
|
||||
Edit
|
||||
</a>
|
||||
|
||||
<a href="#"
|
||||
v-if="props.row.key != 'rattail'"
|
||||
class="has-text-danger"
|
||||
@click.prevent="updateSystemDelete(props.row)">
|
||||
<i class="fas fa-trash"></i>
|
||||
Delete
|
||||
</a>
|
||||
</b-table-column>
|
||||
</b-table>
|
||||
|
||||
<div style="margin-left: 1rem;">
|
||||
|
|
Loading…
Reference in a new issue