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

    .content
      =f.inputs do
        %td
          = f.input :value, :label => "Valeur"
        %td
          = f.input :unit, :label => "Unité", as: :select, collection: PSpecValue::UNITS

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

- else
  =f.inputs do
    %td
      = f.input :value, :label => "Valeur"
    %td
      = f.input :unit, :label => "Unité", as: :select, collection: PSpecValue::UNITS
