Sha256: 5205977c37e5ebef5c29f4a8e61a3a1c148680620c17fc470ef541c4ca65a87f
Contents?: true
Size: 849 Bytes
Versions: 16
Compression:
Stored size: 849 Bytes
Contents
<% content = form.object options = { id: "plan_section_answer_#{content.section.id}", label: content.label, help_text: content.help } form_field = case content.section.section_type when 'field_text' :text_field else options[:rows] = 4 :text_area end %> <div class="row column"> <%= remaining_characters("plan_section_#{content.section.id}", content.section.answer_length) do |rc_opts| %> <% if component_settings.multilingual_answers? %> <%= form.translated( form_field, :body, { tabs_id: id }.merge(options).merge(rc_opts) ) %> <% else %> <%= form.public_send( form_field, "body_#{current_locale}".to_sym, options.merge(rc_opts) ) %> <% end %> <% end %> </div> <%= form.hidden_field :id %> <%= form.hidden_field :section_id %>
Version data entries
16 entries across 16 versions & 1 rubygems