foodsoft/app/views/home/ordergroup.html.erb

44 lines
1.6 KiB
Text
Raw Normal View History

2009-01-06 11:49:19 +01:00
<h1>Meine Bestellgruppe</h1>
<div class="left_column">
<div class="box_title"><h2><%=h @ordergroup.name %></h2></div>
<div class="column_content">
<p><b>Beschreibung:</b> <%=h @ordergroup.description %>
<%= link_to '(ändern)', :controller => 'foodcoop', :action => 'edit_group', :id => @ordergroup %>
2009-01-06 11:49:19 +01:00
</p>
<p><b>Gruppengröße:</b> <%=h @ordergroup.actual_size %></p>
<p><b>Kontostand:</b> <%= number_to_currency(@ordergroup.account_balance) %></p>
<h2>Personen</h2>
<ul style="list-style-type:decimal;">
<% for membership in @ordergroup.memberships %>
<li>
<%= link_to membership.user.nick, :controller => 'index', :action => 'showUser', :id => membership.user %>
</li>
<% end %>
</ul>
<%= link_to('Hinzufügen/entfernen', :action => 'members', :id => @ordergroup) %> |
2009-01-06 11:49:19 +01:00
<%= link_to('Person einladen', :action => 'invite', :id => @ordergroup) %>
</div>
</div>
<div class="right_column">
<div class="box_title"><h2>Kontoauszug</h2></div>
<div class="column_content">
<p>
<form name="sform" action="" style="display:inline;">
<label for="financial_transaction_note">Filter für Notizen: </label>
<%= text_field_tag("query", params['query'], :size => 10 ) %>
</form>
</p>
<%= observe_field 'query', :frequency => 2,
:before => "Element.show('loader')",
:success => "Element.hide('loader')",
:url => {:action => 'ordergroup'},
:with => 'query',
:update => 'transactions' %>
<div id="transactions">
<%= render :partial => "/finance/transactions/list" %>
2009-01-06 11:49:19 +01:00
</div>
</div>
</div>