You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
<%= form_with(model: score, class: "contents") do |form| %> <% if score.errors.any? %> <div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-lg mt-3" > <h2><%= pluralize(score.errors.count, "error") %> prohibited this score from being saved:</h2> <ul> <% score.errors.each do |error| %> <li><%= error.full_message %></li> <% end %>
</ul> </div>
<% end %> <div class="my-5"> <%= form.label :name %> <%= form.text_field :name, class: "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-full" %> </div> <div class="my-5"> <%= form.label :grade %> <%= form.number_field :grade, class: "block shadow rounded-md border border-gray-200 outline-none px-3 py-2 mt-2 w-full" %> </div> <div class="inline"> <%= form.submit class: "rounded-lg py-3 px-5 bg-blue-600 text-white inline-block font-medium cursor-pointer" %> </div> <% end %>
|