Sha256: c37ea5316d64f04078fde3f00144eb7b5520d0926beea2f7023959b1fe472b4b
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
= form_for [spina, :admin, @page], multipart: true, html: {autocomplete: "off"} do |f| %header#header .breadcrumbs= render_breadcrumbs separator: '<div class="divider"></div>' - unless @page.new_record? - if Spina.config.locales.size > 1 %div{style: 'display: inline-block; margin-left: 12px; top: -4px', data: {dropdown: true}} = link_to '#', class: 'button button-link button-round button-small', data: {trigger: 'dropdown', target: '#locales'} do = icon('comment') = @locale.upcase %ul#locales - Spina.config.locales.each do |locale| %li = link_to t("languages.#{locale}"), "?locale=#{locale}", style: ('font-weight: 600' if @locale.to_s == locale.to_s) #header_actions %button.button.button-primary{type: 'submit', style: 'margin-right: 0'} = icon('check') =t 'spina.pages.save' %nav#secondary.tabs %ul - @tabs.each_with_index do |tab, i| %li{class: (i==0 ? 'active' : '')} = link_to t("spina.pages.#{tab}"), "##{tab}" = hidden_field_tag :locale, @locale - content_for :notification_alert do = error_explanation!(@page) - Globalize.with_locale(@locale) do - @tabs.each do |tab| = render "spina/admin/pages/form_#{tab}", f: f - unless @page.new_record? || !@page.deletable .pull-right= link_to t('spina.permanently_delete'), spina.admin_page_path(@page), method: :delete, data: {confirm: t('spina.pages.delete_confirmation', subject: @page.menu_title)}, class: 'button button-link button-danger'
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spina-0.10.0 | app/views/spina/admin/pages/_form.html.haml |