Sha256: 6e19a824a1c93119549f7543c05d43bee37094e87122153de414dc606a3e68ca
Contents?: true
Size: 1.93 KB
Versions: 15
Compression:
Stored size: 1.93 KB
Contents
<%=select_tag("rules[#{rule.class.dependency}][#{index}][definition][part1]", options_for_select(rule.class.rule_options, rule.definition[:part1]), :style => "width:120px", :onChange=>"updateLanguageRules()")%> <%=text_field_tag("rules[#{rule.class.dependency}][#{index}][definition][value1]", rule.humanize_values(rule.definition[:value1]), :style => "width:200px")%> <% multipart = (rule.definition[:multipart].to_s == "true") %> <% rule_key = "#{rule.class.dependency}_#{index}" %> <% link_style = 'display:none' if multipart %> <span id="extension_link_<%=rule_key%>" style="vertical-align:bottom;<%= link_style %>"> <%=link_to_function(trl("more {raquo}"), "Tr8n.Effects.show('rule_#{rule_key}_second_part'); Tr8n.Effects.hide('extension_link_#{rule_key}'); Tr8n.element('rule_#{rule_key}_multipart').value='true';")%> </span> <% second_part_style = 'display:none' unless multipart %> <span id="rule_<%=rule_key%>_second_part" style="<%= second_part_style %>"> <%=hidden_field_tag("rules[#{rule.class.dependency}][#{index}][definition][multipart]", rule.definition[:multipart].to_s, :id => "rule_#{rule_key}_multipart")%> <%=select_tag("rules[#{rule.class.dependency}][#{index}][definition][operator]", options_for_select(rule.class.operator_options, rule.definition[:operator]), :onChange=>"updateLanguageRules()")%> <%=select_tag("rules[#{rule.class.dependency}][#{index}][definition][part2]", options_for_select(rule.class.rule_options, rule.definition[:part2]), :style => "width:120px", :onChange=>"updateLanguageRules()")%> <%=text_field_tag("rules[#{rule.class.dependency}][#{index}][definition][value2]", rule.humanize_values(rule.definition[:value2]), :style => "width:200px")%> <span style="vertical-align:bottom;"> <%=link_to_function(trl("{laquo} less"), "Tr8n.Effects.hide('rule_#{rule_key}_second_part'); Tr8n.Effects.show('extension_link_#{rule_key}'); Tr8n.element('rule_#{rule_key}_multipart').value='false';")%> </span> </span>
Version data entries
15 entries across 15 versions & 1 rubygems