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-09-23 12:08:21 +02:00
|
|
|
<p>
|
|
|
|
<b>Beschreibung:</b> <%=h @ordergroup.description %>
|
|
|
|
</p>
|
|
|
|
<p>
|
|
|
|
<b>Verfügbares Guthaben:</b> <%= number_to_currency(@ordergroup.get_available_funds()) %>
|
2009-01-06 11:49:19 +01:00
|
|
|
</p>
|
|
|
|
<h2>Personen</h2>
|
|
|
|
<ul style="list-style-type:decimal;">
|
2009-09-23 12:08:21 +02:00
|
|
|
<% for membership in @ordergroup.memberships -%>
|
|
|
|
<li><%= membership.user.nick -%></li>
|
|
|
|
<% end -%>
|
2009-01-06 11:49:19 +01:00
|
|
|
</ul>
|
2011-05-16 11:00:52 +02:00
|
|
|
<%= link_to('Person einladen', new_invite_path(:id => @ordergroup), :remote => true) %>
|
2009-01-06 11:49:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="right_column">
|
2009-09-23 12:08:21 +02:00
|
|
|
<div class="box_title">
|
|
|
|
<h2>Kontoauszug</h2>
|
|
|
|
</div>
|
2009-01-06 11:49:19 +01:00
|
|
|
<div class="column_content">
|
2011-05-16 11:00:52 +02:00
|
|
|
<%= form_tag my_ordergroup_url, :method => :get, :style => 'display:inline;', :id => 'transactions_search',
|
|
|
|
:remote => true do %>
|
|
|
|
<%= label_tag "financial_transaction_note", "Filter für Notizen:" %>
|
|
|
|
<%= text_field_tag("query", params['query'], :size => 10 ) %>
|
|
|
|
<% end %>
|
2009-01-15 12:14:01 +01:00
|
|
|
<div id="transactions">
|
|
|
|
<%= render :partial => "/finance/transactions/list" %>
|
2009-01-06 11:49:19 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2009-09-23 12:08:21 +02:00
|
|
|
<div id="edit_box" style="display:none"></div>
|
2009-01-06 11:49:19 +01:00
|
|
|
|
2011-05-16 11:00:52 +02:00
|
|
|
<% content_for :head do %>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(function() {
|
|
|
|
$('#query').observe_field(1, function() {
|
|
|
|
$('#transactions_search').submit();
|
|
|
|
});
|
|
|
|
})
|
|
|
|
</script>
|
|
|
|
<% end %>
|
|
|
|
|