From a3f7fc1202dd9882aef1b22c23fc8b729ee4f6e3 Mon Sep 17 00:00:00 2001 From: Rob H Date: Thu, 11 Sep 2014 11:42:00 +1000 Subject: [PATCH] Adding column for enterprise limit on users index page --- .../index/add_enterprise_limit_column.html.haml.deface | 3 +++ .../add_enterprise_limit_column_header.html.haml.deface | 3 +++ .../users/index/reconfigure_column_spacing.html.haml.deface | 6 ++++++ 3 files changed, 12 insertions(+) create mode 100644 app/overrides/spree/admin/users/index/add_enterprise_limit_column.html.haml.deface create mode 100644 app/overrides/spree/admin/users/index/add_enterprise_limit_column_header.html.haml.deface create mode 100644 app/overrides/spree/admin/users/index/reconfigure_column_spacing.html.haml.deface diff --git a/app/overrides/spree/admin/users/index/add_enterprise_limit_column.html.haml.deface b/app/overrides/spree/admin/users/index/add_enterprise_limit_column.html.haml.deface new file mode 100644 index 0000000000..d16e186be8 --- /dev/null +++ b/app/overrides/spree/admin/users/index/add_enterprise_limit_column.html.haml.deface @@ -0,0 +1,3 @@ +/ insert_before "td[data-hook='admin_users_index_row_actions']" + +%td.user_enterprise_limit= user.enterprise_limit \ No newline at end of file diff --git a/app/overrides/spree/admin/users/index/add_enterprise_limit_column_header.html.haml.deface b/app/overrides/spree/admin/users/index/add_enterprise_limit_column_header.html.haml.deface new file mode 100644 index 0000000000..f2222ef012 --- /dev/null +++ b/app/overrides/spree/admin/users/index/add_enterprise_limit_column_header.html.haml.deface @@ -0,0 +1,3 @@ +/ insert_before "th[data-hook='admin_users_index_header_actions']" + +%th= sort_link @search,:enterprise_limit, t(:enterprise_limit) \ No newline at end of file diff --git a/app/overrides/spree/admin/users/index/reconfigure_column_spacing.html.haml.deface b/app/overrides/spree/admin/users/index/reconfigure_column_spacing.html.haml.deface new file mode 100644 index 0000000000..d666e1b7c5 --- /dev/null +++ b/app/overrides/spree/admin/users/index/reconfigure_column_spacing.html.haml.deface @@ -0,0 +1,6 @@ +/ replace "table#listing_users colgroup" + +%colgroup + %col{ style: "width: 65%" } + %col{ style: "width: 20%" } + %col{ style: "width: 15%" } \ No newline at end of file