<%= simple_form_for(help_request) do |f| %>
What’s Going On?
Your Username
<%= current_user.user_key %>
Screen Size
<%= help_request.resolution || 'Unknown' %>
Browser Size
<%= help_request.view_port || 'Unknown' %>
JavaScript
<% if help_request.javascript_enabled %> is enabled <% else %> is NOT enabled <% end %>
Browser
<%= help_request.browser_name %>
Platform
<%= help_request.platform %>
CurateND Version
<%= Rails.configuration.build_identifier %>
Current URL
> <%= help_request.current_url %>
Describe Your Issue <%= f.input :view_port, as: 'hidden' %> <%= f.input :resolution, as: 'hidden' %> <% if help_request.current_url.blank? %> <%= f.input :current_url, as: 'hidden', input_html: { class: 'unset' } %> <% else -%> <%= f.input :current_url, as: 'hidden' %> <% end -%> <%= f.input :javascript_enabled, as: 'hidden' %> <%= f.input :how_can_we_help_you, as: 'text', input_html: { class: 'input-xxxlarge', rows: '10' } %>
<%= f.submit "Let Us Know", class: 'btn btn-primary' %> never mind
<% end %>