3
0
Fork 0

Compare commits

..

No commits in common. "f0c0c1b487d16093f521f9fd30b2fed0fe6d0b62" and "9541407978ba25ab8b7df87ea8b3d6016f24463d" have entirely different histories.

2 changed files with 13 additions and 22 deletions

View file

@ -17,15 +17,11 @@
<%def name="page_content()">
% if form is not Undefined:
<div class="wutta-form-wrapper">
${self.render_form_tag()}
${form.render_vue_tag()}
</div>
% endif
</%def>
<%def name="render_form_tag()">
${form.render_vue_tag()}
</%def>
<%def name="tool_panels_wrapper()">
<div class="tool-panels-wrapper">
${self.tool_panels()}

View file

@ -2,20 +2,18 @@
<${b}-table :data="gridContext['${grid.key}'].data">
% for column in grid.get_vue_columns():
% if not column['hidden']:
<${b}-table-column field="${column['field']}"
label="${column['label']}"
v-slot="props"
:sortable="${json.dumps(column.get('sortable', False))|n}"
cell-class="c_${column['field']}">
% if grid.is_linked(column['field']):
<a :href="props.row._action_url_view"
v-html="props.row.${column['field']}" />
% else:
<span v-html="props.row.${column['field']}"></span>
% endif
</${b}-table-column>
% endif
<${b}-table-column field="${column['field']}"
label="${column['label']}"
v-slot="props"
:sortable="${json.dumps(column.get('sortable', False))|n}"
cell-class="c_${column['field']}">
% if grid.is_linked(column['field']):
<a :href="props.row._action_url_view"
v-html="props.row.${column['field']}" />
% else:
<span v-html="props.row.${column['field']}"></span>
% endif
</${b}-table-column>
% endfor
% if grid.actions:
@ -25,9 +23,6 @@
% for action in grid.actions:
<a v-if="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}">
${action.render_icon_and_label()}
</a>