Sha256: 711bf482ca95dd9160a10f9336a51d9a13f482859019b2b1fae05cf330024888

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 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: [[Alchemy.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: Alchemy.t('None'),
      input_html: {class: 'alchemy_selectbox'} %>
  <%- else -%>
    <%= f.input :css_class,
      label: Alchemy.t(:position_in_text),
      collection: [
        [Alchemy.t(:above), "no_float"],
        [Alchemy.t(:left), "left"],
        [Alchemy.t(:right), "right"]
      ], include_blank: Alchemy.t("Layout default"), input_html: {class: 'alchemy_selectbox'} %>
  <%- end -%>
  <%= f.submit Alchemy.t(:save) %>
<% end %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
alchemy_cms-3.4.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.4.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.4.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.4.0.rc1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.0.rc2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-3.3.0.rc1 app/views/alchemy/admin/essence_pictures/edit.html.erb