anchor.diff:          </script>
         <% end %>
       </div>
  -    <% if !edit %>
  +    <% if allow_new %>
         <div id="<%= new_item_collapsible_id %>" data-role="collapsible" data-collapsed="<%= !existingcollapsed %>">
           <%
             first = true
  
positive.code: 
  # Some user confusion when existing is expanded, so we always collapse it,
  # unless new isn't shown
  if !edit
    existingcollapsed = true
    
    if !existingobj.id.nil?
      existingcollapsed = false
    end
  end
  
  %>
  
negative.code:           end
          %>
          <%= f.fields_for name, existingobj do |sub_fields| %>
            <h3><%= t("myplaceonline.general.new") + " " + heading %></h3>
            <%= render partial: objform + ".html", locals: { f: sub_fields, obj: existingobj, edit: false, autofocus: autofocus } %>
            <%
               if existingcollapsed && autofocus && first
                 first = false
  