Sha256: 1e00d74cd19f567661ed37e1e3bec283a5911b7239fd9b863ee85ca6eea8f33d
Contents?: true
Size: 1.92 KB
Versions: 16
Compression:
Stored size: 1.92 KB
Contents
<%= render :partial => 'settings_menu' %> <%= simple_form_for(@account, :url => dm_core.admin_account_media_url, html: { class: 'form-horizontal' }, wrapper: :bs3_horizontal_form, wrapper_mappings: DmAdmin::FormWrapperMappings) do |f| %> <%= f.error_notification :message => "Please review the problems below" %> <%= panel title: 'Media Library Configuration' do %> <p>Several versions of an uploaded image will be created:</p> <dl> <dt class="text-info">"filename"_thumb</dt> <dd>A thumbnail, cropped into a square</dd> <dt class="text-info">"filename"_sm</dt> <dd>A "small" version. Will be resized to the max width, with the aspect ratio presevered.</dd> <dt class="text-info">"filename"_md</dt> <dd>A "medium" version. Will be resized to the max width, with the aspect ratio presevered.</dd> <dt class="text-info">"filename"_lg</dt> <dd>A "large" version. Will be resized to the max width, with the aspect ratio presevered.</dd> <dt class="text-info">Retina versions</dt> <dd>are created automatcially and appended with "@2x" (filename_sm@2x, filename_md@2x, filename_lg@2x)</dd> </dl> <br> <%= subsection title: 'Image Sizes' do %> <%= f.input :preferred_image_thumbnail_width, label: 'Thumbnail max width', as: :integer, input_html: {size: 6, maxlength: 4, style: "width:75px;"} %> <%= f.input :preferred_image_small_width, label: 'Small max width', as: :integer, input_html: {size: 6, maxlength: 4, style: "width:75px;"} %> <%= f.input :preferred_image_medium_width, label: 'Medium max width', as: :integer, input_html: {size: 6, maxlength: 4, style: "width:75px;"} %> <%= f.input :preferred_image_large_width, label: 'Large max width', as: :integer, input_html: {size: 6, maxlength: 4, style: "width:75px;"} %> <% end %> <%= submit_or_cancel :cancel_url => dm_core.admin_account_analytics_path %> <% end %> <% end %>
Version data entries
16 entries across 16 versions & 1 rubygems