Sha256: fc0e6a03f67c091183667960895f9421aa341daa10c50d9ddde087d2c9507273

Contents?: true

Size: 551 Bytes

Versions: 4

Compression:

Stored size: 551 Bytes

Contents

.long_text class="#{'helena-error' if errors[question.code]}"
  = question_label(question)
  = form.simple_fields_for :answers do |answer_form|
    - params = { value: answers[question.code], id: "question_#{question.code}" }
    - params = params.merge(aria: { describedby: "#{question.code}_error" }, invalid: true) if errors[question.code]
    - params = params.merge(required: true) if question.required
    = answer_form.text_area(question.code, params)
  - if errors[question.code]
    .error id="#{question.code}_error" = errors[question.code]

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
helena-2.1.0 app/views/helena/questions/_long_text.html.slim
helena-2.0.2 app/views/helena/questions/_long_text.html.slim
helena-2.0.1 app/views/helena/questions/_long_text.html.slim
helena-2.0.0 app/views/helena/questions/_long_text.html.slim