Sha256: 3475127dd322ce0ffd6f681b15aa35d4c7fab4f6a2c1e68c5d1d1e054701f5f7

Contents?: true

Size: 1.17 KB

Versions: 15

Compression:

Stored size: 1.17 KB

Contents

<%= alchemy_form_for @essence_picture,
    url: alchemy.admin_essence_picture_path(@essence_picture) do |f| %>
  <%= hidden_field_tag 'content_id', @content.id %>
  <%= f.input :caption, as: @content.settings[:caption_as_textarea] ? 'text' : 'string' %>
  <%= f.input :title %>
  <%= f.input :alt_tag %>
  <%- if @content.settings[:sizes].present? -%>
    <%= f.input :render_size,
      collection: [
        [Alchemy.t('Layout default'), @content.settings[:size]]
      ] + @content.settings[:sizes].to_a,
      include_blank: false,
      input_html: {class: 'alchemy_selectbox'} %>
  <%- end -%>
  <%- if @content.settings[:css_classes].present? -%>
    <%= f.input :css_class,
      collection: @content.settings[: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

15 entries across 15 versions & 1 rubygems

Version Path
alchemy_cms-5.0.10 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.9 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.8 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.7 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.6 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.5 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.0.rc2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.0.rc1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.0.beta2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-5.0.0.beta1 app/views/alchemy/admin/essence_pictures/edit.html.erb