From 70a34615a33b66aaafd2e3863c050b95607a194b Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Sat, 2 Dec 2017 14:20:02 -0600 Subject: [PATCH] Expose description and notes for label batches --- tailbone/views/batch/core2.py | 5 +++-- tailbone/views/labels/batch.py | 2 ++ tailbone/views/products.py | 11 +++++++++++ 3 files changed, 16 insertions(+), 2 deletions(-) diff --git a/tailbone/views/batch/core2.py b/tailbone/views/batch/core2.py index d2542803..48b7d69f 100644 --- a/tailbone/views/batch/core2.py +++ b/tailbone/views/batch/core2.py @@ -45,11 +45,12 @@ class BatchMasterView2(MasterView2, BatchMasterView): grid_columns = [ 'id', + 'description', 'created', 'created_by', 'rowcount', - 'status_code', - 'complete', + # 'status_code', + # 'complete', 'executed', 'executed_by', ] diff --git a/tailbone/views/labels/batch.py b/tailbone/views/labels/batch.py index 0caa7c35..f1817015 100644 --- a/tailbone/views/labels/batch.py +++ b/tailbone/views/labels/batch.py @@ -72,6 +72,8 @@ class LabelBatchView(BatchMasterView): fs.configure( include=[ fs.id, + fs.description, + fs.notes, fs.created, fs.created_by, fs.handheld_batches, diff --git a/tailbone/views/products.py b/tailbone/views/products.py index 53e5057e..050ee708 100644 --- a/tailbone/views/products.py +++ b/tailbone/views/products.py @@ -511,6 +511,17 @@ class ProductsView(MasterView): return {'form': form, 'params_forms': params_forms} + def make_batch_params_form_labels(self): + """ + Returns a wtforms.Form object with param fields for making a new + Labels Batch. + """ + class LabelsParamsForm(wtforms.Form): + description = wtforms.StringField() + notes = wtforms.TextAreaField() + + return LabelsParamsForm(self.request.POST) + def make_batch_params_form_pricing(self): """ Returns a wtforms.Form object with param fields for making a new