Overhaul desktop views for receiving, for efficiency
still could use even more i'm sure, but this takes advantage of buefy to add dialogs etc. from the "view receiving batch row" page. this batch no longer allows direct edit of rows but that's hopefully for the better.
This commit is contained in:
parent
2f676774e9
commit
340a177a29
14 changed files with 1014 additions and 157 deletions
|
@ -1,8 +1,8 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
## -*- coding: utf-8; -*-
|
||||
<%inherit file="/master/edit.mako" />
|
||||
|
||||
<%def name="context_menu_items()">
|
||||
<li>${h.link_to("Back to {}".format(model_title), index_url)}</li>
|
||||
<li>${h.link_to("Back to {}".format(parent_model_title), parent_url)}</li>
|
||||
% if master.rows_viewable and request.has_perm('{}.view'.format(row_permission_prefix)):
|
||||
<li>${h.link_to("View this {}".format(row_model_title), row_action_url('view', instance))}</li>
|
||||
% endif
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
% if master.rows_editable and instance_editable and request.has_perm('{}.edit'.format(permission_prefix)):
|
||||
<li>${h.link_to("Edit this {}".format(model_title), action_url('edit', instance))}</li>
|
||||
% endif
|
||||
% if master.rows_deletable and instance_deletable and request.has_perm('{}.delete'.format(permission_prefix)):
|
||||
% if instance_deletable and master.has_perm('delete_row'):
|
||||
<li>${h.link_to("Delete this {}".format(model_title), action_url('delete', instance))}</li>
|
||||
% endif
|
||||
% if rows_creatable and request.has_perm('{}.create'.format(permission_prefix)):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue