Sha256: fa5087a2d3ca7b441bbde761e69d472b0c17550e044601f66f1a7fe2dd2f93c3
Contents?: true
Size: 1.09 KB
Versions: 22
Compression:
Stored size: 1.09 KB
Contents
<% tag_attrs = ['required', 'element', 'error_condition', 'inputs_hash'] inputs_hash = @attributes['inputs_hash'] || 'inputs' error_condition = @attributes['error_condition'] ? @attributes['error_condition'] : "#{inputs_hash}[#{@attributes['element']}].error?" required = @attributes['required'] ? @attributes['required'] : "#{inputs_hash}[#{@attributes['element']}].required?" %> <forms:row error_condition="<%=error_condition%>" required="<%=required%>" element="<%=@attributes['element']%>"> <forms:element_label element="<%=@attributes['element']%>" required="<%=required%>" inputs_hash="<%=inputs_hash%>"/> <sp:run obj="@<%=inputs_hash%>[<%=@attributes['element']%>]" widget="<%=@attributes['element']%>"> <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="required" value="<%=(@attributes['required']=='true')? 'true' : ''%>" /> <% (@attributes.keys - tag_attrs).each do |k| %> <sp:attribute widget="<%=@attributes['element'][1..-1]%>" name="<%=k%>" value="<%=@attributes[k]%>" /> <% end %> </sp:run> </forms:row>
Version data entries
22 entries across 22 versions & 1 rubygems