% new_record = @cms_contentitem.new_record? %> <% submit_url = (new_record ? create_content_admin_cms_contentitem_path(@current_page) : admin_cms_contentitem_path(@cms_contentitem)) %> <% title = (new_record ? "New Content" : @cms_contentitem.container.capitalize) %> <%= simple_form_for @cms_contentitem, url: submit_url, html: { class: 'form-horizontal' }, wrapper: :bs3_horizontal_form, wrapper_mappings: DmAdmin::FormWrapperMappings do |f| %> <%= f.error_notification message: "Please review the problems below" %> <%= f.hidden_field :original_updated_on %> <% toolbar = capture do %> <%= link_to icons(:help), '#', class: 'btn btn-link btn-icon', data: { toggle: 'modal', target: '#tag_reference' } %> <%= link_to icons(:cancel), admin_cms_page_url(@current_page), class: 'btn btn-link btn-icon' %> <% end %> <%= panel title: title, toolbar: toolbar do %> <%= locale_tabs do |locale| %>