Sha256: 8154740bde6b77fade4dd8b9cda15b7b7a8fc2c1f5f02e00ca476c1c388c07ae
Contents?: true
Size: 997 Bytes
Versions: 9
Compression:
Stored size: 997 Bytes
Contents
= form_for @field do |f| - if @field.errors.any? .alert.alert-error.fade.in.span12 = link_to "×", "#", :class => "close", 'data-dismiss' => 'alert' - @field.errors.full_messages.each do |m| = m .form-horizontal .control-group = f.label :name, :class => 'control-label' .controls= f.text_field :name, :class => "span4" .control-group = f.label :code_name, :class => 'control-label' .controls= f.text_field :code_name, :class => "span4" = f.hidden_field :template_id, :value => @field.template.id, :class => "span4" .control-group = f.label :type_value, :class => 'control-label' .controls = f.select :type_value, options_for_select(types_value, :selected => @field.type_value), :class => "span4" .row-fluid .span12 .form-actions .btn-group = f.submit :class => "btn btn-primary" = link_to "Отмена", template_url(@field.template), :class => "btn"
Version data entries
9 entries across 9 versions & 2 rubygems