Sha256: 3f2bc5e831dfa8d064fd89a4e588b53424f8da5e2249335e73f2ef10d1f6b311

Contents?: true

Size: 712 Bytes

Versions: 4

Compression:

Stored size: 712 Bytes

Contents

<fieldset>
  <% node_hash.each do |k,v|%>
      <% if k != :child_node%>
          <legend><%= k.split('_').first %></legend>
          <% if v.is_a?(String) %>
              <%= f.label k.split('_').first %>
              <%= f.text_field k %>
          <% else %>
              <% v.each do |k1,v1|%>
                  <%= f.label k1.split('_').first %>
                  <%= f.text_field k1 %>
              <% end %>
          <% end %>
      <% else %>
          <%if v.is_a?(Array)%>
              <% v.each do |n|%>
               <%== iterate_node(n, f) %>
              <% end %>
          <%else%>
              <%= iterate_node(v, f) %>
          <% end %>
      <% end %>
  <% end %>
</fieldset>




Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xml_to_form-0.0.4 app/views/xml_to_form/xml_handlers/_parent_node_form.html.erb
xml_to_form-0.0.3 app/views/xml_to_form/xml_handlers/_parent_node_form.html.erb
xml_to_form-0.0.2 app/views/xml_to_form/xml_handlers/_parent_node_form.html.erb
xml_to_form-0.0.1 app/views/xml_to_form/xml_handlers/_parent_node_form.html.erb