Sha256: 2dc965a6156d3b0ad3ed08caa6d9c2ad02f138ebdfaf784bddbd0cb849399bed

Contents?: true

Size: 1.58 KB

Versions: 1

Compression:

Stored size: 1.58 KB

Contents

.dsml
  = content_for :breadcrumbs do
    ul.dsml-breadcrumb-nav
      li Media Library

  = form_tag nil, method: :put do
    input type="checkbox" id="dsml-select-media"
    .dsml-table-buttons-flex
      .dsml-buttons-left
        = link_to "Open all folders", "#", class: "dsml-open-all-label", data: { "dsml-toggle-all-checkboxes" => ".dsml-expand-input" }
        label.dsml-select-media-button for="dsml-select-media" Select multiple media
        .field.dsml-selected-options
          label.dsml-move-selected-label for="dsml-folder-id" Move selected to:
          select#dsml-folder-id name="folder_id"
            - folders.each do |folder|
              option value=folder.id
                = "- " * folder.depth
                = folder.name
          button.dsml-move-button Move
          em or
          button.dsml-delete-multiple name="_method" value="delete" Delete all selected

      .dsml-buttons-right
        = link_to "Add new folder", [:new, :folder], class: "dsml-add-button"
        = link_to "Add new media", [:new, :resource], class: "dsml-add-button"

    label.hidden for="dsml-search-media" Search media library
    input.dsml-text#dsml-search-media type="text" placeholder="Type keywords to search media" data-dsml-search-media=".dsml-resource"
    ul.dsml-media-nav#dsml-media-tree
      li.dsml-media-nav-header
        .dsml-media-type-col Type
        .dsml-media-date-col Date modified
      = render collection: root.children, partial: "ds_media_library/manage/folders/folder"
      = render collection: root.resources, partial: "ds_media_library/manage/resources/resource"

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ds_media_library-0.6.0 app/views/ds_media_library/manage/index.html.slim