Sha256: 2e699f87addfa1a6dd7e1d4fbf708c50bd27403301c76478c4f721bd84dffdf5
Contents?: true
Size: 1.21 KB
Versions: 16
Compression:
Stored size: 1.21 KB
Contents
= content_for :breadcrumbs do ul.dsml-breadcrumb-nav li = link_to "Media Library", :root li = resource.new_record? ? "New" : "Edit" | media = form_for resource, url: resource.new_record? ? resources_path : resource_path(resource) do |form| fieldset .flex .field .field = form.label :folder_id, "Parent folder", class: "optional" = form.collection_select :folder_id, DSMediaLibrary::Folder.all, :id, :name, include_blank: " -- none -- " -# FIXME extract to super project - if form.object.respond_to?(:expires_at) .field = form.label :expires_at, "Expiration date", class: "optional" = form.date_field :expires_at .warning-text Expired media items will appear with a <i class="fa fa-exclamation-triangle"></i> icon in the media library and an email will be sent upon expiration as a reminder to update it. .field = form.label :file, "Upload media" = form.file_field :file, multiple: resource.new_record? - unless form.object.new_record? = render "ds_media_library/manage/resources/image_preview", image: form.object = render "ds_media_library/manage/submit", name: "media"
Version data entries
16 entries across 16 versions & 1 rubygems