<%# `field-list` in hobo_bootstrap is provided by ``. `` has more options than Hobo's stock field-list's, so please check the `` documentation for more details. When using field-lists, remember to add the form-horizontal class to get the bootstrap looks (this is done automatically in forms and show-page).
%> <%# This tag adds the class 'uneditable-input' to a view. This is very useful with ``, which is the default `` for hobo_bootstrap. Use like so: %> <%# `bootstrap-fields` provides HTML markup for an object in a manner suitable for use inside of Bootstrap's [form-horizontal](http://twitter.github.com/bootstrap/base-css.html#forms). `bootstrap-fields` implements a superset of the `` interface. We only document the differences here. Please read the `` documentation first. ### Attributes - size: # of columns in the grid system. Default is 12 - columns: # of columns. Default is 1. - input-attrs: A ruby hash containing attributes to be merged onto each view. For example `` is equivalent to: %> <% tag ||= scope.in_form ? "input" : "view"; no_edit ||= "skip" -%> <% required ||= "" ; required = comma_split(required.gsub('-', '_')) -%>
<% field_name = this_field_name input_attrs ||= {} input_attrs[:no_edit] = no_edit if tag == "input" && no_edit == "disable" field_method = scope.field_name.to_s.sub('?', '').gsub('.', '-') id_for_this = param_name_for_this.gsub('[', '_').gsub(']', '') error_class = this_parent.errors[this_field].empty? ? "" : "error" -%>

<%= this_field_help %>

<% field_names = with_fields_helper(attributes) field_names = field_names.select {|f| can_view?(this, f)} unless force_all columns = 1 unless columns columns = columns.to_i size = 12 unless size size = size.to_i span_size = size / columns field_names_groups = field_names.in_groups(columns, false) row_classes = "row" row_classes += " columns" if columns > 1 %>
<% field_names_groups.each do |field_names_group| %>
<% field_names_group.each do |field| %><% if field == "this" %><% else %><% end %><% end %>
<% end %>
<% tag ||= scope.in_form ? "input" : "view"; no_edit ||= "skip" -%> <% required ||= "" ; required = comma_split(required.gsub('-', '_')) -%> <% field_name = this_field_name input_attrs = {:no_edit => no_edit} if tag == "input" && no_edit == "disable" field_method = scope.field_name.to_s.sub('?', '').gsub('.', '-') id_for_this = param_name_for_this.gsub('[', '_').gsub(']', '') -%>

<%= this_field_help %>

<% tag ||= scope.in_form ? "input" : "view"; no_edit ||= "skip" -%> <% required ||= "" ; required = comma_split(required.gsub('-', '_')) -%> <% field_name = this_field_name input_attrs = {:no_edit => no_edit} if tag == "input" && no_edit == "disable" field_method = scope.field_name.to_s.sub('?', '').gsub('.', '-') id_for_this = param_name_for_this.gsub('[', '_').gsub(']', '') -%>

<%= this_field_help %>