-
Notifications
You must be signed in to change notification settings - Fork 617
Expand file tree
/
Copy pathedit.html.slim
More file actions
25 lines (15 loc) · 1017 Bytes
/
edit.html.slim
File metadata and controls
25 lines (15 loc) · 1017 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
- title t('.title', type: @content_type.name.capitalize)
= help @content_type.description
- content_for :actions do
- if @content_type.localized?
= locale_picker_link
|
= link_to t(:clone, scope: 'locomotive.content_entries.shared').html_safe, clone_content_entry_path(current_site, @content_type.slug, params[:id]), data: { confirm: t('locomotive.messages.confirm') }, method: :post, class: 'btn btn-sm btn-default'
|
= link_to t(:back, scope: 'locomotive.content_entries.shared').html_safe, content_entries_path(current_site, @content_type.slug), class: 'btn btn-sm btn-default'
= locomotive_form_for @content_entry, as: :content_entry, url: content_entry_path(current_site, @content_type.slug, @content_entry), html: { multipart: true } do |f|
= hidden_field_tag :active_tab, ''
= hidden_field_tag :_location, params[:_location]
= f.action class: 'hide'
= render 'locomotive/content_entries/form/tabs', f: f
= render 'locomotive/content_entries/form/panes', f: f