40 lines
1.5 KiB
Text
40 lines
1.5 KiB
Text
<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 %>
|
|
</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><%= membership.user.nick -%></li>
|
|
<% end -%>
|
|
</ul>
|
|
<%= link_to('Hinzufügen/entfernen', :controller => 'foodcoop', :action => 'memberships', :id => @ordergroup) %> |
|
|
<%= link_to('Person einladen', :controller => 'foodcoop', :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" %>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|