PN
Phuong Nguyen

Club Creation Form - Copy this Html, Bootstrap Component to your project

<%= form_with(model: club, local: true) do |form| %> <% if club.errors.any? %> <div id="error_explanation" class="alert alert danger"> <h2><%= pluralize(club.errors.count, "error") %> prohibited this club from being saved:</h2> <ul> <% club.errors.full_messages.each do |message| %> <li><%= message %></li> <% end %> </ul> </div> <% end %> <div class="field"> <%= form.label :name %><br> <%= form.text_field :name, autofocus: true %> </div> <div class="field"> <%= form.label :description %><br> <%= form.text_area :description %> </div> <div class="field"> <%= form.label :province_code %><br> <%= form.collection_select :province_code, ProvincesTable.array, :code, :name, include_blank: true %> </div> <div class="field"> <%= form.label :location_url %><br> <%= form.url_field :location_url %> </div> <div class="field"> <%= form.label :club_alias %><br> <i>https://pickleballviet.org/<i> <%= form.text_field :club_alias %> </div> <div class="actions"> <%= form.submit "Create Club", class: 'btn btn primary' %> </div> <% end %>

Prompt
Component Preview

About

Club Creation Form - Easily create clubs with fields for name, description, province, location URL, and alias. Built with HTML and Boot. Copy template now!

Share

Last updated 1 month ago