Commit 2872dc6b authored by marcheing's avatar marcheing

Remove profile index view

Signed-off-by: Diego de Araújo Martinez Camarinha's avatarDiego Araújo <[email protected]>
parent 14cbf509
Pipeline #3585401 passed with stage
in 5 minutes and 23 seconds
<p id="notice"><%= notice %></p>
<h1>Profiles</h1>
<table>
<thead>
<tr>
<th>First name</th>
<th>Last name</th>
<th>Birthdate</th>
<th>Gender</th>
<th>State</th>
<th>City</th>
<th>Country</th>
<th>School</th>
<th>Responsible document</th>
<th>Responsible name</th>
<th>Receive mass email</th>
<th>Phone</th>
<th>User</th>
<th>Address</th>
<th>Zip code</th>
<th>Occupation</th>
<th>School type</th>
<th colspan="3"></th>
</tr>
</thead>
<tbody>
<% @profiles.each do |profile| %>
<tr>
<td><%= profile.first_name %></td>
<td><%= profile.last_name %></td>
<td><%= profile.birthdate %></td>
<td><%= profile.gender %></td>
<td><%= profile.state %></td>
<td><%= profile.city %></td>
<td><%= profile.country %></td>
<td><%= profile.school %></td>
<td><%= profile.responsible_document %></td>
<td><%= profile.responsible_name %></td>
<td><%= profile.receive_mass_email %></td>
<td><%= profile.phone %></td>
<td><%= profile.user_id %></td>
<td><%= profile.address %></td>
<td><%= profile.zip_code %></td>
<td><%= profile.occupation %></td>
<td><%= profile.school_type %></td>
<td><%= link_to 'Show', profile %></td>
<td><%= link_to 'Edit', edit_profile_path(profile) %></td>
<td><%= link_to 'Destroy', profile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= link_to 'New Profile', new_profile_path %>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment