summaryrefslogtreecommitdiff
path: root/app/views/tenants
diff options
context:
space:
mode:
authorPeter Kozak <spag@golwen.net>2013-04-19 10:44:31 +0200
committerPeter Kozak <spag@golwen.net>2013-04-19 10:44:31 +0200
commit819978b3d4abffdd49bc5adec47746486d5153a2 (patch)
treedbe116b1a443e2e7d336122d56eefc71273bcafb /app/views/tenants
parentc96827b967bc24e1c304a37be77066f4d853e117 (diff)
groups added to tenant view
Diffstat (limited to 'app/views/tenants')
-rw-r--r--app/views/tenants/_admin_area.de.html.haml2
-rw-r--r--app/views/tenants/_admin_area.en.html.haml3
-rw-r--r--app/views/tenants/_table_of_groups.html.haml8
3 files changed, 13 insertions, 0 deletions
diff --git a/app/views/tenants/_admin_area.de.html.haml b/app/views/tenants/_admin_area.de.html.haml
index 8ca1e79..db21c80 100644
--- a/app/views/tenants/_admin_area.de.html.haml
+++ b/app/views/tenants/_admin_area.de.html.haml
@@ -24,6 +24,8 @@
%h2 Gemeinschaft Konfiguration
= render :partial => 'tenants/gs_parameter_table', :locals => {:tenant => tenant}
+ = render :partial => 'tenants/table_of_groups', :locals => {:tenant => tenant}
+
%p
Das System kann
= PhoneModel.count
diff --git a/app/views/tenants/_admin_area.en.html.haml b/app/views/tenants/_admin_area.en.html.haml
index a10f75a..4b687af 100644
--- a/app/views/tenants/_admin_area.en.html.haml
+++ b/app/views/tenants/_admin_area.en.html.haml
@@ -12,6 +12,7 @@
= render :partial => 'tenants/table_of_automatic_call_distributors', :locals => {:tenant => tenant}
= render :partial => 'tenants/users_table', :locals => {:tenant => tenant}
+
= render :partial => 'tenants/user_groups_table', :locals => {:tenant => tenant}
= render :partial => 'tenants/table_of_phone_books', :locals => {:tenant => tenant}
@@ -24,6 +25,8 @@
%h2 Gemeinschaft Configuration
= render :partial => 'tenants/gs_parameter_table', :locals => {:tenant => tenant}
+ = render :partial => 'tenants/table_of_groups', :locals => {:tenant => tenant}
+
%p
This system can provision a total of
= PhoneModel.count
diff --git a/app/views/tenants/_table_of_groups.html.haml b/app/views/tenants/_table_of_groups.html.haml
new file mode 100644
index 0000000..60f93cc
--- /dev/null
+++ b/app/views/tenants/_table_of_groups.html.haml
@@ -0,0 +1,8 @@
+%h2= t("groups.index.page_title")
+
+- if Group.count <= GsParameter.get('NUMBER_OF_SHOWN_ITEMS')
+ = render "groups/index_core", :groups => Group.all
+ = render :partial => 'shared/create_link', :locals => {:child_class => Group}
+- else
+ %p
+ = link_to t("groups.index.page_title"), groups_path