Skip to content

Commit

Permalink
WIP: Hide visible checkbox
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdeyen committed May 27, 2020
1 parent 2486ead commit 32bf2db
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/views/alchemy/admin/pages/_menu_fields.html.erb
@@ -1,5 +1,5 @@
<% if Alchemy::Node.roots.where(language: @page.language).any? %>
<% unless @page.language_root %>
<% unless @page.language_root || @page.visible? %>
<%= page_status_checkbox(@page, :visible, label: Alchemy.t("show in url of child pages")) %>
<% end %>
<% if @page.menus.any? %>
Expand Down Expand Up @@ -33,5 +33,7 @@
</script>
<% end %>
<% else %>
<%= page_status_checkbox(@page, :visible) %>
<% unless @page.language_root || @page.visible? %>
<%= page_status_checkbox(@page, :visible) %>
<% end %>
<% end %>

0 comments on commit 32bf2db

Please sign in to comment.