Sha256: d81b52740bddc1fffeee01263adde465cda116320de396d04f4f2cb566230cc5
Contents?: true
Size: 948 Bytes
Versions: 2
Compression:
Stored size: 948 Bytes
Contents
<% tag_attrs = ['required', 'element', 'error_condition'] error_condition = @attributes['error_condition'] ? @attributes['error_condition'] : "@inputs[#{@attributes['element']}].error?" required = @attributes['required'] ? @attributes['required'] : "@inputs[#{@attributes['element']}].required?" %> <forms:row error_condition="<%=error_condition%>" required="<%=required%>"> <forms:element_label element="<%=@attributes['element']%>" required="<%=required%>"/> <sp:run obj="@inputs[<%=@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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spiderfw-0.6.1 | apps/core/forms/tags/element_row.erb |
spiderfw-0.6.0 | apps/core/forms/tags/element_row.erb |