|
|
|
@ -77,21 +77,15 @@ See doc/COPYRIGHT.rdoc for more details. |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
|
|
|
|
|
<div class="form--field" id="custom_field_possible_values_attributes"> |
|
|
|
|
<% if @custom_field.new_record? || @custom_field.field_format == 'list' %> |
|
|
|
|
<label |
|
|
|
|
class="form--label" |
|
|
|
|
title="<%= I18n.t("activerecord.attributes.custom_field.possible_values") %>" |
|
|
|
|
for="custom_field_possible_values" |
|
|
|
|
> |
|
|
|
|
<%= I18n.t("activerecord.attributes.custom_field.possible_values") %> |
|
|
|
|
</label> |
|
|
|
|
<span class="form--field-container"> |
|
|
|
|
<%= render partial: "custom_fields/custom_options", locals: { custom_options: @custom_field.custom_options, f: f } %> |
|
|
|
|
</span> |
|
|
|
|
<a id="add-custom-option" href="#" class="form--field-extra-actions icon icon-add">Add</a> |
|
|
|
|
<% end %> |
|
|
|
|
</div> |
|
|
|
|
<% if @custom_field.new_record? || @custom_field.field_format == 'list' %> |
|
|
|
|
<fieldset class="form--fieldset"> |
|
|
|
|
<legend class="form--fieldset-legend"><%= I18n.t("activerecord.attributes.custom_field.possible_values") %></legend> |
|
|
|
|
<div class="form--field" id="custom_field_possible_values_attributes"> |
|
|
|
|
<%= render partial: "custom_fields/custom_options", locals: { custom_options: @custom_field.custom_options, f: f } %> |
|
|
|
|
<a id="add-custom-option" href="#" class="icon icon-add"><%= t(:button_add) %></a> |
|
|
|
|
</div> |
|
|
|
|
</fieldset> |
|
|
|
|
<% end %> |
|
|
|
|
<div id="custom_field_default_value_attributes"> |
|
|
|
|
<div class="form--field" id="default_value_text"> |
|
|
|
|
<% if @custom_field.new_record? || @custom_field.field_format != 'bool' %> |
|
|
|
|