<%= form_tag( {:controller => "export_email", :action => "send_txt", :id => params[:id]}, :class => "modal_dialog_form" ) do %>
Send the title and location of an item to your mobile phone
<%= validation_error( @error || flash[:error]) if ( @error || flash[:error]) %>
Title:
<%= h(brief_citation(@user_request)) %>
<%= label_tag('number', 'Enter your mobile phone number:') %>
<%= text_field_tag('number', params[:number], :size => 14) %>
10 digit US cell phone number
<%= label_tag('provider', 'Select your provider:') %>
<%
providers = @svc_response.service.instance_variable_get("@providers")
%>
<%= select_tag "provider", options_for_select(providers.sort, params[:provider]) %>
<%
holdings = @user_request.get_service_type('holding', {})
%>
Choose the item you want to send:
<%
holdings.each do |p|
target = p.view_data
%>
-
<%= radio_button_tag 'holding', p.id, (params[:holding].to_s == p.id.to_s) || holdings.length == 1 %>
<%= label_tag "holding_#{p.id}", formatted_html_holding_status(target) %>
<%
end
%>
Note: charges may apply if your service plan does not cover unlimited texting
<%= submit_tag 'Send!' %>
<%
end
end
%>