Sha256: fa821c0aa052a1c30031d4ffa18bd493e41007bfbb67cd5a43c00a1fa8a9ea3c

Contents?: true

Size: 1.05 KB

Versions: 4

Compression:

Stored size: 1.05 KB

Contents

<%# HEADING %>
<h5 class="form-item--<%= field_setting.field_type.underscore %>-caption"><%= field_setting.name.capitalize %></h5>

<% unless field_setting.description.blank? %>
	<small class="text-muted"><%= field_setting.description %></small>
<% end %>


<%# INPUT / TEXTAREA %>
<% if @component.has_text( field_setting.slug ) %>
	<% if field_setting.field_type == 'text' %>
		<%= ff.input :content, input_html: { value: @component.get_text( field_setting.slug ), class: 'tinymce' }, as: :text %>
	<% else %>
		<%= ff.input :content, input_html: { value: @component.get_text( field_setting.slug ) }, as: :string %>
	<% end %>
<% else %>
	<% if field_setting.field_type == 'text' %>
		<%= ff.input :content, input_html: { class: 'tinymce' }, as: :text %>
	<% else %>
		<%= ff.input :content, as: :string %>
	<% end %>
<% end %>


<%= ff.input :field_setting_id, as: :hidden, input_html: { value: field_setting.id } %>
<%= ff.input :id, as: :hidden, input_html: { value: ff.object.id } %>
<%= ff.input :fieldable_id, as: :hidden %>
<%= ff.input :fieldable_type, as: :hidden %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
binda-0.0.6 app/views/binda/components/_form_item_text.html.erb
binda-0.0.5 app/views/binda/components/_form_item_text.html.erb
binda-0.0.3 app/views/binda/components/_form_item_text.html.erb
binda-0.0.2 app/views/binda/components/_form_item_text.html.erb