app/views/fe/questions/fe/_date_field.html.erb in fe-0.0.4 vs app/views/fe/questions/fe/_date_field.html.erb in fe-1.0.0

- old
+ new

@@ -1,7 +1,6 @@ <%= calendar_date_select_tag "answers[#{date_field.id}]", date_field.format_date_response(@answer_sheet), :class => 'text ' + date_field.validation_class(@answer_sheet), :id => dom_id(date_field), - :disabled => @answer_sheet.frozen?&&!@presenter.reference?, + :disabled => @answer_sheet.frozen?&&!@presenter.try(:reference?), :readonly => true %> -<div id="advice-validate-date-<%= dom_id(date_field) %>" class="validation-advice" style="display: none;">Please enter a valid date (MM/DD/YYYY).</div> <div id="advice-required-<%= dom_id(date_field) %>" class="validation-advice" style="display: none;">This is a required field.</div>