<% if @post.manage_template?(@post_type) && (template_files = cama_get_list_template_files).present? %>
<%= select("meta", "template", template_files, { include_blank: true, selected: (params[:meta][:template] rescue false || @post.get_template(@post_type) ) }, {class: 'form-control'}) %>
<% end %>
<% if @post.manage_layout? && (layout_files = cama_get_list_layouts_files).present? %>
<%= select("meta", "layout", layout_files, { include_blank: true, selected: (params[:meta][:layout] rescue false || @post.get_layout(@post_type) ) }, {class: 'form-control'}) %>
<% end %>
<% if @post.manage_comments?(@post_type) %>
<% end %>
<%= raw @post_form_extra_settings.join("") if @post_form_extra_settings.present? %>