<%= form_for AttributeField.new do |f| %> <%= hidden_field_tag :entity_type, content.class.content_name %>

<%= content.class.icon %> Create custom categories and fields

<%= f.label :attribute_category, 'New category' %>
<%= f.text_area :attribute_category, class: "materialize-textarea autocomplete" %>

We find the best categories are broad and easy to add to. Examples of categories are "Appearance", "Demeanor", or "Abilities". This will be added as a tab to all of your <%= content.class.name.downcase.pluralize %>.

<%= f.label :label, 'Field in category' %> <%= f.text_area :label, class: "materialize-textarea" %>

Additionally, you can create your first field for this category here. You can add additional fields to this category by resubmitting this form.

Examples of fields may be "Height", "Age married", or "List of Adventures". Anything you want to track!

<% unless defined?(safe_mode) && safe_mode %>

Please save any changes before adding a field. It will refresh the page and any changes in your form will be lost.

<% end %>
<%= f.submit "Create field", class: "btn blue waves-effect waves-blue" %> close
<% end %>