Sha256: 552663ca5d29ff11eef7a5ac586f627d4123ab4bcd0cb357968eb770f37e06e9

Contents?: true

Size: 579 Bytes

Versions: 8

Compression:

Stored size: 579 Bytes

Contents

<h1>FormHelper</h1>

<%= form_for @post do |f| %>
  <span style="color: red;"><%= @error %></span>
  <%= f.text_field :body %>

  <h2>Buttons</h2>
  <table>
    <tbody>
      <tr>
        <td><%= f.submit_with_popup 'submit' %></td>
        <td><%= f.submit_with_popup 'submit (with popup_features)', popup_features: 'width=300,height=200' %></td>
        <td><%= f.submit_with_popup 'submit (with confirm)', data: { confirm: 'Are you sure?' } %></td>
        <td><%= f.button_with_popup 'button' %></td>
    </tbody>
  </table>

  <%= hidden_field_tag :view, @view %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
with_popup-0.1.0 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.7 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.6 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.5 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.4 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.3 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.2 spec/dummy/app/views/posts/form_helper.html.erb
with_popup-0.0.1 spec/dummy/app/views/posts/form_helper.html.erb