Sha256: b3406b5e3e4cef530af5e1781e7ee325fd134ecffb150d69d76989df453946d8

Contents?: true

Size: 760 Bytes

Versions: 153

Compression:

Stored size: 760 Bytes

Contents

<%= form_for contact do |f| %>
  <% if contact.errors.any? %>
    <div class="form-errors">
      <div class="alert shadow-lg alert-error text-white">
        Your form's got some errors
      </div>
    </div>
  <% end %>
  <%= f.text_field :name, placeholder: "Your first name", class: "input input-bordered w-full max-w-xs my-5" %>
  <%= inline_error_for(:name, contact) %>
  <%= f.text_field :age, placeholder: "Your age", class: "input input-bordered w-full max-w-xs my-4" %>
  <%= inline_error_for(:age, contact) %>
  <%= f.text_field :email, placeholder: "Your email address", class: "input input-bordered w-full max-w-xs my-4" %>
  <%= inline_error_for(:email, contact) %>
  <%= f.submit "Save", class: "form-control btn btn-primary my-4" %>
<% end %>

Version data entries

153 entries across 77 versions & 1 rubygems

Version Path
rails_app_generator-0.2.30 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.30 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.29 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.29 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.28 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.28 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.27 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.27 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.26 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.26 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.25 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.25 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.24 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.24 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.23 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.23 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.22 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.22 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb
rails_app_generator-0.2.21 after_templates/rag/tailwind_hotwire_form/_form.html.erb
rails_app_generator-0.2.21 after_templates/rag/tailwind_hotwire_form_search/_form.html.erb