From 6ceae6b02d89bfebbb3bec13ce9525014cbdd2a7 Mon Sep 17 00:00:00 2001 From: Paul Duncan Date: Sat, 2 Apr 2016 02:06:31 -0400 Subject: add search-field and searching to users panel --- src/guff/views/ecrs/test/auth.ecr | 80 ++++++++++++++++++++++++++++++--------- src/guff/views/html/test/auth.cr | 6 ++- 2 files changed, 67 insertions(+), 19 deletions(-) (limited to 'src/guff/views') diff --git a/src/guff/views/ecrs/test/auth.ecr b/src/guff/views/ecrs/test/auth.ecr index ab9f552..00cc918 100644 --- a/src/guff/views/ecrs/test/auth.ecr +++ b/src/guff/views/ecrs/test/auth.ecr @@ -24,28 +24,11 @@ Users -
- - - - - - - -
-
@@ -55,6 +38,67 @@
+
+ +
+ + +
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr index 1baa7de..528b652 100644 --- a/src/guff/views/html/test/auth.cr +++ b/src/guff/views/html/test/auth.cr @@ -4,6 +4,10 @@ require "../page" class Guff::TestAuthHTMLView TITLE = "Guff Auth Test" FEATURES = %w{bootstrap font-awesome guff/util} + SCRIPTS = %w{ + /guff-stuff/js/search-field.js + /guff-stuff/test/auth.js + } TEMPLATES = TemplateCache.new({ role: " @@ -27,7 +31,7 @@ class Guff::TestAuthHTMLView def run(context) page = PageHTMLView.new(TITLE, self.to_s) page.add_features(FEATURES) - page.scripts << "/guff-stuff/test/auth.js" + page.scripts.concat(SCRIPTS) context.response.content_type = page.content_type context.response.puts page end -- cgit v1.2.3