aboutsummaryrefslogtreecommitdiff
path: root/src/guff
diff options
context:
space:
mode:
authorPaul Duncan <pabs@pablotron.org>2016-04-03 15:49:57 -0400
committerPaul Duncan <pabs@pablotron.org>2016-04-03 15:49:57 -0400
commit88f8bce6155da155c5b4a07fd0de240594d81380 (patch)
tree3068cdf0a3bea95207703b7e4f648123f01f6d6c /src/guff
parentd2f0823c983c6f77bb5474fb6546e16a8acd245b (diff)
downloadold-guff-88f8bce6155da155c5b4a07fd0de240594d81380.tar.bz2
old-guff-88f8bce6155da155c5b4a07fd0de240594d81380.zip
rework new menu, add published checkbox
Diffstat (limited to 'src/guff')
-rw-r--r--src/guff/views/ecrs/test/auth.ecr22
-rw-r--r--src/guff/views/html/test/auth.cr15
2 files changed, 32 insertions, 5 deletions
diff --git a/src/guff/views/ecrs/test/auth.ecr b/src/guff/views/ecrs/test/auth.ecr
index 228c0a5..9c2353b 100644
--- a/src/guff/views/ecrs/test/auth.ecr
+++ b/src/guff/views/ecrs/test/auth.ecr
@@ -746,6 +746,28 @@
rows='15'
></textarea>
</div><!-- form-group -->
+
+ <div class='form-group'>
+ <div class='checkbox'>
+ <label for='project-edit-published'>
+ <input
+ type='checkbox'
+ id='project-edit-published'
+ title='Toggle visibility of this project.'
+ aria-describedby='project-edit-published-help'
+ />
+
+ Published
+ </label><!-- published -->
+ </div><!-- checkbox -->
+
+ <p
+ id='project-edit-published-help'
+ class='help-block'
+ >
+ Is this project visible?
+ </p>
+ </div><!-- form-group -->
</div><!-- modal-body -->
<div class='modal-footer'>
diff --git a/src/guff/views/html/test/auth.cr b/src/guff/views/html/test/auth.cr
index 59e151f..429bdba 100644
--- a/src/guff/views/html/test/auth.cr
+++ b/src/guff/views/html/test/auth.cr
@@ -57,19 +57,24 @@ class Guff::TestAuthHTMLView
title='Choose post type.'
data-toggle='dropdown'
>
+ <span class='hidden'>
+ <i class='fa fa-plus-circle'></i>
+ New
+ </span>
+
<i class='fa fa-caret-down'></i>
</a>
<ul class='dropdown-menu'>
- <li>
+ <li class='hidden'>
<a
href='#'
title='Create new blog post.'
data-toggle='modal'
data-target='#blog-edit-dialog'
>
- <i class='fa fa-bullhorn'></i>
- New Blog Post
+ <i class='fa fa-fw fa-bullhorn'></i>
+ New Post
</a>
</li>
@@ -80,7 +85,7 @@ class Guff::TestAuthHTMLView
data-toggle='modal'
data-target='#page-edit-dialog'
>
- <i class='fa fa-bookmark-o'></i>
+ <i class='fa fa-fw fa-bookmark-o'></i>
New Page
</a>
</li>
@@ -92,7 +97,7 @@ class Guff::TestAuthHTMLView
data-toggle='modal'
data-target='#project-edit-dialog'
>
- <i class='fa fa-cube'></i>
+ <i class='fa fa-fw fa-cube'></i>
New Project
</a>
</li>