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

Version Path
spiderfw-0.6.23 apps/core/forms/tags/element_row.erb
spiderfw-0.6.22 apps/core/forms/tags/element_row.erb
spiderfw-0.6.21 apps/core/forms/tags/element_row.erb
spiderfw-0.6.20 apps/core/forms/tags/element_row.erb
spiderfw-0.6.19 apps/core/forms/tags/element_row.erb
spiderfw-0.6.18 apps/core/forms/tags/element_row.erb
spiderfw-0.6.17 apps/core/forms/tags/element_row.erb
spiderfw-0.6.16 apps/core/forms/tags/element_row.erb
spiderfw-0.6.15 apps/core/forms/tags/element_row.erb
spiderfw-0.6.14 apps/core/forms/tags/element_row.erb
spiderfw-0.6.13 apps/core/forms/tags/element_row.erb
spiderfw-0.6.12 apps/core/forms/tags/element_row.erb
spiderfw-0.6.11 apps/core/forms/tags/element_row.erb
spiderfw-0.6.10 apps/core/forms/tags/element_row.erb
spiderfw-0.6.9 apps/core/forms/tags/element_row.erb
spiderfw-0.6.8 apps/core/forms/tags/element_row.erb
spiderfw-0.6.7 apps/core/forms/tags/element_row.erb
spiderfw-0.6.6 apps/core/forms/tags/element_row.erb
spiderfw-0.6.5 apps/core/forms/tags/element_row.erb
spiderfw-0.6.4 apps/core/forms/tags/element_row.erb