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