forked from bofh/fetsite
FETPROFIL
This commit is contained in:
@@ -1,21 +1,9 @@
|
|||||||
<h1>Listing fetprofiles</h1>
|
<h1>Listing fetprofiles</h1>
|
||||||
|
|
||||||
<table>
|
<ul>
|
||||||
<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>
|
|
||||||
|
|
||||||
<% @fetprofiles.each do |fetprofile| %>
|
<% @fetprofiles.each do |fetprofile| %>
|
||||||
<tr>
|
<li>
|
||||||
|
<%= %>
|
||||||
<td><%= fetprofile.vorname %></td>
|
<td><%= fetprofile.vorname %></td>
|
||||||
<td><%= fetprofile.nachname %></td>
|
<td><%= fetprofile.nachname %></td>
|
||||||
<td><%= fetprofile.short %></td>
|
<td><%= fetprofile.short %></td>
|
||||||
@@ -26,9 +14,9 @@
|
|||||||
<td><%= link_to 'Show', fetprofile %></td>
|
<td><%= link_to 'Show', fetprofile %></td>
|
||||||
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
|
<td><%= link_to 'Edit', edit_fetprofile_path(fetprofile) %></td>
|
||||||
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
<td><%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %></td>
|
||||||
</tr>
|
</li>
|
||||||
<% end %>
|
<% end %>
|
||||||
</table>
|
</ul>
|
||||||
|
|
||||||
<br />
|
<br />
|
||||||
|
|
||||||
|
|||||||
@@ -19,15 +19,19 @@
|
|||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="row-fluid">
|
<div class="row-fluid">
|
||||||
<div class="span12">
|
<div class="span12">
|
||||||
<% @fetprofile.memberships.each do |m| %>
|
<ul>
|
||||||
<%= m.start.to_s %>
|
<% @fetprofile.memberships.each do |m| %>
|
||||||
<%= m.gremium.try(:name).to_s %>
|
<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) %>
|
<%= link_to 'edit', edit_fetprofile_membership_path(@fetprofile,m) %>
|
||||||
<% end %>
|
</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 'Edit', edit_fetprofile_path(@fetprofile) %> |
|
||||||
<%= link_to 'Back', fetprofiles_path %>
|
<%= link_to 'Back', fetprofiles_path %>
|
||||||
|
|||||||
Reference in New Issue
Block a user