diff options
Diffstat (limited to 'src/guff/views/dialogs/admin/site-add.cr')
-rw-r--r-- | src/guff/views/dialogs/admin/site-add.cr | 33 |
1 files changed, 9 insertions, 24 deletions
diff --git a/src/guff/views/dialogs/admin/site-add.cr b/src/guff/views/dialogs/admin/site-add.cr index c124457..50e051d 100644 --- a/src/guff/views/dialogs/admin/site-add.cr +++ b/src/guff/views/dialogs/admin/site-add.cr @@ -1,29 +1,14 @@ require "./site" class Guff::Views::Dialogs::Admin::SiteAdd < Guff::Views::Dialogs::Admin::Site - TABS = [{ - :id => "content", - :css => "active", - :icon => "fa-pencil", - :name => "Content", - :text => "View content tab.", - }, { - :id => "theme", - :css => "", - :icon => "fa-eye", - :name => "Theme", - :text => "View theme tab.", - }, { - :id => "other", - :css => "", - :icon => "fa-ellipsis-h", - :name => "Other", - :text => "View other tab.", - }] - - private def tabs - super("site-add", TABS) + def initialize(context : Context) + super( + context: context, + id: "site-add", + name: "New Site", + save_icon: "fa-plus-circle", + save_text: "Create site.", + save_name: "Create Site", + ) end - - ECR.def_to_s("src/views/dialogs/admin/site-add.ecr") end |