From fbc68af45055d28fa1fd21eb458d622f8643192e Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Wed, 2 Nov 2016 14:35:13 +0100 Subject: [PATCH] Quick-add content into the current universe scope if it exists --- app/views/content/list/_list.html.erb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/views/content/list/_list.html.erb b/app/views/content/list/_list.html.erb index f054fd67..f2f81040 100644 --- a/app/views/content/list/_list.html.erb +++ b/app/views/content/list/_list.html.erb @@ -54,6 +54,7 @@ <%= f.label "Quick-add a #{content_type.name} by name", class: 'active' %> <%= f.text_field :name %> + <%= f.hidden_field :universe_id, value: (@universe_scope ? @universe_scope.id : nil) %>
<%= f.button 'Quick-add',