appirits/comable

View on GitHub
backend/app/views/comable/admin/themes/edit.slim

Summary

Maintainability
Test Coverage
.comable-page
  .comable-main-fixed-top
    .comable-page-heading
      ul.pull-right.list-inline
        - if current_store.theme != @theme
          = link_to comable.use_admin_theme_path(@theme), class: 'btn btn-default', method: 'put'
            i.fa.fa-paint-brush>
            = Comable.t('admin.use_this_theme')
        li
          = link_to comable.tree_admin_theme_path(@theme), class: 'btn btn-default'
            i.fa.fa-files-o>
            = Comable.t('admin.files')
        li
          = link_to_save

      h1.page-header
        ol.breadcrumb
          li>
            = link_to Comable.t('admin.nav.theme'), comable.admin_themes_path
          li.active
            = @theme.display_name

  .comable-page-body
    = render 'form'
    hr
    .panel.panel-danger
      .panel-heading type="button" data-toggle="collapse" data-target="#comable-danger"
        strong
          span.fa.fa-angle-down>
          = Comable.t('admin.actions.destroy')
      #comable-danger.collapse
        .panel-body
          p
            = Comable.t('admin.confirmation_to_remove_product')
          = link_to Comable.t('admin.actions.destroy'), comable.admin_theme_path(@theme), method: :delete, class: 'btn btn-danger'