aboutsummaryrefslogtreecommitdiff
path: root/src/guff/views/html/test
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 13:34:41 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 13:34:41 -0400
commitd2f0823c983c6f77bb5474fb6546e16a8acd245b (patch)
treedf8a3c63287d71e32bcbad3be344dd9d27117e3f /src/guff/views/html/test
parentcefb037b3c329070069ec0df8c325a0f2ac17a33 (diff)
downloadold-guff-d2f0823c983c6f77bb5474fb6546e16a8acd245b.tar.bz2
old-guff-d2f0823c983c6f77bb5474fb6546e16a8acd245b.zip
update post, pag,e and project edit dialogs
Diffstat (limited to 'src/guff/views/html/test')
-rw-r--r--src/guff/views/html/test/auth.cr64
1 files changed, 64 insertions, 0 deletions
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr
index 60bafb3..59e151f 100644
--- a/src/guff/views/html/test/auth.cr
+++ b/src/guff/views/html/test/auth.cr
@@ -38,6 +38,66 @@ class Guff::TestAuthHTMLView
</a>
</li>
",
+
+ new_post_button: "
+ <a
+ href='#'
+ class='btn btn-primary'
+ title='Create new blog post.'
+ data-toggle='modal'
+ data-target='#blog-edit-dialog'
+ >
+ <i class='fa fa-plus-circle'></i>
+ New Post
+ </a><!-- btn -->
+
+ <a
+ href='#'
+ class='btn btn-primary'
+ title='Choose post type.'
+ data-toggle='dropdown'
+ >
+ <i class='fa fa-caret-down'></i>
+ </a>
+
+ <ul class='dropdown-menu'>
+ <li>
+ <a
+ href='#'
+ title='Create new blog post.'
+ data-toggle='modal'
+ data-target='#blog-edit-dialog'
+ >
+ <i class='fa fa-bullhorn'></i>
+ New Blog Post
+ </a>
+ </li>
+
+ <li>
+ <a
+ href='#'
+ title='Create new page.'
+ data-toggle='modal'
+ data-target='#page-edit-dialog'
+ >
+ <i class='fa fa-bookmark-o'></i>
+ New Page
+ </a>
+ </li>
+
+ <li>
+ <a
+ href='#'
+ title='Create new project.'
+ data-toggle='modal'
+ data-target='#project-edit-dialog'
+ >
+ <i class='fa fa-cube'></i>
+ New Project
+ </a>
+ </li>
+ </ul>
+ ",
})
def self.run(models, context : HTTP::Server::Context)
@@ -82,5 +142,9 @@ class Guff::TestAuthHTMLView
}.join
end
+ def get_new_post_button
+ TEMPLATES[:new_post_button].run
+ end
+
ECR.def_to_s("./src/guff/views/ecrs/test/auth.ecr")
end