FETPROFIL

This commit is contained in:
Andreas Stephanides
2013-08-22 12:08:27 +02:00
parent 5aca5eca1c
commit 1289045e06
2 changed files with 15 additions and 23 deletions

View File

@@ -1,21 +1,9 @@
<h1>Listing fetprofiles</h1>
<table>
<tr>
<th>Vorname</th>
<th>Nachname</th>
<th>Short</th>
<th>Fetmailalias</th>
<th>Desc</th>
<th>Active</th>
<th></th>
<th></th>
<th></th>
</tr>
<ul>
<% @fetprofiles.each do |fetprofile| %>
<tr>
<li>
<%= %>
<td><%= fetprofile.vorname %></td>
<td><%= fetprofile.nachname %></td>
<td><%= fetprofile.short %></td>
@@ -26,9 +14,9 @@
<td><%= link_to 'Show', fetprofile %></td>
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
</tr>
</li>
<% end %>
</table>
</ul>
<br />

View File

@@ -19,15 +19,19 @@
</div>
</div>
<div class="row-fluid">
<div class="span12">
<% @fetprofile.memberships.each do |m| %>
<%= m.start.to_s %>
<%= m.gremium.try(:name).to_s %>
<%= link_to 'edit', edit_fetprofile_membership_path(@fetprofile,m) %>
<% end %>
<ul>
<% @fetprofile.memberships.each do |m| %>
<li><%= m.start.to_s %> bis <%= m.stop.to_s %> in <%= m.gremium.try(:name).to_s %>
<%= link_to 'edit', edit_fetprofile_membership_path(@fetprofile,m) %>
</li>
<% end %>
</ul>
<%= link_to 'Edit', new_fetprofile_membership_path(@fetprofile) %> |
<%= link_to 'Neue Mitgliedschaft', new_fetprofile_membership_path(@fetprofile) %> |
<%= link_to 'Edit', edit_fetprofile_path(@fetprofile) %> |
<%= link_to 'Back', fetprofiles_path %>