From 1289045e069c6b389d4438205694f2ec2710b544 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Thu, 22 Aug 2013 12:08:27 +0200 Subject: [PATCH] FETPROFIL --- app/views/fetprofiles/index.html.erb | 22 +++++----------------- app/views/fetprofiles/show.html.erb | 16 ++++++++++------ 2 files changed, 15 insertions(+), 23 deletions(-) diff --git a/app/views/fetprofiles/index.html.erb b/app/views/fetprofiles/index.html.erb index 3f5ce2f..8f27cff 100644 --- a/app/views/fetprofiles/index.html.erb +++ b/app/views/fetprofiles/index.html.erb @@ -1,21 +1,9 @@

Listing fetprofiles

- - - - - - - - - - - - - - + +
  • + <%= %>
  • @@ -26,9 +14,9 @@ - + <% end %> -
    VornameNachnameShortFetmailaliasDescActive
    <%= fetprofile.vorname %> <%= fetprofile.nachname %> <%= fetprofile.short %><%= link_to 'Show', fetprofile %> <%= link_to 'Edit', edit_fetprofile_path(fetprofile) %> <%= link_to 'Destroy', fetprofile, method: :delete, data: { confirm: 'Are you sure?' } %>
    +
    diff --git a/app/views/fetprofiles/show.html.erb b/app/views/fetprofiles/show.html.erb index 7c964a6..99e2912 100644 --- a/app/views/fetprofiles/show.html.erb +++ b/app/views/fetprofiles/show.html.erb @@ -19,15 +19,19 @@ +
    -<% @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 %> +
      + <% @fetprofile.memberships.each do |m| %> +
    • <%= 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) %> +
    • + <% end %> +
    -<%= 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 %>