Project

General

Profile

« Previous | Next » 

Revision 82e47ae0

Added by Amos Benari about 12 years ago

  • ID 82e47ae0f86994702c3a084cc6150250a81034ee

updates UI to bootstrap v2

View differences:

app/views/lookup_keys/_fields.html.erb
<div <%= "id=#{f.object.key || 'new_lookup_keys'}" %> class="fields" >
<%= remove_child_link "Remove #{f.object.new_record? ? "Variable" : f.object}", f , {:class => 'btn danger action_btn'} unless controller_name == "lookup_keys" %>
<div <%= "id=#{f.object.key || 'new_lookup_keys'} class='tab-pane fields' " %> >
<%= remove_child_link "Remove #{f.object.new_record? ? "Variable" : f.object}", f , {:class => 'btn btn-danger action_btn'} unless controller_name == "lookup_keys" %>
<%= text_f f, :key, :label => "Name" %>
<%= text_f f, :description %>
<%= text_f f, :default_value, :class => "xxlarge", :help_inline => popover("?","value to use when there is no match", :title => "Default Value").html_safe %>
<%= text_f f, :default_value, :class => "input-xxlarge", :help_inline => popover("?","value to use when there is no match", :title => "Default Value").html_safe %>
<%= selectable_f f, :validator_type, options_for_select(LookupKey::VALIDATION_TYPES, f.object.validator_type),
{ :include_blank => "string"},
{ :label => "Type Validator", :class => "medium",
:help_inline => popover("?","<dl> <dt>String</dt> <dd>everything goes</dd> <dt>Regexp</dt> <dd>regular expression to verify the value</dd>
<dt>List</dt> <dd>comma seperated values, e.g. 80,443<dd> </dt>", :title => "How values are validated").html_safe}
%>
<%= text_f f, :validator_rule, :label => "Validator constraint", :class => "xxlarge",
<%= text_f f, :validator_rule, :label => "Validator constraint", :class => "input-xxlarge",
:help_inline => popover("?","Values to match Type validator, leave blank if its String", :title => "Validator constraint")%>
<%= textarea_f f, :path, :rows => "4", :value => f.object.path, :label => "Order",
:help_inline => popover("?", "The order in which matchers keys are processed, first match wins.<br>

Also available in: Unified diff