Use admin table settings component to render featured settings
Now, with the same template we can render all kind of settings.
This commit is contained in:
committed by
Javi Martín
parent
e7223ba865
commit
6a64f38d17
@@ -6,6 +6,6 @@ var form = $("<%= j render Admin::Settings::FeaturedSettingsFormComponent.new(
|
||||
|
||||
$("#" + form.attr("id")).html(form.html()).find("[type='submit']").focus();
|
||||
|
||||
<% if @setting.type == "feature" || @setting.type == "process" %>
|
||||
<% if @setting.prefix == "feature" || @setting.prefix == "process" %>
|
||||
$("#side_menu").html("<%= j render Admin::MenuComponent.new %>").foundation();
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user