Sha256: fe7b81ee50315ac7bd58394e0b5f49e1990a1da864e34e7470035ce716ffb164

Contents?: true

Size: 657 Bytes

Versions: 27

Compression:

Stored size: 657 Bytes

Contents

<%= form_for [:admin, @picture], html: {multipart: true} do |f| %>
  <%= render 'alchemy/admin/partials/upload_form', {
      file_types: configuration(:uploader)['allowed_filetypes']['pictures'],
      file_types_description: _t(:images),
      redirect_url: admin_pictures_path(
        size: params[:size],
        filter: 'last_upload',
        element_id: @element ? @element.id : nil,
        content_id: @content ? @content.id : nil,
        options: @options ? @options.to_json : nil),
      model_name: 'picture',
      file_attribute: 'image_file',
      item_type: _t(:images)
    } %>
  <%= f.submit :upload, class: 'upload-button' %>
<% end %>

Version data entries

27 entries across 27 versions & 2 rubygems

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