Sha256: 0e03a134855befa6a262fd57d5033bc54cc5215f24d47c4c424f7f4fbfe39e7c

Contents?: true

Size: 743 Bytes

Versions: 3

Compression:

Stored size: 743 Bytes

Contents

<%= builder.input field_template.field_type, label: field_template.title, required: field_template.is_required, input_html: {name: form_prefix + builder.object_name.sub('part[', '[') + "[#{field_template.field_type}]" } %>

<%# To make the textarea a Wysiwyg field, add to your gemfile
      gem 'activeadmin-dragonfly', github: 'stefanoverna/activeadmin-dragonfly'
      gem 'activeadmin-wysihtml5', github: 'silvaire/activeadmin-wysihtml5'
    and replace the above line by the commented one below 
%>
<%#= builder.input field_template.field_type, as: :wysihtml5, label: field_template.title, required: field_template.is_required, input_html: {name: form_prefix + builder.object_name.sub('part[', '[') + "[#{field_template.field_type}]" } %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
activeadmin-magicfields-0.4.2 lib/app/views/admin/field_inputs/_textarea.html.erb
activeadmin-magicfields-0.4.1 lib/app/views/admin/field_inputs/_textarea.html.erb
activeadmin-magicfields-0.4.0 lib/app/views/admin/field_inputs/_textarea.html.erb