Sha256: ae8c31b562cfa6c03c34f4e0052b1d8088ab6f318644fe39618a1fbb1b7edaee

Contents?: true

Size: 1.18 KB

Versions: 38

Compression:

Stored size: 1.18 KB

Contents

<%= fields_for "form[fields][#{index}]", field do |f| %>
    <tr>
      <td>
        <%= f.hidden_field :_type %><%= f.label :name, 'Name *' %>
        <%= f.text_field :name, :disabled => field.mandatory? %>
        <%= f.hidden_field :name if field.mandatory? %>
      </td>
      <td>Text box</td>
      <td><%= f.label :label, 'Label' %><%= f.text_field :label %></td>
      <td><%= f.label :default, 'Default Value' %><%= f.text_field :default %></td>
      <td>
        <%= f.label :rows, 'Number of rows' %>
        <%= f.text_field :rows, :disabled => field.mandatory? %>
        <%= f.hidden_field :rows if field.mandatory? %>
      </td>
      <td class="center">-</td>
      <td>
        <%= f.label :required, 'Required?' %>
        <%= f.check_box :required, :disabled => field.mandatory? %>
        <%= f.hidden_field :required if field.mandatory? %>
      </td>
      <td width="25" class="up"><a class="page_up" title="Move this field up">up</a></td>
      <td width="30" class="down"><a class="page_down" title="Move this field down">down</a></td>
      <td><%= link_to_function 'Delete', 'return delete_form_field(this);', :class => 'delete' unless field.mandatory? %></td>
    </tr>
<% end %>

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
noodall-form-builder-0.2.1 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.2.0 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.1.3 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.1.2 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.1.1 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.1.0 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.13 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.11 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.10 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.9 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.8 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.7 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.6 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.5 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.4 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.3 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.2 app/views/noodall/admin/fields/_text_field.html.erb
noodall-form-builder-0.0.1 app/views/noodall/admin/fields/_text_field.html.erb