Sha256: f4b47cf2502c4b39d3d7a06c1250a048e1d473d7c9d2f3350648c93e8c438cf3

Contents?: true

Size: 624 Bytes

Versions: 20

Compression:

Stored size: 624 Bytes

Contents

<%
if @attributes['element']
    error_condition = @attributes['error_condition'] || "@inputs[#{@attributes['element']}].error?"
    required =  @attributes['required'] || "@inputs[#{@attributes['element']}].required?"
    el_class = "{ #{@attributes['element']} }_element"
    el_class += " #{@attributes['class']}" if @attributes['class']
else
    error_condition = @attributes['error_condition']
    required = @attributes['required']
    el_class = @attributes['class'] || ''
end
%>
<div class="row <%=el_class%> { (<%=error_condition%>) ? ' error' : '' }{ (<%=required%>) ? ' required' : '' }">
    <%=@content%>
</div>

Version data entries

20 entries across 20 versions & 1 rubygems

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