Sha256: e2891853e26e488c29f644e94cb9a4fa0ed96f0a8c586d1d3a9fb8954b02a2d2

Contents?: true

Size: 1.21 KB

Versions: 39

Compression:

Stored size: 1.21 KB

Contents

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

39 entries across 39 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.6 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.5 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.5.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.5 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.0.6 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.6.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.5.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.3 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.1 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.4.0 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.3.2 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.2.4 app/views/alchemy/admin/essence_pictures/edit.html.erb
alchemy_cms-4.3.1 app/views/alchemy/admin/essence_pictures/edit.html.erb