- if params[:controller] == "admin/p_spec_types"
  =semantic_form_for [:admin, @p_spec_type], :remote => true do |f|

    .content
      =f.inputs do
        %td
          = f.input :name, :label => "Type"

    .actions=f.submit "sauvegarder", :class => "btn btn-primary"

- else
  =f.inputs do
    = f.input :name, :label => "Type", as: :select, collection: PSpecType.pluck(:name).uniq
