Sha256: 09cf223ca1fbe0193cebf30dca42a897d8f1a38dec2dc6c021b85fead2ef2f65

Contents?: true

Size: 1.08 KB

Versions: 27

Compression:

Stored size: 1.08 KB

Contents

<%= alchemy_form_for @essence_picture,
    url: alchemy.admin_essence_picture_path(@essence_picture, options: @options.to_json) do |f| %>
  <%= hidden_field_tag 'content_id', @content.id %>
  <%= f.input :caption, as: @options[:caption_as_textarea] ? 'text' : 'string' %>
  <%= f.input :title %>
  <%= f.input :alt_tag %>
  <%- if @options[:sizes].present? -%>
    <%= f.input :render_size,
      collection: [[_t('Layout default'), @options[:image_size]]] + @options[:sizes].to_a,
      include_blank: false,
      input_html: {class: 'alchemy_selectbox'} %>
  <%- end -%>
  <%- if @options[:css_classes].present? -%>
    <%= f.input :css_class,
      collection: @options[:css_classes],
      include_blank: _t('None'),
      input_html: {class: 'alchemy_selectbox'} %>
  <%- else -%>
    <%= f.input :css_class,
      label: _t(:position_in_text),
      collection: [
        [_t(:above), "no_float"],
        [_t(:left), "left"],
        [_t(:right), "right"]
      ], include_blank: _t("Layout default"), input_html: {class: 'alchemy_selectbox'} %>
  <%- end -%>
  <%= f.submit _t(:save) %>
<% end %>

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
alchemy_cms-3.2.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
lc_alchemy_cms-3.2.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
lc_alchemy_cms-3.2.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.2.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.2.0.rc1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.2.0.beta app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.0.4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.rc3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.rc2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.rc1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta6 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta5 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.0.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.1.0.beta1 app/views/alchemy/admin/essence_pictures/edit.html.erb