rework friend
This commit is contained in:
@ -1,2 +1,3 @@
|
|||||||
class Party < ApplicationRecord
|
class Party < ApplicationRecord
|
||||||
|
validates :title, :location, :start_date, :start_time, :status, presence: true
|
||||||
end
|
end
|
||||||
|
|||||||
@ -10,6 +10,26 @@
|
|||||||
<%= link_to "Neuer Freund", new_friend_path, class: "btn-new" %>
|
<%= link_to "Neuer Freund", new_friend_path, class: "btn-new" %>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<table class="w-full">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>E-Mail</th>
|
||||||
|
<th>Telefon</th>
|
||||||
|
<th></th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
<% @friends.each do | friend | %>
|
||||||
|
<tr>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
<td></td>
|
||||||
|
</tr>
|
||||||
|
<% end %>
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
<div id="friends" class="min-w-full divide-y divide-gray-200 space-y-5">
|
<div id="friends" class="min-w-full divide-y divide-gray-200 space-y-5">
|
||||||
<% if @friends.any? %>
|
<% if @friends.any? %>
|
||||||
<% @friends.each do |friend| %>
|
<% @friends.each do |friend| %>
|
||||||
|
|||||||
Reference in New Issue
Block a user