<%= form_for @common_parameter do |f| %>
  <%= base_errors_for @common_parameter %>
  <%= text_f f, :name %>
  <% if @common_parameter.hidden_value? %>
    <%= password_f f, :value, :size => "col-md-8", :value => @common_parameter.value %>
  <% else %>
    <%= textarea_f(f, :value,
                      :class => "form-control value col-md-8",
                      :rows => line_count(f, :value),
                      :fullscreen => :true,
                      :placeholder => _("Value")) %>
  <% end %>
  <%= checkbox_f f, :hidden_value, :class => 'hidden_value_textarea_switch', :checked => f.object.hidden_value? %>
  <%= submit_or_cancel f %>
<% end %>
