Compare commits
No commits in common. "f0c0c1b487d16093f521f9fd30b2fed0fe6d0b62" and "9541407978ba25ab8b7df87ea8b3d6016f24463d" have entirely different histories.
f0c0c1b487
...
9541407978
|
@ -17,15 +17,11 @@
|
||||||
<%def name="page_content()">
|
<%def name="page_content()">
|
||||||
% if form is not Undefined:
|
% if form is not Undefined:
|
||||||
<div class="wutta-form-wrapper">
|
<div class="wutta-form-wrapper">
|
||||||
${self.render_form_tag()}
|
${form.render_vue_tag()}
|
||||||
</div>
|
</div>
|
||||||
% endif
|
% endif
|
||||||
</%def>
|
</%def>
|
||||||
|
|
||||||
<%def name="render_form_tag()">
|
|
||||||
${form.render_vue_tag()}
|
|
||||||
</%def>
|
|
||||||
|
|
||||||
<%def name="tool_panels_wrapper()">
|
<%def name="tool_panels_wrapper()">
|
||||||
<div class="tool-panels-wrapper">
|
<div class="tool-panels-wrapper">
|
||||||
${self.tool_panels()}
|
${self.tool_panels()}
|
||||||
|
|
|
@ -2,20 +2,18 @@
|
||||||
<${b}-table :data="gridContext['${grid.key}'].data">
|
<${b}-table :data="gridContext['${grid.key}'].data">
|
||||||
|
|
||||||
% for column in grid.get_vue_columns():
|
% for column in grid.get_vue_columns():
|
||||||
% if not column['hidden']:
|
<${b}-table-column field="${column['field']}"
|
||||||
<${b}-table-column field="${column['field']}"
|
label="${column['label']}"
|
||||||
label="${column['label']}"
|
v-slot="props"
|
||||||
v-slot="props"
|
:sortable="${json.dumps(column.get('sortable', False))|n}"
|
||||||
:sortable="${json.dumps(column.get('sortable', False))|n}"
|
cell-class="c_${column['field']}">
|
||||||
cell-class="c_${column['field']}">
|
% if grid.is_linked(column['field']):
|
||||||
% if grid.is_linked(column['field']):
|
<a :href="props.row._action_url_view"
|
||||||
<a :href="props.row._action_url_view"
|
v-html="props.row.${column['field']}" />
|
||||||
v-html="props.row.${column['field']}" />
|
% else:
|
||||||
% else:
|
<span v-html="props.row.${column['field']}"></span>
|
||||||
<span v-html="props.row.${column['field']}"></span>
|
% endif
|
||||||
% endif
|
</${b}-table-column>
|
||||||
</${b}-table-column>
|
|
||||||
% endif
|
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
% if grid.actions:
|
% if grid.actions:
|
||||||
|
@ -25,9 +23,6 @@
|
||||||
% for action in grid.actions:
|
% for action in grid.actions:
|
||||||
<a v-if="props.row._action_url_${action.key}"
|
<a v-if="props.row._action_url_${action.key}"
|
||||||
:href="props.row._action_url_${action.key}"
|
:href="props.row._action_url_${action.key}"
|
||||||
% if action.click_handler:
|
|
||||||
@click.prevent="${action.click_handler}"
|
|
||||||
% endif
|
|
||||||
class="${action.link_class}">
|
class="${action.link_class}">
|
||||||
${action.render_icon_and_label()}
|
${action.render_icon_and_label()}
|
||||||
</a>
|
</a>
|
||||||
|
|
Loading…
Reference in a new issue