Sha256: dd084833e2437008ecae36c839352733269819f9e3590ba2bed02fb2479000a5

Contents?: true

Size: 764 Bytes

Versions: 2

Compression:

Stored size: 764 Bytes

Contents

<% add_asset_library('colorpicker') %>
<div class="group-input-fields-content" data-callback-function="custom_field_colorpicker"  data-callback-set-value="custom_field_colorpicker_val" style="max-width: 300px;">
  <div data-color-format="<%= @field.options[:color_format].present? ? @field.options[:color_format] : 'hex' %>" data-color="#fff" class="input-group color my-colorpicker">
    <input  type="text" name="<%= @field_name %>[<%= @field.slug %>][values][]" class="data-error-place-parent form-control input-value <%= "required" if @field.options[:required].to_s.to_bool %>" <%= "readonly" if @field.options[:readonly].present? %> <%= "disabled" if @field.options[:disabled].present? %> />
    <span class="input-group-addon"><i></i></span>
  </div>
</div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
camaleon_cms-2.1.2.1 app/views/camaleon_cms/admin/settings/custom_fields/fields/_colorpicker.html.erb
camaleon_cms-2.1.2.0 app/views/camaleon_cms/admin/settings/custom_fields/fields/_colorpicker.html.erb