spina 0.6.12 → 0.6.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of spina might be problematic. Click here for more details.

Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/spina/admin/pages.js.coffee +2 -4
  3. data/app/controllers/spina/admin/accounts_controller.rb +6 -6
  4. data/app/controllers/spina/admin/admin_controller.rb +1 -1
  5. data/app/controllers/spina/admin/attachments_controller.rb +2 -2
  6. data/app/controllers/spina/admin/inquiries_controller.rb +7 -7
  7. data/app/controllers/spina/admin/pages_controller.rb +6 -6
  8. data/app/controllers/spina/admin/photos_controller.rb +2 -2
  9. data/app/controllers/spina/admin/sessions_controller.rb +1 -1
  10. data/app/controllers/spina/admin/users_controller.rb +7 -7
  11. data/app/models/spina/user.rb +1 -1
  12. data/app/views/layouts/spina/admin/application.html.haml +1 -1
  13. data/app/views/layouts/spina/admin/media_library.html.haml +2 -4
  14. data/app/views/layouts/spina/admin/messages.html.haml +6 -6
  15. data/app/views/layouts/spina/admin/settings.html.haml +9 -9
  16. data/app/views/layouts/spina/admin/website.html.haml +5 -5
  17. data/app/views/layouts/spina/login.html.haml +1 -1
  18. data/app/views/spina/admin/accounts/_form.html.haml +19 -19
  19. data/app/views/spina/admin/accounts/analytics.html.haml +6 -6
  20. data/app/views/spina/admin/accounts/social.html.haml +7 -7
  21. data/app/views/spina/admin/accounts/style.html.haml +4 -4
  22. data/app/views/spina/admin/attachments/_attachment.html.haml +1 -1
  23. data/app/views/spina/admin/attachments/_select.html.haml +4 -4
  24. data/app/views/spina/admin/attachments/_select_collection.html.haml +4 -4
  25. data/app/views/spina/admin/attachments/create.js.erb +1 -3
  26. data/app/views/spina/admin/attachments/index.html.haml +4 -4
  27. data/app/views/spina/admin/inquiries/inbox.html.haml +5 -5
  28. data/app/views/spina/admin/inquiries/index.html.haml +6 -6
  29. data/app/views/spina/admin/inquiries/show.html.haml +6 -6
  30. data/app/views/spina/admin/inquiries/spam.html.haml +7 -7
  31. data/app/views/spina/admin/page_partables/_attachment_collection_form.html.haml +2 -1
  32. data/app/views/spina/admin/page_partables/_attachment_form.html.haml +2 -1
  33. data/app/views/spina/admin/page_partables/_line_form.html.haml +1 -1
  34. data/app/views/spina/admin/page_partables/_photo_collection_form.html.haml +1 -1
  35. data/app/views/spina/admin/page_partables/_photo_form.html.haml +2 -2
  36. data/app/views/spina/admin/page_partables/_text_form.html.haml +6 -6
  37. data/app/views/spina/admin/page_parts/_wysihtml5_link.html.haml +3 -3
  38. data/app/views/spina/admin/pages/_form.html.haml +20 -20
  39. data/app/views/spina/admin/pages/_page.html.haml +5 -5
  40. data/app/views/spina/admin/pages/edit.html.haml +3 -3
  41. data/app/views/spina/admin/pages/index.html.haml +5 -5
  42. data/app/views/spina/admin/pages/new.html.haml +3 -3
  43. data/app/views/spina/admin/photos/_photo.html.haml +1 -1
  44. data/app/views/spina/admin/photos/_photo_collection_select.html.haml +3 -3
  45. data/app/views/spina/admin/photos/_photo_link.html.haml +2 -2
  46. data/app/views/spina/admin/photos/_photo_select.html.haml +3 -3
  47. data/app/views/spina/admin/photos/_wysihtml5_select.html.haml +3 -3
  48. data/app/views/spina/admin/photos/create.js.erb +1 -1
  49. data/app/views/spina/admin/photos/insert_photo.js.erb +2 -2
  50. data/app/views/spina/admin/sessions/new.html.haml +3 -3
  51. data/app/views/spina/admin/shared/_notifications.html.haml +2 -2
  52. data/app/views/spina/admin/users/_form.html.haml +16 -17
  53. data/app/views/spina/admin/users/index.html.haml +7 -7
  54. data/app/views/spina/shared/_admin_bar.html.haml +2 -2
  55. data/config/locales/nl.yml +189 -206
  56. data/lib/spina/version.rb +1 -1
  57. metadata +2 -8
  58. data/app/helpers/spina/admin/accounts_helper.rb +0 -6
  59. data/app/helpers/spina/admin/inquiries_helper.rb +0 -6
  60. data/app/helpers/spina/admin/page_parts_helper.rb +0 -6
  61. data/app/helpers/spina/admin/photos_helper.rb +0 -6
  62. data/app/helpers/spina/admin/sessions_helper.rb +0 -6
  63. data/app/helpers/spina/admin/users_helper.rb +0 -6
@@ -3,19 +3,19 @@
3
3
  %table.table.table-form
4
4
  %tr
5
5
  %td
6
- %label Website zichtbaar in zoekmachines
6
+ = Spina::Account.human_attribute_name(:robots_allowed)
7
7
  %td
8
8
  = f.check_box :robots_allowed, data: {switch: true}
9
9
  %tr
10
10
  %td
11
- %label Google Analytics
11
+ = Spina::Account.human_attribute_name(:google_analytics)
12
12
  %td
13
- = f.text_field :google_analytics, placeholder: "Google Analytics code"
13
+ = f.text_field :google_analytics, placeholder: Spina::Account.human_attribute_name(:google_analytics)
14
14
  %tr
15
15
  %td
16
- %label Google Site Verification
16
+ = Spina::Account.human_attribute_name(:google_site_verification)
17
17
  %td
18
- = f.text_field :google_site_verification, placeholder: "Google Site Verification code"
18
+ = f.text_field :google_site_verification, placeholder: Spina::Account.human_attribute_name(:google_site_verification)
19
19
 
20
20
  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
21
- Voorkeuren opslaan
21
+ = t('spina.preferences.analytics_save')
@@ -3,21 +3,21 @@
3
3
  %table.table.table-form
4
4
  %tr
5
5
  %td
6
- %label Facebook
6
+ = Spina::Account.human_attribute_name(:facebook)
7
7
  %td
8
- = f.text_field :facebook, placeholder: "Facebook"
8
+ = f.text_field :facebook, placeholder: Spina::Account.human_attribute_name(:facebook)
9
9
 
10
10
  %tr
11
11
  %td
12
- %label Twitter
12
+ = Spina::Account.human_attribute_name(:twitter)
13
13
  %td
14
- = f.text_field :twitter, placeholder: "Twitter"
14
+ = f.text_field :twitter, placeholder: Spina::Account.human_attribute_name(:twitter)
15
15
 
16
16
  %tr
17
17
  %td
18
- %label Google+
18
+ = Spina::Account.human_attribute_name(:google_plus)
19
19
  %td
20
- = f.text_field :google_plus, placeholder: "Google+"
20
+ = f.text_field :google_plus, placeholder: Spina::Account.human_attribute_name(:google_plus)
21
21
 
22
22
  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
23
- Social media opslaan
23
+ = t('spina.preferences.social_media_save')
@@ -3,7 +3,7 @@
3
3
  %table.table.table-form
4
4
  %tr
5
5
  %td
6
- %label Layout website
6
+ = Spina::Account.human_attribute_name(:theme)
7
7
  %td
8
8
  .select-dropdown.account-theme{data: {layout_parts: current_theme.config.layout_parts.map{|layout_part| layout_part[:name]}}}
9
9
  - options = options_for_select(Spina.themes.map { |theme| [theme.to_s, theme.to_s, {'data-layout-parts' => theme.config.layout_parts.map{|layout_part| layout_part[:name] }}] }, current_account.theme)
@@ -11,7 +11,7 @@
11
11
 
12
12
  %tr
13
13
  %td
14
- %label Logo
14
+ = Spina::Account.human_attribute_name(:logo)
15
15
  %td
16
16
  = image_tag current_account.logo
17
17
  = f.file_field :logo
@@ -19,7 +19,7 @@
19
19
  = f.fields_for :layout_parts do |layout_part_form|
20
20
  %tr.layout-part{data: {name: layout_part_form.object.name}}
21
21
  %td
22
- %label= layout_part_form.object.title
22
+ = layout_part_form.object.title
23
23
  %td
24
24
  = layout_part_form.hidden_field :id
25
25
  = layout_part_form.hidden_field :title
@@ -29,4 +29,4 @@
29
29
  = render partial: "spina/admin/layout_partables/#{layout_part_form.object.layout_partable_type.demodulize.underscore}_form", object: layout_part_form
30
30
 
31
31
  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
32
- Vormgeving opslaan
32
+ = t('spina.preferences.style_save')
@@ -4,4 +4,4 @@
4
4
  %td.nowrap
5
5
  %small= l attachment.created_at, format: '%d %B %Y %H:%M'
6
6
  %td.nowrap
7
- = link_to "Verwijderen", "#", class: 'button button-link button-danger button-small', data: {confirm: "Weet je zeker dat je <strong>#{attachment.name}</strong> wilt verwijderen?"}
7
+ = link_to t('spina.delete'), "#", class: 'button button-link button-danger button-small', data: {confirm: t('spina.delete_confirmation', subject: attachment.name)}
@@ -1,7 +1,7 @@
1
1
  .modal.modal-large
2
2
  %header
3
3
  = link_to "", "#", class: 'close_modal', data: {dismiss: 'modal', icon: 'm'}
4
- %h3 Document invoegen
4
+ %h3= t('spina.attachments.insert')
5
5
 
6
6
  %section
7
7
  -# = form_for [spina, :admin, @attachment], html: {multipart: true} do |f|
@@ -13,7 +13,7 @@
13
13
  %thead
14
14
  %tr
15
15
  %th
16
- %th Bestandsnaam
16
+ %th= Spina::Attachment.human_attribute_name(:name)
17
17
  %tbody
18
18
  - @attachments.each do |attachment|
19
19
  %tr
@@ -21,5 +21,5 @@
21
21
  %td= attachment.name
22
22
 
23
23
  %footer
24
- = link_to "Annuleren", "#", data: {dismiss: 'modal'}
25
- = button_tag "Document invoegen", type: 'submit', class: 'primary', data: {icon: 't '}
24
+ = link_to t('spina.cancel'), "#", data: {dismiss: 'modal'}
25
+ = button_tag t('spina.attachments.insert'), type: 'submit', class: 'primary', data: {icon: 't '}
@@ -1,7 +1,7 @@
1
1
  .modal.modal-large
2
2
  %header
3
3
  = link_to "", "#", class: 'close_modal', data: {dismiss: 'modal', icon: 'm'}
4
- %h3 Documenten invoegen
4
+ %h3= t('spina.attachments.insert_multiple')
5
5
 
6
6
  %section
7
7
  -# = form_for [spina, :admin, @attachment], html: {multipart: true} do |f|
@@ -13,7 +13,7 @@
13
13
  %thead
14
14
  %tr
15
15
  %th
16
- %th Bestandsnaam
16
+ %th= Spina::Attachment.human_attribute_name(:name)
17
17
  %tbody
18
18
  - @attachments.each do |attachment|
19
19
  %tr
@@ -21,5 +21,5 @@
21
21
  %td= attachment.name
22
22
 
23
23
  %footer
24
- = link_to "Annuleren", "#", data: {dismiss: 'modal'}
25
- = button_tag "Documenten invoegen", type: 'submit', class: 'primary', data: {icon: 't '}
24
+ = link_to t('spina.cancel'), "#", data: {dismiss: 'modal'}
25
+ = button_tag t('spina.attachments.insert_multiple'), type: 'submit', class: 'primary', data: {icon: 't '}
@@ -1,5 +1,3 @@
1
- <% if @attachment.new_record? %>
2
- alert("Document kon niet worden verwerkt: <%= j @attachment.errors.full_messages.join(', ').html_safe %>");
3
- <% else %>
1
+ <% unless @attachment.new_record? %>
4
2
  $(".table-prepend-document").prepend("<%= j render partial: 'spina/admin/attachments/attachment', object: @attachment %>");
5
3
  <% end %>
@@ -1,14 +1,14 @@
1
1
  .table-container
2
2
  .search-input.pull-right
3
- = text_field_tag :search, nil, placeholder: "Zoeken...", class: 'input-search input-rounded'
3
+ = text_field_tag :search, nil, placeholder: t('spina.search'), class: 'input-search input-rounded'
4
4
  .clear-input{data: {icon: 'm'}}
5
5
 
6
6
  %table.table.datatable
7
7
  %thead
8
8
  %tr
9
- %th Bestandsnaam
10
- %th Grootte
11
- %th Aangemaakt op
9
+ %th= Spina::Attachment.human_attribute_name(:name)
10
+ %th= Spina::Attachment.human_attribute_name(:size)
11
+ %th= Spina::Attachment.human_attribute_name(:created_at)
12
12
  %th
13
13
  %tr
14
14
  %td{colspan: 4}
@@ -2,8 +2,8 @@
2
2
  %table.table
3
3
  %thead
4
4
  %tr
5
- %th{width: 200} Afzender
6
- %th Bericht
5
+ %th{width: 200}= Spina::Inquiry.human_attribute_name(:name)
6
+ %th= Spina::Inquiry.human_attribute_name(:message)
7
7
  %th{colspan: 2}
8
8
 
9
9
  %tbody
@@ -21,10 +21,10 @@
21
21
  = l inquiry.created_at, format: '%e %B %Y %H:%M'
22
22
 
23
23
  %td.nowrap
24
- = link_to "Bericht markeren als gelezen", spina.mark_as_read_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-small', data: {icon: 'k'}
25
- = link_to "Verwijderen", spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: "Weet je zeker dat je het bericht van <strong>#{inquiry.name}</strong> definitief wilt verwijderen?"}
24
+ = link_to t('spina.inquiries.mark_as_read'), spina.mark_as_read_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-small', data: {icon: 'k'}
25
+ = link_to "Verwijderen", spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: t('spina.inquiries.delete_confirmation', subject: inquiry.name)}
26
26
 
27
27
  - else
28
28
  %tr
29
29
  %td.align-center{colspan: 3}
30
- %em Inbox is leeg.
30
+ %em= t('spina.inquiries.empty_inbox')
@@ -3,17 +3,17 @@
3
3
  %ul
4
4
  %li{class: ('active' if action_name == "index")}
5
5
  = link_to spina.admin_inquiries_path do
6
- Alle berichten
6
+ = t('spina.inquiries.all')
7
7
  %li{ class: ('active' if action_name == 'spam')}
8
8
  = link_to spina.spam_admin_inquiries_path do
9
- Spam
9
+ = t('spina.inquiries.spam')
10
10
 
11
11
  .table-container
12
12
  %table.table
13
13
  %thead
14
14
  %tr
15
- %th{width: 200} Afzender
16
- %th Bericht
15
+ %th{width: 200}= Spina::Inquiry.human_attribute_name(:name)
16
+ %th= Spina::Inquiry.human_attribute_name(:message)
17
17
  %th{colspan: 2}
18
18
 
19
19
  %tbody
@@ -29,8 +29,8 @@
29
29
  %td.nowrap
30
30
  %small=l inquiry.created_at, format: '%e %B %Y %H:%M'
31
31
  %td.nowrap
32
- = link_to "Verwijderen", spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: "Weet je zeker dat je het bericht van <strong>#{inquiry.name}</strong> definitief wilt verwijderen?"}
32
+ = link_to t('spina.delete'), spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: t('spina.inquiries.delete_confirmation', subject: inquiry.name)}
33
33
  - else
34
34
  %tr
35
35
  %td.align-center{colspan: 3}
36
- %em Je hebt nog geen berichten ontvangen.
36
+ %em= t('spina.inquiries.empty')
@@ -1,13 +1,13 @@
1
1
  .table-container.table-form
2
2
  %table.table
3
3
  %tr
4
- %th Naam
4
+ %th= Spina::Inquiry.human_attribute_name(:name)
5
5
  %td= @inquiry.name
6
6
  %tr
7
- %th Email
7
+ %th= Spina::Inquiry.human_attribute_name(:email)
8
8
  %td= @inquiry.email
9
9
  %tr
10
- %th Telefoon
10
+ %th= Spina::Inquiry.human_attribute_name(:phone)
11
11
  %td= @inquiry.phone
12
12
  %tr
13
13
  %td
@@ -15,9 +15,9 @@
15
15
 
16
16
  .pull-right
17
17
  - unless @inquiry.archived?
18
- = link_to "Bericht markeren als gelezen", spina.mark_as_read_admin_inquiry_path(@inquiry), method: :patch, class: 'button', data: {icon: 'k'}
18
+ = link_to t('spina.inquiries.mark_as_read'), spina.mark_as_read_admin_inquiry_path(@inquiry), method: :patch, class: 'button', data: {icon: 'k'}
19
19
 
20
20
  - if @inquiry.spam
21
- = link_to "Geen spam", spina.unmark_spam_admin_inquiry_path(@inquiry), method: :patch, class: 'button', data: {icon: 'v'}
21
+ = link_to t('spina.inquiries.no_spam'), spina.unmark_spam_admin_inquiry_path(@inquiry), method: :patch, class: 'button', data: {icon: 'v'}
22
22
 
23
- = link_to "Verwijderen", spina.admin_inquiry_path(@inquiry), method: :delete, class: 'button button-danger button-link', data: {confirm: "Weet je zeker dat je het bericht van <strong>#{@inquiry.name}</strong> definitief wilt verwijderen?"}
23
+ = link_to t('spina.cancel'), spina.admin_inquiry_path(@inquiry), method: :delete, class: 'button button-danger button-link', data: {confirm: t('spina.inquiries.delete_confirmation', subject: @inquiry.name)}
@@ -3,17 +3,17 @@
3
3
  %ul
4
4
  %li{class: ('active' if action_name == "index")}
5
5
  = link_to spina.admin_inquiries_path do
6
- Alle berichten
6
+ = t('spina.inquiries.all')
7
7
  %li{ class: ('active' if action_name == 'spam')}
8
8
  = link_to spina.spam_admin_inquiries_path do
9
- Spam
9
+ = t('spina.inquiries.spam')
10
10
 
11
11
  .table-container
12
12
  %table.table
13
13
  %thead
14
14
  %tr
15
- %th{width: 200} Afzender
16
- %th Bericht
15
+ %th{width: 200}= Spina::Inquiry.human_attribute_name(:name)
16
+ %th= Spina::Inquiry.human_attribute_name(:message)
17
17
  %th{colspan: 2}
18
18
 
19
19
  %tbody
@@ -28,9 +28,9 @@
28
28
  %td.nowrap
29
29
  %small=l inquiry.created_at, format: '%e %B %Y %H:%M'
30
30
  %td.nowrap
31
- = link_to "Geen spam", spina.unmark_spam_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-primary button-small', data: {icon: 'x'}
32
- = link_to "Verwijderen", spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: "Weet je zeker dat je het bericht van <strong>#{inquiry.name}</strong> definitief wilt verwijderen?"}
31
+ = link_to t('spina.inquiries.no_spam'), spina.unmark_spam_admin_inquiry_path(inquiry), method: :patch, class: 'button button-link button-primary button-small', data: {icon: 'x'}
32
+ = link_to t('spina.delete'), spina.admin_inquiry_path(inquiry), method: :delete, class: 'button button-danger button-link button-small', data: {confirm: t('spina.inquiries.delete_confirmation', subject: inquiry.name)}
33
33
  - else
34
34
  %tr
35
35
  %td.align-center{colspan: 3}
36
- %em Er zijn geen berichten gemarkeerd als spam.
36
+ %em= t('spina.inquiries.empty_spam')
@@ -5,5 +5,6 @@
5
5
  .attachment= attachment.name
6
6
  - else
7
7
  .placeholder
8
- %span{data: {icon: 't'}} Kies uit bibliotheek
8
+ %span{data: {icon: 't'}}
9
+ = t('spina.choose_from_library')
9
10
  = form.hidden_field :attachment_tokens, value: form.object.attachment_ids.join(",")
@@ -3,6 +3,7 @@
3
3
  .attachment= attachment_form.object.page_partable.name
4
4
  - else
5
5
  .placeholder
6
- %span{data: {icon: 't'}} Kies uit bibliotheek
6
+ %span{data: {icon: 't'}}
7
+ = t('spina.choose_from_library')
7
8
 
8
9
  = attachment_form.hidden_field :page_partable_id
@@ -1,2 +1,2 @@
1
1
  = line_form.fields_for :page_partable, line_form.object.page_partable do |form|
2
- = form.text_field :content, placeholder: "Paginsectie #{line_form.object.name.downcase}"
2
+ = form.text_field :content, placeholder: "#{t 'spina.pages.page_part'} #{line_form.object.name.downcase}"
@@ -1,7 +1,7 @@
1
1
  = photo_collection_form.fields_for :page_partable, photo_collection_form.object.page_partable do |form|
2
2
  = link_to spina.photo_collection_select_admin_photos_path(form.object_name, selected_photo_ids: (form.object.photo_ids if form.object.photos.any?)), remote: true, class: "media_picker" do
3
3
  .placeholder{class: ('pull-right' if form.object.photos.any?)}
4
- %span.button.button-small.button-round{data: {icon: 'U'}} Foto's kiezen
4
+ %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photos_picker'
5
5
 
6
6
  .photo-collection
7
7
  - if form.object.photos.sorted_by_photo_collection.any?
@@ -1,11 +1,11 @@
1
1
  = link_to spina.photo_select_admin_photos_path(photo_form.object_name, selected_photo_id: (photo_form.object.page_partable.id if photo_form.object.page_partable.present?)), remote: true, class: "media_picker" do
2
2
  - if photo_form.object.page_partable && photo_form.object.page_partable.file.present?
3
3
  .placeholder.pull-right
4
- %span.button.button-small.button-round{data: {icon: 'U'}} Foto kiezen
4
+ %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photo_picker'
5
5
  .image
6
6
  = image_tag photo_form.object.page_partable.file.thumb
7
7
  - else
8
8
  .placeholder
9
- %span.button.button-small.button-round{data: {icon: 'U'}} Foto kiezen
9
+ %span.button.button-small.button-round{data: {icon: 'U'}}=t 'spina.pages.photo_picker'
10
10
 
11
11
  = photo_form.hidden_field :page_partable_id
@@ -10,12 +10,12 @@
10
10
  .pull-right
11
11
  .choose-text-type
12
12
  %ul
13
- %li= link_to "Paragraaf", "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "P"}
14
- %li= link_to "Kop 1", "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h1"}
15
- %li= link_to "Kop 2", "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h2"}
16
- %li= link_to "Kop 3", "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h3"}
17
- %li= link_to "Quote", "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "blockquote"}
13
+ %li= link_to t('spina.wysiwyg.paragraph'), "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "P"}
14
+ %li= link_to t('spina.wysiwyg.heading_1'), "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h1"}
15
+ %li= link_to t('spina.wysiwyg.heading_2'), "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h2"}
16
+ %li= link_to t('spina.wysiwyg.heading_3'), "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "h3"}
17
+ %li= link_to t('spina.wysiwyg.quote'), "#", data: {:"wysihtml5-command" => "formatBlock", :"wysihtml5-command-value" => "blockquote"}
18
18
 
19
19
  = link_to "", "#", class: 'command action-change-view', data: {:"wysihtml5-action" => "change_view", icon: 'I'}
20
20
 
21
- = form.text_area :content, placeholder: "Paginasectie #{text_form.object.name.downcase}", class: 'wysihtml5'
21
+ = form.text_area :content, placeholder: "#{t 'spina.pages.page_part'} #{text_form.object.name.downcase}", class: 'wysihtml5'
@@ -2,11 +2,11 @@
2
2
  = form_tag spina.wysihtml5_link_admin_page_parts_path(params[:object_id]), method: :post, remote: true do
3
3
  %header
4
4
  = link_to "", "#", class: 'close_modal', data: {dismiss: 'modal', icon: 'm'}
5
- %h3 Link invoegen
5
+ %h3=t 'spina.wysiwyg.insert_link'
6
6
 
7
7
  %section
8
8
  = text_field_tag :link, nil, placeholder: "URL"
9
9
 
10
10
  %footer
11
- = link_to "Annuleren", "#", data: {dismiss: 'modal'}
12
- = button_tag "Link invoegen", type: 'submit', class: 'primary', data: {icon: 't '}
11
+ = link_to t('spina.cancel'), "#", data: {dismiss: 'modal'}
12
+ = button_tag t('spina.wysiwyg.insert_link'), type: 'submit', class: 'primary', data: {icon: 't '}
@@ -7,14 +7,14 @@
7
7
  %table.table.table-form
8
8
  %tr
9
9
  %td
10
- Titel
10
+ = Spina::Page.human_attribute_name :title
11
11
  %td
12
- = f.text_field :title, placeholder: "Titel in de pagina"
12
+ = f.text_field :title, placeholder: Spina::Page.human_attribute_name(:title_placeholder)
13
13
 
14
14
  = f.fields_for :page_parts, @page_parts.sort { |a,b| a.position(current_theme) <=> b.position(current_theme) } do |page_part_form|
15
15
  %tr.page-part{data: {name: page_part_form.object.name}}
16
16
  %td
17
- %label= page_part_form.object.title
17
+ = page_part_form.object.title
18
18
  %td
19
19
  = page_part_form.hidden_field :id
20
20
  = page_part_form.hidden_field :title
@@ -28,56 +28,56 @@
28
28
  %table.table.table-form
29
29
  %tr
30
30
  %td
31
- SEO &lt;title&gt;
31
+ = Spina::Page.human_attribute_name :seo_title
32
32
  %td
33
- = f.text_field :seo_title, placeholder: "Deze titel komt in de <title>-tag van de broncode te staan"
33
+ = f.text_field :seo_title, placeholder: Spina::Page.human_attribute_name(:seo_title_placeholder)
34
34
 
35
35
  %tr
36
36
  %td
37
- SEO Beschrijving
38
- %small De beschrijving wordt weergegeven bij resultaten van zoekmachines
37
+ = Spina::Page.human_attribute_name :description
38
+ %small= Spina::Page.human_attribute_name :description_description
39
39
  %td
40
- = f.text_field :description, placeholder: "Een korte beschrijving van de pagina"
40
+ = f.text_field :description, placeholder: Spina::Page.human_attribute_name(:description_placeholder)
41
41
 
42
42
  #advanced.tab-content
43
43
  .table-container
44
44
  %table.table.table-form
45
45
  %tr
46
46
  %td
47
- Concept
48
- %small Handig wanneer de pagina nog niet helemaal af is
47
+ = Spina::Page.human_attribute_name :draft
48
+ %small= Spina::Page.human_attribute_name :draft_description
49
49
  %td
50
50
  = f.check_box :draft, data: {switch: true}
51
51
  %tr
52
52
  %td
53
- Doorsturen
54
- %small Doorsturen naar eerste onderliggende pagina
53
+ = Spina::Page.human_attribute_name :skip_to_first_child
54
+ %small= Spina::Page.human_attribute_name :skip_to_first_child_description
55
55
  %td
56
56
  = f.check_box :skip_to_first_child, data: {switch: true}
57
57
  %tr
58
58
  %td
59
- In menu weergeven
60
- %small Als dit uit staat komt de pagina niet voor in het menu
59
+ = Spina::Page.human_attribute_name :show_in_menu
60
+ %small= Spina::Page.human_attribute_name :show_in_menu_description
61
61
  %td
62
62
  = f.check_box :show_in_menu, data: {switch: true}
63
63
  %tr{style: ('border-bottom: none' if @page.custom_page?)}
64
64
  %td
65
- Menu titel
65
+ = Spina::Page.human_attribute_name :menu_title
66
66
  %td
67
- = f.text_field :menu_title, placeholder: "Leeglaten om de titel van de pagina over te nemen"
67
+ = f.text_field :menu_title, placeholder: Spina::Page.human_attribute_name(:show_in_menu_placeholder)
68
68
 
69
69
  %tr{style: ('display: none' if @page.custom_page?)}
70
70
  %td
71
- Pagina template
71
+ = Spina::Page.human_attribute_name :view_template
72
72
  %td
73
73
  .select-dropdown.page-template{data: {page_parts: current_theme.config.view_templates[@page.view_template || "show"][:page_parts]}}
74
74
  - options = options_for_select(current_theme.config.view_templates.map { |template| [template[1][:title], template[0], {'data-page-parts' => template[1][:page_parts]}] }, @page.view_template)
75
75
  = f.select :view_template, options
76
76
 
77
77
  %button.button.button-primary{type: 'submit', data: {icon: 'o'}}
78
- Pagina opslaan
78
+ =t 'spina.pages.save'
79
79
 
80
- = link_to "Annuleren", spina.admin_pages_path, class: 'button button-link'
80
+ = link_to t('spina.cancel'), spina.admin_pages_path, class: 'button button-link'
81
81
 
82
82
  - unless @page.new_record? || !@page.deletable
83
- .pull-right= link_to "Definitief verwijderen", spina.admin_page_path(@page), method: :delete, data: {confirm: "Weet je zeker dat je de pagina <strong>#{@page.menu_title}</strong> wilt verwijderen?"}, class: 'button button-link button-danger'
83
+ .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'