Sha256: dd4685f186d9dda3c39e186ba04966e9aa03bfe96e5965617a909f060373b537

Contents?: true

Size: 849 Bytes

Versions: 18

Compression:

Stored size: 849 Bytes

Contents

- title t('.title', file: @theme_asset.source_filename)

- content_for :submenu do
  = render_cell 'locomotive/settings_menu', :show

- if can?(:manage, Locomotive::ThemeAsset)
  - content_for :buttons do
    = local_action_button t('locomotive.theme_assets.index.new'), new_theme_asset_path, icon: 'icon-plus'

%p.help
  - if %w(image javascript stylesheet).include?(@theme_asset.content_type.to_s)
    != t(".help_#{@theme_asset.content_type}", path: @theme_asset.local_path(true), width: @theme_asset.width, height: @theme_asset.height)

  != t('.help', url: @theme_asset.source.url)


= semantic_form_for @theme_asset, url: theme_asset_path(@theme_asset), html: { multipart: true, class: 'save-with-shortcut' } do |form|

  = render 'form', f: form

  = render 'locomotive/shared/form_actions', back_url: theme_assets_path, button_label: :update

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.6 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.5 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.4 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.3 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.2 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.1 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.0 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.4.1 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.4.0 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.3.1 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.3.0 app/views/locomotive/theme_assets/edit.html.haml
locomotive_cms-2.2.3 app/views/locomotive/theme_assets/edit.html.haml