Sha256: 2248bcb1077b28709db8438932652a2b2be88999c14c49d8ce9b8d633b6ea0a8

Contents?: true

Size: 1.11 KB

Versions: 4

Compression:

Stored size: 1.11 KB

Contents

<table class="nostalgic">
  <thead>
    <tr>
      <td>
        <%= f.text_field attr, :class => css_class %>
      </td>
      <td>
        <%= f.text_field "#{attr}_effective_at", :class => 'datepicker', :style => 'display: none;' %>
        <%= image_tag 'nostalgic/list.png', :onclick => 'nostalgic.edit_nostalgic_attr(this); return false;' %>
      </td>
    </tr>
  </thead>
  <tbody style="display: none;">
    <% f.object.public_send(attr.to_s.pluralize).each_with_index do |nostalgic_attr, i| %>
      <%= f.fields_for "#{attr.to_s.pluralize}_attributes][#{i}]", nostalgic_attr do |f| %>
        <tr>
          <td>
            <%= f.hidden_field :id %>
            <%= f.hidden_field :_destroy %>
            <%= f.text_field :value, :class => css_class, :disabled => true, :readonly => true %>
          </td>
          <td>
            <%= f.text_field :effective_at, :class => 'datepicker', :disabled => true, :readonly => true %>
            <%= image_tag 'nostalgic/minus.png', :onclick => 'nostalgic.remove_row(this); return false;' %>
          </td>
        </tr>
      <% end %>
    <% end %>
  </tbody>
</table>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
nostalgic-0.4.0 app/views/nostalgic/_text_field.html.erb
nostalgic-0.3.0 app/views/nostalgic/_text_field.html.erb
nostalgic-0.2.0 app/views/nostalgic/_text_field.html.erb
nostalgic-0.1.7 app/views/nostalgic/_text_field.html.erb