+ You may download this set as a single data file if you like.
+
+
-
-
-
- % for key, label in six.iteritems(master.download_results_supported_formats()):
- ${label}
- % endfor
-
-
-
+
+
+
+ % for key, label in six.iteritems(master.download_results_supported_formats()):
+ ${label}
+ % endfor
+
+
+
-
+
-
-
- Will use DEFAULT fields.
-
-
- Will use ALL fields.
-
+
+
+ Will use DEFAULT fields.
+
+
+ Will use ALL fields.
+
+
+
+
+
+
+ Use Default Fields
+
+
+ Use All Fields
+
+
+ Choose Fields
+
+
+
+
+
+
+
+
+
+ {{ field }}
+
+
+
+
+
+
+
+ <
+
-
-
-
-
- Use Default Fields
-
-
- Use All Fields
-
-
- Choose Fields
+
+ >
-
-
-
-
-
-
-
- {{ field }}
-
-
-
-
-
-
-
- <
-
-
-
- >
-
-
-
-
-
-
- {{ field }}
-
-
-
-
-
+
+
+
+
+ {{ field }}
+
+
+
-
-
-
+
-
- % endif
+
+
+
+
+
% endif
## download rows for search results
% if master.has_rows and master.results_rows_downloadable and master.has_perm('download_results_rows'):
- % if use_buefy:
-
- {{ downloadResultsRowsButtonText }}
-
- ${h.form(url('{}.download_results_rows'.format(route_prefix)), ref='downloadResultsRowsForm')}
- ${h.csrf_token(request)}
- ${h.end_form()}
- % else:
- ${h.form(url('{}.download_results_rows'.format(route_prefix)))}
- ${h.csrf_token(request)}
-
- Download Rows for Results
-
- ${h.end_form()}
- % endif
+
+ {{ downloadResultsRowsButtonText }}
+
+ ${h.form(url('{}.download_results_rows'.format(route_prefix)), ref='downloadResultsRowsForm')}
+ ${h.csrf_token(request)}
+ ${h.end_form()}
% endif
## merge 2 objects
% if master.mergeable and request.has_perm('{}.merge'.format(permission_prefix)):
- % if use_buefy:
${h.form(url('{}.merge'.format(route_prefix)), class_='control', **{'@submit': 'submitMergeForm'})}
- % else:
- ${h.form(url('{}.merge'.format(route_prefix)), name='merge-things')}
- % endif
${h.csrf_token(request)}
- % if use_buefy:
-
-
- {{ mergeFormButtonText }}
-
- % else:
- ${h.hidden('uuids')}
-
Merge 2 ${model_title_plural}
- % endif
+
+
+ {{ mergeFormButtonText }}
+
${h.end_form()}
% endif
## enable / disable selected objects
% if master.supports_set_enabled_toggle and master.has_perm('enable_disable_set'):
- % if use_buefy:
- ${h.form(url('{}.enable_set'.format(route_prefix)), class_='control', ref='enable_selected_form')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids', v_model='selected_uuids')}
-
- {{ enableSelectedText }}
-
- ${h.end_form()}
- % else:
- ${h.form(url('{}.enable_set'.format(route_prefix)), name='enable-set', class_='control')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids')}
-
Enable Selected
- ${h.end_form()}
- % endif
+ ${h.form(url('{}.enable_set'.format(route_prefix)), class_='control', ref='enable_selected_form')}
+ ${h.csrf_token(request)}
+ ${h.hidden('uuids', v_model='selected_uuids')}
+
+ {{ enableSelectedText }}
+
+ ${h.end_form()}
- % if use_buefy:
- ${h.form(url('{}.disable_set'.format(route_prefix)), ref='disable_selected_form', class_='control')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids', v_model='selected_uuids')}
-
- {{ disableSelectedText }}
-
- ${h.end_form()}
- % else:
- ${h.form(url('{}.disable_set'.format(route_prefix)), name='disable-set', class_='control')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids')}
-
Disable Selected
- ${h.end_form()}
- % endif
+ ${h.form(url('{}.disable_set'.format(route_prefix)), ref='disable_selected_form', class_='control')}
+ ${h.csrf_token(request)}
+ ${h.hidden('uuids', v_model='selected_uuids')}
+
+ {{ disableSelectedText }}
+
+ ${h.end_form()}
% endif
## delete selected objects
% if master.set_deletable and master.has_perm('delete_set'):
- % if use_buefy:
- ${h.form(url('{}.delete_set'.format(route_prefix)), ref='delete_selected_form', class_='control')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids', v_model='selected_uuids')}
-
- {{ deleteSelectedText }}
-
- ${h.end_form()}
- % else:
- ${h.form(url('{}.delete_set'.format(route_prefix)), name='delete-set', class_='control')}
- ${h.csrf_token(request)}
- ${h.hidden('uuids')}
-
Delete Selected
- ${h.end_form()}
- % endif
+ ${h.form(url('{}.delete_set'.format(route_prefix)), ref='delete_selected_form', class_='control')}
+ ${h.csrf_token(request)}
+ ${h.hidden('uuids', v_model='selected_uuids')}
+
+ {{ deleteSelectedText }}
+
+ ${h.end_form()}
% endif
## delete search results
% if master.bulk_deletable and request.has_perm('{}.bulk_delete'.format(permission_prefix)):
- % if use_buefy:
- ${h.form(url('{}.bulk_delete'.format(route_prefix)), ref='delete_results_form', class_='control')}
- ${h.csrf_token(request)}
-
- {{ deleteResultsText }}
-
- ${h.end_form()}
- % else:
- ${h.form(url('{}.bulk_delete'.format(route_prefix)), name='bulk-delete', class_='control')}
- ${h.csrf_token(request)}
-
Delete Results
- ${h.end_form()}
- % endif
+ ${h.form(url('{}.bulk_delete'.format(route_prefix)), ref='delete_results_form', class_='control')}
+ ${h.csrf_token(request)}
+
+ {{ deleteResultsText }}
+
+ ${h.end_form()}
% endif
%def>
@@ -516,7 +322,7 @@
- % endif
- % if request.session.pop('{}.results_xlsx.generated'.format(route_prefix), False):
-
- % endif
-
-% endif
+${parent.body()}
diff --git a/tailbone/templates/master/merge.mako b/tailbone/templates/master/merge.mako
index 8924fcd0..565dece3 100644
--- a/tailbone/templates/master/merge.mako
+++ b/tailbone/templates/master/merge.mako
@@ -3,36 +3,6 @@
<%def name="title()">Merge 2 ${model_title_plural}%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}
- % endif
-%def>
-
<%def name="content_title()">
${instance_title}
%def>
@@ -54,33 +14,19 @@
<%def name="render_xref_helper()">
% if xref_buttons or xref_links:
- % if use_buefy:
-
- Cross-Reference
-
-
- % else:
-
-
Cross-Reference
-
- % for button in xref_buttons:
- ${button}
- % endfor
- % for link in xref_links:
- ${link}
- % endfor
-
+
+ Cross-Reference
+
+
% endif
%def>
@@ -91,63 +37,37 @@
% if master.has_versions and request.rattail_config.versioning_enabled() and request.has_perm('{}.versions'.format(permission_prefix)):
${h.link_to("Version History", action_url('versions', instance))}
% endif
- % if not use_buefy and master.editable and instance_editable and master.has_perm('edit'):
-
${h.link_to("Edit this {}".format(model_title), action_url('edit', instance))}
- % endif
- ${self.context_menu_item_delete()}
- % if not use_buefy and master.creatable and master.show_create_link and master.has_perm('create'):
- % if master.creates_multiple:
-
${h.link_to("Create new {}".format(model_title_plural), url('{}.create'.format(route_prefix)))}
- % else:
-
${h.link_to("Create a new {}".format(model_title), url('{}.create'.format(route_prefix)))}
- % endif
- % endif
- % if not use_buefy and master.cloneable and master.has_perm('clone'):
-
${h.link_to("Clone this as new {}".format(model_title), url('{}.clone'.format(route_prefix), uuid=instance.uuid))}
- % endif
% if master.touchable and request.has_perm('{}.touch'.format(permission_prefix)):
${h.link_to("\"Touch\" this {}".format(model_title), master.get_action_url('touch', instance))}
% endif
- % if not use_buefy and master.has_rows and master.rows_downloadable_csv and master.has_perm('row_results_csv'):
-
${h.link_to("Download row results as CSV", master.get_action_url('row_results_csv', instance))}
- % endif
- % if not use_buefy and master.has_rows and master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
-
${h.link_to("Download row results as XLSX", master.get_action_url('row_results_xlsx', instance))}
- % endif
%def>
<%def name="render_row_grid_tools()">
${rows_grid_tools}
- % if use_buefy:
- % if master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
-
- Download Results XLSX
-
- % endif
- % if master.rows_downloadable_csv and master.has_perm('row_results_csv'):
-
- Download Results CSV
-
- % endif
+ % if master.rows_downloadable_xlsx and master.has_perm('row_results_xlsx'):
+
+ Download Results XLSX
+
+ % endif
+ % if master.rows_downloadable_csv and master.has_perm('row_results_csv'):
+
+ Download Results CSV
+
% endif
%def>
<%def name="render_this_page()">
${parent.render_this_page()}
% if master.has_rows:
- % if use_buefy:
-
- % if rows_title:
-
${rows_title}
- % endif
- ${self.render_row_grid_component()}
- % else:
- ${rows_grid|n}
+
+ % if rows_title:
+
${rows_title}
% endif
+ ${self.render_row_grid_component()}
% endif
%def>
diff --git a/tailbone/templates/master/view_row.mako b/tailbone/templates/master/view_row.mako
index 255caf69..623a33a0 100644
--- a/tailbone/templates/master/view_row.mako
+++ b/tailbone/templates/master/view_row.mako
@@ -12,9 +12,6 @@
% if master.rows_editable and instance_editable and request.has_perm('{}.edit'.format(permission_prefix)):
${h.link_to("Edit this {}".format(model_title), action_url('edit', instance))}
% endif
- % if not use_buefy and instance_deletable and master.has_perm('delete_row'):
-
${h.link_to("Delete this {}".format(model_title), action_url('delete', instance))}
- % endif
% if rows_creatable and request.has_perm('{}.create'.format(permission_prefix)):
${h.link_to("Create a new {}".format(model_title), url('{}.create'.format(route_prefix)))}
% endif
diff --git a/tailbone/templates/messages/archive/index.mako b/tailbone/templates/messages/archive/index.mako
index 002b9e90..16a05ee2 100644
--- a/tailbone/templates/messages/archive/index.mako
+++ b/tailbone/templates/messages/archive/index.mako
@@ -3,15 +3,6 @@
<%def name="title()">Message Archive%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="context_menu_items()">
${parent.context_menu_items()}
${h.link_to("Go to my Message Inbox", url('messages.inbox'))}
diff --git a/tailbone/templates/messages/create.mako b/tailbone/templates/messages/create.mako
index fc046e36..10729590 100644
--- a/tailbone/templates/messages/create.mako
+++ b/tailbone/templates/messages/create.mako
@@ -2,148 +2,26 @@
<%inherit file="/master/create.mako" />
<%namespace file="/messages/recipients.mako" import="message_recipients_template" />
-<%def name="content_title()">${parent.content_title() if not use_buefy else ''}%def>
+<%def name="content_title()">%def>
<%def name="extra_javascript()">
${parent.extra_javascript()}
- % if use_buefy:
- ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.message_recipients.js'))}
- % else:
- ${h.javascript_link(request.static_url('tailbone:static/js/lib/tag-it.min.js'))}
-
- ${self.validate_message_js()}
- % endif
-%def>
-
-<%def name="validate_message_js()">
-
+ ${h.javascript_link(request.static_url('tailbone:static/js/tailbone.buefy.message_recipients.js'))}
%def>
<%def name="extra_styles()">
${parent.extra_styles()}
- % if use_buefy:
-
- % else:
- ${h.stylesheet_link(request.static_url('tailbone:static/css/jquery.tagit.css'))}
- % endif
-%def>
-
-<%def name="before_tag_added()">
- function(event, ui) {
-
- // Lookup the name in cached mapping, and show that on the tag, instead
- // of the UUID. The tagit widget should take care of keeping the
- // hidden field in sync for us, still using the UUID.
- var uuid = ui.tagLabel;
- var name = recipient_mappings.get(uuid);
- ui.tag.find('.tagit-label').html(name);
- }
%def>
<%def name="context_menu_items()">
diff --git a/tailbone/templates/messages/inbox/index.mako b/tailbone/templates/messages/inbox/index.mako
index f88010b0..2ac24b9e 100644
--- a/tailbone/templates/messages/inbox/index.mako
+++ b/tailbone/templates/messages/inbox/index.mako
@@ -3,15 +3,6 @@
<%def name="title()">Message Inbox%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="context_menu_items()">
${parent.context_menu_items()}
${h.link_to("Go to my Message Archive", url('messages.archive'))}
diff --git a/tailbone/templates/messages/index.mako b/tailbone/templates/messages/index.mako
index 4ded5571..3fc82fd3 100644
--- a/tailbone/templates/messages/index.mako
+++ b/tailbone/templates/messages/index.mako
@@ -1,52 +1,6 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/index.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="context_menu_items()">
% if request.has_perm('messages.create'):
${h.link_to("Send a new Message", url('messages.create'))}
@@ -55,25 +9,16 @@
<%def name="grid_tools()">
% if request.matched_route.name in ('messages.inbox', 'messages.archive'):
- % if use_buefy:
- ${h.form(url('messages.move_bulk'), **{'@submit': 'moveMessagesSubmit'})}
- ${h.csrf_token(request)}
- ${h.hidden('destination', value='archive' if request.matched_route.name == 'messages.inbox' else 'inbox')}
- ${h.hidden('uuids', v_model='selected_uuids')}
-
- {{ moveMessagesTextCurrent }}
-
- ${h.end_form()}
- % else:
- ${h.form(url('messages.move_bulk'), name='move-selected')}
- ${h.csrf_token(request)}
- ${h.hidden('destination', value='archive' if request.matched_route.name == 'messages.inbox' else 'inbox')}
- ${h.hidden('uuids')}
-
Move 0 selected to ${'Archive' if request.matched_route.name == 'messages.inbox' else 'Inbox'}
- ${h.end_form()}
- % endif
+ ${h.form(url('messages.move_bulk'), **{'@submit': 'moveMessagesSubmit'})}
+ ${h.csrf_token(request)}
+ ${h.hidden('destination', value='archive' if request.matched_route.name == 'messages.inbox' else 'inbox')}
+ ${h.hidden('uuids', v_model='selected_uuids')}
+
+ {{ moveMessagesTextCurrent }}
+
+ ${h.end_form()}
% endif
%def>
diff --git a/tailbone/templates/messages/view.mako b/tailbone/templates/messages/view.mako
index 78caab93..2e2baa60 100644
--- a/tailbone/templates/messages/view.mako
+++ b/tailbone/templates/messages/view.mako
@@ -1,66 +1,20 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/view.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}
- % if use_buefy:
-
- % else:
- % endif
%def>
<%def name="context_menu_items()">
@@ -86,43 +40,29 @@
<%def name="message_tools()">
% if recipient:
- % if use_buefy:
-
- % if request.has_perm('messages.create'):
-
-
-
-
- % endif
- % if recipient.status == enum.MESSAGE_STATUS_INBOX:
-
-
- % else:
-
-
- % endif
-
- % else:
-
- % if request.has_perm('messages.create'):
- ${h.link_to("Reply", url('messages.reply', uuid=instance.uuid), class_='button')}
- ${h.link_to("Reply to All", url('messages.reply_all', uuid=instance.uuid), class_='button')}
- % endif
- % if recipient.status == enum.MESSAGE_STATUS_INBOX:
- ${h.link_to("Move to Archive", url('messages.move', uuid=instance.uuid) + '?dest=archive', class_='button')}
- % else:
- ${h.link_to("Move to Inbox", url('messages.move', uuid=instance.uuid) + '?dest=inbox', class_='button')}
- % endif
-
- % endif
+
+ % if request.has_perm('messages.create'):
+
+
+
+
+ % endif
+ % if recipient.status == enum.MESSAGE_STATUS_INBOX:
+
+
+ % else:
+
+
+ % endif
+
% endif
%def>
@@ -132,22 +72,14 @@
<%def name="page_content()">
${parent.page_content()}
- % if use_buefy:
-
-
- ${self.message_tools()}
-
- ${self.message_body()}
-
- ${self.message_tools()}
-
- % else:
- ${self.message_tools()}
-
- ${self.message_body()}
-
- ${self.message_tools()}
- % endif
+
+
+ ${self.message_tools()}
+
+ ${self.message_body()}
+
+ ${self.message_tools()}
+
%def>
<%def name="modify_this_page_vars()">
diff --git a/tailbone/templates/ordering/create.mako b/tailbone/templates/ordering/create.mako
index ff0fc836..8f2d5e27 100644
--- a/tailbone/templates/ordering/create.mako
+++ b/tailbone/templates/ordering/create.mako
@@ -1,82 +1,6 @@
## -*- coding: utf-8; -*-
<%inherit file="/batch/create.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
- ${self.func_show_mode()}
-
- % endif
-%def>
-
-<%def name="func_show_mode()">
-
-%def>
+## TODO: deprecate / remove
${parent.body()}
diff --git a/tailbone/templates/ordering/worksheet.mako b/tailbone/templates/ordering/worksheet.mako
index 97b1b51b..e41fe15f 100644
--- a/tailbone/templates/ordering/worksheet.mako
+++ b/tailbone/templates/ordering/worksheet.mako
@@ -3,63 +3,6 @@
<%def name="title()">Ordering Worksheet%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
- ${h.javascript_link(request.static_url('tailbone:static/js/numeric.js'))}
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}
- % endif
-%def>
-
<%def name="render_deform_field(form, field)">
- % if use_buefy:
-
- ${field.serialize(use_buefy=True)|n}
-
- % else:
-
-
-
${field.title}
-
- ${field.serialize()|n}
-
-
-
- % endif
+
+ ${field.serialize()|n}
+
%def>
<%def name="render_form_innards()">
- % if use_buefy:
${h.form(request.current_route_url(), **{'@submit': 'submit{}'.format(form.component_studly)})}
- % else:
- ${h.form(request.current_route_url(), class_='autodisable')}
- % endif
${h.csrf_token(request)}
@@ -75,53 +31,33 @@
${render_deform_field(form, dform['notes'])}
% for key, pform in six.iteritems(params_forms):
- % if use_buefy:
-
- % for field in pform.make_deform_form():
- ${render_deform_field(pform, field)}
- % endfor
-
- % else:
-
- ## TODO: hacky to use deform? at least is explicit..
- % for field in pform.make_deform_form():
- ${render_deform_field(pform, field)}
- % endfor
-
- % endif
+
+ % for field in pform.make_deform_form():
+ ${render_deform_field(pform, field)}
+ % endfor
+
% endfor
- % if use_buefy:
-
- {{ ${form.component_studly}ButtonText }}
-
-
- Cancel
-
- % else:
- ${h.submit('make-batch', "Create Batch")}
- ${h.link_to("Cancel", url('products'), class_='button')}
- % endif
+
+ {{ ${form.component_studly}ButtonText }}
+
+
+ Cancel
+
${h.end_form()}
%def>
<%def name="render_form()">
- % if use_buefy:
-
- % else:
-
- ${self.render_form_innards()}
-
- % endif
+
%def>
<%def name="modify_this_page_vars()">
diff --git a/tailbone/templates/products/index.mako b/tailbone/templates/products/index.mako
index 8eada2fc..0d4bc410 100644
--- a/tailbone/templates/products/index.mako
+++ b/tailbone/templates/products/index.mako
@@ -1,133 +1,26 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/index.mako" />
-<%def name="extra_styles()">
- ${parent.extra_styles()}
- % if not use_buefy:
-
- % endif
-%def>
-
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy and label_profiles and master.has_perm('print_labels'):
-
- % endif
-%def>
-
<%def name="grid_tools()">
${parent.grid_tools()}
% if label_profiles and master.has_perm('print_labels'):
- % if use_buefy:
-
-
-
- % for profile in label_profiles:
-
- ${profile.description}
-
- % endfor
-
-
-
-
-
-
-
- % else:
-
- % endif
+
+
+
+ % for profile in label_profiles:
+
+ ${profile.description}
+
+ % endfor
+
+
+
+
+
+
+
% endif
%def>
diff --git a/tailbone/templates/products/view.mako b/tailbone/templates/products/view.mako
index 0d0b2650..a6df1e7a 100644
--- a/tailbone/templates/products/view.mako
+++ b/tailbone/templates/products/view.mako
@@ -1,94 +1,16 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/view.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy and request.rattail_config.versioning_enabled() and master.has_perm('versions'):
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}
%def>
@@ -100,37 +22,22 @@
%def>
<%def name="left_column()">
- % if use_buefy:
-
- Pricing
-
-
- ${self.render_price_fields(form)}
-
-
-
-
- Flags
-
-
- ${self.render_flag_fields(form)}
-
-
-
- % else:
-
-
Pricing
-
- ${self.render_price_fields(form)}
+
+ Pricing
+
+
+ ${self.render_price_fields(form)}
+
-
-
-
Flags
-
- ${self.render_flag_fields(form)}
+
+
+ Flags
+
+
+ ${self.render_flag_fields(form)}
+
-
- % endif
+
${self.extra_left_panels()}
%def>
@@ -147,23 +54,14 @@
<%def name="extra_main_fields(form)">%def>
<%def name="organization_panel()">
- % if use_buefy:
-
- Organization
-
-
- ${self.render_organization_fields(form)}
-
-
-
- % else:
-
-
Organization
-
- ${self.render_organization_fields(form)}
+
+ Organization
+
+
+ ${self.render_organization_fields(form)}
+
-
- % endif
+
%def>
<%def name="render_organization_fields(form)">
@@ -195,23 +93,14 @@
%def>
<%def name="movement_panel()">
- % if use_buefy:
-
- Movement
-
-
- ${self.render_movement_fields(form)}
-
-
-
- % else:
-
-
Movement
-
- ${self.render_movement_fields(form)}
+
+ Movement
+
+
+ ${self.render_movement_fields(form)}
+
-
- % endif
+
%def>
<%def name="render_movement_fields(form)">
@@ -219,9 +108,7 @@
%def>
<%def name="lookup_codes_grid()">
- % if use_buefy:
- ${lookup_codes['grid'].render_buefy_table_element(data_prop='lookupCodesData')|n}
- % else:
+ ${lookup_codes['grid'].render_buefy_table_element(data_prop='lookupCodesData')|n}
- % endif
%def>
<%def name="lookup_codes_panel()">
- % if use_buefy:
-
- Additional Lookup Codes
-
- ${self.lookup_codes_grid()}
-
-
- % else:
-
-
Additional Lookup Codes
- ${self.lookup_codes_grid()}
-
- % endif
+
+ Additional Lookup Codes
+
+ ${self.lookup_codes_grid()}
+
+
%def>
<%def name="sources_grid()">
- % if use_buefy:
- ${vendor_sources['grid'].render_buefy_table_element(data_prop='vendorSourcesData')|n}
- % else:
+ ${vendor_sources['grid'].render_buefy_table_element(data_prop='vendorSourcesData')|n}
- % endif
%def>
<%def name="sources_panel()">
- % if use_buefy:
-
-
- Vendor Sources
- % if request.rattail_config.versioning_enabled() and master.has_perm('versions'):
-
- (view cost history)
-
- % endif
-
-
- ${self.sources_grid()}
-
-
- % else:
-
- % endif
+
+
+ ${self.sources_grid()}
+
+
%def>
<%def name="notes_panel()">
- % if use_buefy:
-
- Notes
-
-
${form.render_field_readonly('notes')}
-
-
- % else:
-
-
Notes
-
+
+ Notes
+
${form.render_field_readonly('notes')}
-
- % endif
+
%def>
<%def name="ingredients_panel()">
- % if use_buefy:
-
- Ingredients
-
- ${form.render_field_readonly('ingredients')}
-
-
- % else:
-
-
Ingredients
-
+
+ Ingredients
+
${form.render_field_readonly('ingredients')}
-
- % endif
+
%def>
<%def name="extra_left_panels()">%def>
@@ -366,7 +212,7 @@
<%def name="render_this_page()">
${parent.render_this_page()}
- % if use_buefy and request.rattail_config.versioning_enabled() and master.has_perm('versions'):
+ % if request.rattail_config.versioning_enabled() and master.has_perm('versions'):
@@ -447,83 +293,34 @@
%def>
<%def name="page_content()">
- % if use_buefy:
-
- Product
-
-
-
- ${self.render_main_fields(form)}
-
-
- % if image_url:
- ${h.image(image_url, "Product Image", id='product-image', width=150, height=150)}
- % endif
-
-
-
-
-
-
-
- ${self.left_column()}
-
-
- ${self.right_column()}
-
-
-
+
+ Product
+
+
+
+ ${self.render_main_fields(form)}
-
- % else:
- ## legacy / not buefy
-
-
-
-
-
Product
-
-
-
- ${self.render_main_fields(form)}
-
-
- % if image_url:
- ${h.image(image_url, "Product Image", id='product-image', width=150, height=150)}
- % endif
-
-
-
+
+ % if image_url:
+ ${h.image(image_url, "Product Image", id='product-image', width=150, height=150)}
+ % endif
-
-
-
- ${self.left_column()}
-
-
- ${self.right_column()}
-
-
-
+
+
- % if request.rattail_config.versioning_enabled() and master.has_perm('versions'):
-
- ${regular_price_history_grid.render_grid()|n}
-
-
- ${current_price_history_grid.render_grid()|n}
-
-
- ${suggested_price_history_grid.render_grid()|n}
-
-
- ${cost_history_grid.render_grid()|n}
-
- % endif
- % endif
+
+
+ ${self.left_column()}
+
+
+ ${self.right_column()}
+
+
+
+
% if buttons:
${buttons|n}
diff --git a/tailbone/templates/purchases/batches/receive_form.mako b/tailbone/templates/purchases/batches/receive_form.mako
deleted file mode 100644
index 3a3ed888..00000000
--- a/tailbone/templates/purchases/batches/receive_form.mako
+++ /dev/null
@@ -1,468 +0,0 @@
-## -*- coding: utf-8 -*-
-<%inherit file="/base.mako" />
-
-<%def name="title()">Receiving Form (${batch.vendor})%def>
-
-<%def name="head_tags()">
- ${parent.head_tags()}
- ${h.javascript_link(request.static_url('tailbone:static/js/numeric.js'))}
-
-%def>
-
-<%def name="extra_styles()">
- ${parent.extra_styles()}
-
-%def>
-
-
-<%def name="context_menu_items()">
-
${h.link_to("Back to Purchase Batch", url('purchases.batch.view', uuid=batch.uuid))}
-%def>
-
-
-
-
-
-
-
-
${h.checkbox('trash', label="Product will be discarded and cannot be returned", checked=False)}
-
-
-
-
-
Expiration Date
-
${h.text('expiration-date', type='date')}
-
-
${h.checkbox('trash', label="Product will be discarded and cannot be returned", checked=False)}
-
-
-
-
${h.text('ordered-product-textbox', autocomplete='off')}
-
-
please ENTER a scancode
-
-
warning: product not found on current purchase
-
-
diff --git a/tailbone/templates/receiving/create.mako b/tailbone/templates/receiving/create.mako
index c31cb849..35ee878a 100644
--- a/tailbone/templates/receiving/create.mako
+++ b/tailbone/templates/receiving/create.mako
@@ -1,80 +1,6 @@
## -*- coding: utf-8; -*-
<%inherit file="/batch/create.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
- ${self.func_show_batch_type()}
-
- % endif
-%def>
-
-<%def name="func_show_batch_type()">
-
-%def>
+## TODO: deprecate / remove this
${parent.body()}
diff --git a/tailbone/templates/receiving/declare_credit.mako b/tailbone/templates/receiving/declare_credit.mako
index 84d4dbec..6224a539 100644
--- a/tailbone/templates/receiving/declare_credit.mako
+++ b/tailbone/templates/receiving/declare_credit.mako
@@ -11,35 +11,6 @@
% endif
%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="render_buefy_form()">
@@ -75,30 +46,7 @@
%def>
<%def name="render_form()">
- % if use_buefy:
-
- ${form.render_deform(buttons=capture(self.render_form_buttons), form_body=capture(self.buefy_form_body))|n}
-
- % else:
-
-
- Please select the "state" of the product, and enter the appropriate
- quantity.
-
-
-
- Note that this tool will deduct from the "received"
- quantity, and add to the corresponding credit quantity.
-
-
-
- Please see ${h.link_to("Receive Row", url('{}.receive_row'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid))}
- if you need to "receive" instead of "convert" the product.
-
-
- ${parent.render_form()}
-
- % endif
+ ${form.render_deform(buttons=capture(self.render_form_buttons), form_body=capture(self.buefy_form_body))|n}
%def>
diff --git a/tailbone/templates/receiving/receive_row.mako b/tailbone/templates/receiving/receive_row.mako
index b17b118a..7ef95ac4 100644
--- a/tailbone/templates/receiving/receive_row.mako
+++ b/tailbone/templates/receiving/receive_row.mako
@@ -11,35 +11,6 @@
% endif
%def>
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="render_buefy_form()">
@@ -72,30 +43,7 @@
%def>
<%def name="render_form()">
- % if use_buefy:
-
- ${form.render_deform(buttons=capture(self.render_form_buttons), form_body=capture(self.buefy_form_body))|n}
-
- % else:
-
-
- Please select the "state" of the product, and enter the appropriate
- quantity.
-
-
-
- Note that this tool will add the corresponding
- quantities for the row.
-
-
-
- Please see ${h.link_to("Declare Credit", url('{}.declare_credit'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid))}
- if you need to "convert" some already-received amount, into a credit.
-
-
- ${parent.render_form()}
-
- % endif
+ ${form.render_deform(buttons=capture(self.render_form_buttons), form_body=capture(self.buefy_form_body))|n}
%def>
diff --git a/tailbone/templates/receiving/view.mako b/tailbone/templates/receiving/view.mako
index f4a90dcb..463fdf6c 100644
--- a/tailbone/templates/receiving/view.mako
+++ b/tailbone/templates/receiving/view.mako
@@ -1,311 +1,32 @@
## -*- coding: utf-8; -*-
<%inherit file="/batch/view.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy and master.has_perm('edit_row'):
- ${h.javascript_link(request.static_url('tailbone:static/js/numeric.js'))}
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}
- % if use_buefy:
-
- % elif not use_buefy and not batch.executed and master.has_perm('edit_row'):
-
- % endif
+ tr.invoice_cost_confirmed td.c_invoice_unit_cost {
+ background-color: #cfc;
+ }
+ % endif
+
%def>
<%def name="render_po_vs_invoice_helper()">
- % if use_buefy and master.handler.has_purchase_order(batch) and master.handler.has_invoice_file(batch):
+ % if master.handler.has_purchase_order(batch) and master.handler.has_invoice_file(batch):
PO vs. Invoice
@@ -321,60 +42,51 @@
Tools
- % if use_buefy:
-
- Auto-Receive All Items
-
- % else:
- ${h.form(url('{}.auto_receive'.format(route_prefix), uuid=batch.uuid), class_='autodisable')}
- ${h.csrf_token(request)}
- ${h.submit('submit', "Auto-Receive All Items")}
- ${h.end_form()}
- % endif
+
+ Auto-Receive All Items
+
- % if use_buefy:
-
-
+
+
-
- Auto-Receive All Items
-
+
+ Auto-Receive All Items
+
-
-
- You can automatically set the "received" quantity to
- match the "shipped" quantity for all items, based on
- the invoice.
-
-
- Would you like to do so?
-
-
+
+
+ You can automatically set the "received" quantity to
+ match the "shipped" quantity for all items, based on
+ the invoice.
+
+
+ Would you like to do so?
+
+
-
-
-
- % endif
+
+
+
% endif
%def>
@@ -607,14 +319,3 @@
${parent.body()}
-
-% if not use_buefy and master.handler.allow_truck_dump_receiving() and master.has_perm('edit_row'):
- ${h.form(url('{}.transform_unit_row'.format(route_prefix), uuid=batch.uuid), name='transform-unit-form')}
- ${h.csrf_token(request)}
- ${h.hidden('row_uuid')}
- ${h.end_form()}
-
-
-% endif
diff --git a/tailbone/templates/receiving/view_row.mako b/tailbone/templates/receiving/view_row.mako
index 308e97d7..4d596391 100644
--- a/tailbone/templates/receiving/view_row.mako
+++ b/tailbone/templates/receiving/view_row.mako
@@ -4,479 +4,456 @@
<%def name="extra_styles()">
${parent.extra_styles()}
%def>
-<%def name="object_helpers()">
- ${parent.object_helpers()}
- % if not use_buefy and master.row_editable(row) and not batch.is_truck_dump_child():
-
-
Receiving Tools
-
-
- ${h.link_to("Receive Product", url('{}.receive_row'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid), class_='button autodisable')}
- ${h.link_to("Declare Credit", url('{}.declare_credit'.format(route_prefix), uuid=batch.uuid, row_uuid=row.uuid), class_='button autodisable')}
+<%def name="page_content()">
+
+
+
+
+
+
+ Product
+
+
+
+ ${form.render_field_readonly('item_entry')}
+ % if row.product:
+ ${form.render_field_readonly(product_key_field)}
+ ${form.render_field_readonly('product')}
+ % else:
+ ${form.render_field_readonly(product_key_field)}
+ % if product_key_field != 'upc':
+ ${form.render_field_readonly('upc')}
+ % endif
+ ${form.render_field_readonly('brand_name')}
+ ${form.render_field_readonly('description')}
+ ${form.render_field_readonly('size')}
+ % endif
+ ${form.render_field_readonly('vendor_code')}
+ ${form.render_field_readonly('case_quantity')}
+ ${form.render_field_readonly('catalog_unit_cost')}
+ % if image_url:
+
+ ${h.image(image_url, "Product Image", width=150, height=150)}
+
+ % endif
- % endif
-%def>
+
-<%def name="page_content()">
- % if use_buefy:
-
-
-
-
-
-
- Product
-
-
-
- ${form.render_field_readonly('item_entry')}
- % if row.product:
- ${form.render_field_readonly(product_key_field)}
- ${form.render_field_readonly('product')}
- % else:
- ${form.render_field_readonly(product_key_field)}
- % if product_key_field != 'upc':
- ${form.render_field_readonly('upc')}
- % endif
- ${form.render_field_readonly('brand_name')}
- ${form.render_field_readonly('description')}
- ${form.render_field_readonly('size')}
- % endif
- ${form.render_field_readonly('vendor_code')}
- ${form.render_field_readonly('case_quantity')}
- ${form.render_field_readonly('catalog_unit_cost')}
-
- % if image_url:
-
- ${h.image(image_url, "Product Image", width=150, height=150)}
-
- % endif
-
-
-
-
-
- Quantities
-
-
-
-
-
- {{ rowData.ordered }}
-
-
-
-
-
- {{ rowData.shipped }}
-
-
-
-
-
- {{ rowData.received }}
-
-
-
- {{ rowData.damaged }}
-
-
-
- {{ rowData.expired }}
-
-
-
- {{ rowData.mispick }}
-
-
-
- {{ rowData.missing }}
-
-
-
-
- % if master.has_perm('edit_row') and master.row_editable(row):
-
-
- Account for Product
-
-
- Declare Credit
-
-
- % endif
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- This is for declaring that you have encountered some
- amount of the product. Ideally you will just
- "receive" it normally, but you can indicate a "credit"
- state if there is something amiss.
-
-
-
-
- % if allow_cases:
-
-
- {{ rowData.case_quantity }}
-
-
-
-
-
-
- % endif
-
-
-
-
- {{ mode }}
-
-
-
-
-
-
-
-
+
+ Quantities
+
+
+
-
-
+
-
+
+
-
+
-
- This is for converting
- some amount you already
- received , and now declaring there is something
- wrong with it.
-
+
-
+
+ This is for declaring that you have encountered some
+ amount of the product. Ideally you will just
+ "receive" it normally, but you can indicate a "credit"
+ state if there is something amiss.
+
-
+
+
+ % if allow_cases:
+
- {{ rowData.received }}
+ {{ rowData.case_quantity }}
+ % endif
-
-
-
- {{ typ }}
-
-
-
+
+
+
+ {{ mode }}
+
+
+
-
-
-
-
+
+
+
+
-
+
-
-
+
+
-
-
-
-
-
-
- % if allow_cases:
-
-
- Units
-
-
- Cases
-
-
- % else:
-
-
- Units
-
- % endif
-
-
- % if allow_cases:
-
- = {{ declareCreditTotalUnits }}
-
- % endif
-
-
+
+
+
-
+
+ % if allow_cases:
+
+
+ Units
+
+
+ Cases
+
+
+ % else:
+
+
+ Units
+
+ % endif
+
-
-
-
+ % if allow_cases:
+
+ = {{ accountForProductTotalUnits }}
+
+ % endif
-
- Credits
-
-
- ${form.render_field_value('credits')}
-
-
-
+
-
+
+
-
- If you un-declare this credit, the quantity below will
- be added back to the
- Received tally.
-
+
-
- {{ removeCreditRow.credit_type }}
-
+
-
- {{ removeCreditRow.shorted }}
-
+
+ This is for converting
+ some amount you already
+ received , and now declaring there is something
+ wrong with it.
+
-
+
-
+
+
+ {{ rowData.received }}
+
+
+
+
+
+
+
+
+
+
+ {{ typ }}
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ % if allow_cases:
+
+
+ Units
+
+
+ Cases
+
+
+ % else:
+
+
+ Units
+
+ % endif
+
+
+ % if allow_cases:
+
+ = {{ declareCreditTotalUnits }}
+
+ % endif
+
+
-
-
+
- % if master.batch_handler.has_purchase_order(batch):
-
- Purchase Order
-
-
- ${form.render_field_readonly('po_line_number')}
- ${form.render_field_readonly('po_unit_cost')}
- ${form.render_field_readonly('po_case_size')}
- ${form.render_field_readonly('po_total')}
-
-
-
- % endif
-
- % if master.batch_handler.has_invoice_file(batch):
-
- Invoice
-
-
- ${form.render_field_readonly('invoice_line_number')}
- ${form.render_field_readonly('invoice_unit_cost')}
- ${form.render_field_readonly('invoice_case_size')}
- ${form.render_field_readonly('invoice_total', label="Invoice Total")}
-
-
-
- % endif
+
+
+
+
+ Credits
+
+
+ ${form.render_field_value('credits')}
+
+
- % else:
- ## legacy / not buefy
- ${parent.page_content()}
- % endif
+
+
+
+
+
+
+
+
+ If you un-declare this credit, the quantity below will
+ be added back to the
+ Received tally.
+
+
+
+ {{ removeCreditRow.credit_type }}
+
+
+
+ {{ removeCreditRow.shorted }}
+
+
+
+
+
+
+
+
+
+
+ % if master.batch_handler.has_purchase_order(batch):
+
+ Purchase Order
+
+
+ ${form.render_field_readonly('po_line_number')}
+ ${form.render_field_readonly('po_unit_cost')}
+ ${form.render_field_readonly('po_case_size')}
+ ${form.render_field_readonly('po_total')}
+
+
+
+ % endif
+
+ % if master.batch_handler.has_invoice_file(batch):
+
+ Invoice
+
+
+ ${form.render_field_readonly('invoice_line_number')}
+ ${form.render_field_readonly('invoice_unit_cost')}
+ ${form.render_field_readonly('invoice_case_size')}
+ ${form.render_field_readonly('invoice_total', label="Invoice Total")}
+
+
+
+ % endif
+
+
%def>
<%def name="modify_this_page_vars()">
diff --git a/tailbone/templates/reports/generated/choose.mako b/tailbone/templates/reports/generated/choose.mako
index 31aa3cd5..55cf71dd 100644
--- a/tailbone/templates/reports/generated/choose.mako
+++ b/tailbone/templates/reports/generated/choose.mako
@@ -1,47 +1,14 @@
## -*- coding: utf-8; -*-
<%inherit file="/master/create.mako" />
-<%def name="extra_javascript()">
- ${parent.extra_javascript()}
- % if not use_buefy:
-
- % endif
-%def>
-
<%def name="extra_styles()">
${parent.extra_styles()}