From ee608ef008245ade5b2ac12127656e750c0e89bf Mon Sep 17 00:00:00 2001 From: John Small Date: Mon, 1 Oct 2018 15:45:37 +0100 Subject: [PATCH] fixed issue #79 for version 1.12 --- .gitignore | 1 + app/views/comfy/admin/blog/blogs/_form.html.haml | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index cc2d865..e4ca844 100644 --- a/.gitignore +++ b/.gitignore @@ -12,5 +12,6 @@ public/* Gemfile.lock .rvmrc .ruby-version +.ruby-gemset /.sass-cache coverage/ diff --git a/app/views/comfy/admin/blog/blogs/_form.html.haml b/app/views/comfy/admin/blog/blogs/_form.html.haml index 6f0ec8d..749e7fd 100644 --- a/app/views/comfy/admin/blog/blogs/_form.html.haml +++ b/app/views/comfy/admin/blog/blogs/_form.html.haml @@ -2,11 +2,12 @@ = form.text_field :identifier, :data => {:slug => true} = form.text_field :path -- if (options = Comfy::Cms::Layout.app_layouts_for_select).present? +- if (options = Comfy::Cms::Layout.app_layouts_for_select(lookup_context.view_paths)).present? = form.select :app_layout, options = form.text_area :description, :class => 'short' = form.form_group :class => 'form-actions' do = form.submit :class => 'btn btn-primary' - = link_to t('.cancel'), comfy_admin_blogs_path(@site), :class => 'btn btn-link' \ No newline at end of file + = link_to t('.cancel'), comfy_admin_blogs_path(@site), :class => 'btn btn-link' +