ref: master
plugins/products/views/products_plugin/page/new.html.erb
<%= _('New product or service') %>
<%= form_for @product, as: :product, remote: true, loading: "open_loading('#{ _('loading...') }')", url: {action: 'new'}, html: {method: 'post', id: 'category_form', data: {type: 'html', update: '#request_result_message'}} do |f| %><%= _('Select the category of the new product or service') %>
<%= categories_container(select_for_new_category(@categories, @level)) %><%= button :back, _('Back to the product listing'), action: 'index' %> <%= submit_button(:save, _('Save and continue'), id: 'save_and_continue') %> <%= ui_icon('ui-icon-alert') %> <%= _('This category does not allow registration of products, select a more specific category') %><% end %> <%= javascript_tag do %> toggleDisabled(<%= @category && @category.accept_products? ? 'true' : 'false' %>, jQuery('#save_and_continue')[0]) <% end %>