Sha256: aad57647f969fc67bf5085a60edf824b93b7feaa1907ed5eaab97060b6abb970

Contents?: true

Size: 1.4 KB

Versions: 62

Compression:

Stored size: 1.4 KB

Contents

.menu-editor__menu{ class: 'menu-editor__menu--animate', data: { menu_editor_parent_id: @taxon.id } }

  .menu-editor__head
    = taxon_icon(@taxon, class: 'menu-editor__icon menu-editor__icon--head')
    %span.menu-editor__head-label{ class: ('menu-editor__head-label--truncated' if @taxon.in_menu?) }= @taxon.name
    .menu-editor__head-actions
      - if @taxon.in_menu?
        = link_to t('workarea.admin.navigation_taxons.children.navigation'), navigation_menus_path(menu_id: @taxon.menu.id), title: t('workarea.admin.navigation_taxons.children.edit_name_navigation', name: @taxon.name), class: 'menu-editor__head-link'

  %ul.menu-editor__menu-list
    - @taxon.children.each_with_index do |taxon, index|
      = render 'workarea/admin/navigation_taxons/taxon', taxon: taxon, position: index

    %li.menu-editor__list-item.menu-editor__list-item--placeholder{ class: ('hidden' if @taxon.has_children?) }
      .menu-editor__list-item-cell= t('workarea.admin.navigation_taxons.children.drag_items_here')

  = link_to new_navigation_taxon_path(parent_id: @taxon.id), title: t('workarea.admin.navigation_taxons.children.add_new_item'), class: 'menu-editor__add-item-button menu-editor__add-item-button--last-position' do
    = inline_svg 'workarea/admin/icons/add_circle.svg', class: 'menu-editor__icon menu-editor__icon--add'
    %span.menu-editor__add-item-button-text= t('workarea.admin.navigation_taxons.children.add_new_item')

Version data entries

62 entries across 62 versions & 1 rubygems

Version Path
workarea-admin-3.5.27 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.26 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.45 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.25 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.23 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.44 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.22 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.43 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.21 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.42 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.20 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.41 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.19 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.40 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.18 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.39 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.17 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.38 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.5.16 app/views/workarea/admin/navigation_taxons/children.html.haml
workarea-admin-3.4.37 app/views/workarea/admin/navigation_taxons/children.html.haml