% @content_title = 'Barista Summary' -%>
<%= render :partial => 'shared/menu' %>
<%= pagination_links @pages %>
<%= form_tag( { :action => 'add' }, { :id => 'barista_form' }) %>
Add A Barista |
|
Name | <%= text_field 'barista', 'name', :class => 'inputBox', :size => 16, :maxsize => 64 -%> |
Fund | <%= select('barista', 'fund_id', Fund.for_select, { :selected => (@fund.id.to_s rescue '') }, { :class => 'inputBox' }) -%> |
|
<%= submit_tag 'Create', :class => 'inputBox' -%> | <%= link_to_function 'Cancel', "dojo.widget.byId('baristaDialog').hide();dojo.byId('barista_form').reset()" -%> |
<%= end_form_tag %>
<%
@dojo_map ||= {}
@dojo_map['baristaDialog'] = ['dialog', '{bgColor: "black", bgOpacity: "0.5"}']
%>