Sha256: 21a3e455db8470fd2e4edcf8b73b3dee389c4ca57409f35df04f3c8d88d7af4e

Contents?: true

Size: 857 Bytes

Versions: 5

Compression:

Stored size: 857 Bytes

Contents

<%
  max_length = text_area_field.max_length.to_i > 0 ? text_area_field.max_length : 4000
  locked = text_area_field.locked?(params, @answer_sheet, @presenter, current_person)
%>
<% response = text_area_field.response(@answer_sheet).to_s %>
<%= text_area_tag "answers[#{text_area_field.id}]", response, 
      class: "text " + text_area_field.validation_class(@answer_sheet, @page),
      id: dom_id(text_area_field),
      rows: 6,
      autocomplete: "off",
      disabled: locked,
      readonly: locked,
      maxlength: max_length %>
<div class="small" align="right"><span class="small notice"><%= _("(Please use paragraphs for long answers)") %></span> 
<%= _("Characters remaining: ") %>
<input type="text" id="<%= dom_id(text_area_field)+"_count" %>" size="4" value="<%= max_length - response.length %>" disabled="" class="small char-count">
</div>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
fe-2.0.4 app/views.current/fe/questions/fe/_text_area_field.html.erb
fe-2.0.3 app/views.current/fe/questions/fe/_text_area_field.html.erb
fe-2.0.2 app/views.current/fe/questions/fe/_text_area_field.html.erb
fe-2.0.1 app/views.current/fe/questions/fe/_text_area_field.html.erb
fe-2.0.0 app/views.current/fe/questions/fe/_text_area_field.html.erb