Compare commits
3 commits
9541407978
...
f0c0c1b487
Author | SHA1 | Date | |
---|---|---|---|
|
f0c0c1b487 | ||
|
81fa500fb0 | ||
|
9435baebef |
|
@ -17,11 +17,15 @@
|
||||||
<%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">
|
||||||
${form.render_vue_tag()}
|
${self.render_form_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,18 +2,20 @@
|
||||||
<${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():
|
||||||
<${b}-table-column field="${column['field']}"
|
% if not column['hidden']:
|
||||||
label="${column['label']}"
|
<${b}-table-column field="${column['field']}"
|
||||||
v-slot="props"
|
label="${column['label']}"
|
||||||
:sortable="${json.dumps(column.get('sortable', False))|n}"
|
v-slot="props"
|
||||||
cell-class="c_${column['field']}">
|
:sortable="${json.dumps(column.get('sortable', False))|n}"
|
||||||
% if grid.is_linked(column['field']):
|
cell-class="c_${column['field']}">
|
||||||
<a :href="props.row._action_url_view"
|
% if grid.is_linked(column['field']):
|
||||||
v-html="props.row.${column['field']}" />
|
<a :href="props.row._action_url_view"
|
||||||
% else:
|
v-html="props.row.${column['field']}" />
|
||||||
<span v-html="props.row.${column['field']}"></span>
|
% else:
|
||||||
% endif
|
<span v-html="props.row.${column['field']}"></span>
|
||||||
</${b}-table-column>
|
% endif
|
||||||
|
</${b}-table-column>
|
||||||
|
% endif
|
||||||
% endfor
|
% endfor
|
||||||
|
|
||||||
% if grid.actions:
|
% if grid.actions:
|
||||||
|
@ -23,6 +25,9 @@
|
||||||
% 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