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

48 lines
1.4 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 %>
</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;">
<% 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">
<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 %>
<div id="transactions">
<%= render :partial => "/finance/transactions/list" %>
2009-01-06 11:49:19 +01:00
</div>
</div>
</div>
<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 %>