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">
|
2009-01-15 12:14:01 +01:00
|
|
|
<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>
|
2009-04-06 20:06:53 +02:00
|
|
|
<p><b>Verfügbares Guthaben:</b> <%= number_to_currency(@ordergroup.get_available_funds()) %></p>
|
2009-01-06 11:49:19 +01:00
|
|
|
<h2>Personen</h2>
|
|
|
|
<ul style="list-style-type:decimal;">
|
2009-02-06 20:51:14 +01:00
|
|
|
<% for membership in @ordergroup.memberships -%>
|
|
|
|
<li><%= membership.user.nick -%></li>
|
|
|
|
<% end -%>
|
2009-01-06 11:49:19 +01:00
|
|
|
</ul>
|
2009-02-06 20:51:14 +01:00
|
|
|
<%= link_to('Hinzufügen/entfernen', :controller => 'foodcoop', :action => 'memberships', :id => @ordergroup) %> |
|
|
|
|
<%= link_to('Person einladen', :controller => 'foodcoop', :action => 'invite', :id => @ordergroup) %>
|
2009-01-06 11:49:19 +01:00
|
|
|
</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')",
|
2009-01-15 12:14:01 +01:00
|
|
|
: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>
|
|
|
|
|