- added parties
- changed layout for index and added svgs
This commit is contained in:
@ -1,8 +1,6 @@
|
||||
<%= form_with(model: friend, class: "contents") do |form| %>
|
||||
<% if friend.errors.any? %>
|
||||
<div id="error_explanation" class="bg-red-50 text-red-500 px-3 py-2 font-medium rounded-md mt-3">
|
||||
<h2><%= pluralize(friend.errors.count, "error") %> prohibited this friend from being saved:</h2>
|
||||
|
||||
<ul class="list-disc ml-6">
|
||||
<% friend.errors.each do |error| %>
|
||||
<li><%= error.full_message %></li>
|
||||
@ -37,6 +35,6 @@
|
||||
</div>
|
||||
|
||||
<div class="inline">
|
||||
<%= form.submit %>
|
||||
<%= form.submit 'Speichern' %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
Reference in New Issue
Block a user