38 lines
1.2 KiB
Text
38 lines
1.2 KiB
Text
|
<% title "Mein Profil" -%>
|
||
|
|
||
|
<p>
|
||
|
Hier kannst Du deine Einstellungen ändern, z.b. Deine Telphonnummer oder Dein Passwort.
|
||
|
</p>
|
||
|
|
||
|
<div class="left_column" style="width: 60%;">
|
||
|
<div class="box_title">
|
||
|
<h2>
|
||
|
Nickname: <%= h @user.nick %>
|
||
|
<small>(Mitglied seit: <%= distance_of_time_in_words(Time.now, @user.created_on) -%>)</small>#
|
||
|
</h2>
|
||
|
</div>
|
||
|
<div class="column_content">
|
||
|
<% form_for(@user, :url => { :action => 'update_profile'}) do |@form| %>
|
||
|
<%= render :partial => 'shared/user_form' %>
|
||
|
<p style="clear:both">
|
||
|
<%= submit_tag 'Speichern' %> | <%= link_to 'Abbrechen', :action => 'profile' %></p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|
||
|
|
||
|
<div class="right_column" style="width: 35%;">
|
||
|
<div class="box_title">
|
||
|
<h2>Du bist Mitglied in folgenden Gruppen</h2>
|
||
|
</div>
|
||
|
<div class="column_content">
|
||
|
<% for membership in Membership.find_all_by_user_id(@user.id) %>
|
||
|
<p>
|
||
|
<%= membership.group.name %>
|
||
|
<% if membership.group.type != 'Ordergroup' %>
|
||
|
(<%= link_to _("Cancel membership"), { :action => 'cancel_membership', :membership_id => membership },
|
||
|
:confirm => _("Are you sure to cancel this membership?"), :method => :post %>)
|
||
|
<% end %>
|
||
|
</p>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
</div>
|