activeadmin-selleo-cms 0.0.18 → 0.0.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/app/admin/active_admin/views_helper.rb +4 -0
  2. data/app/admin/activeadmin_selleo_cms/page.rb +42 -6
  3. data/app/assets/javascripts/activeadmin-selleo-cms/custom.js +35 -0
  4. data/app/assets/javascripts/activeadmin-selleo-cms/jquery-ui-timepicker-addon.js +1902 -0
  5. data/app/assets/javascripts/ckeditor/config.js +12 -1
  6. data/app/assets/stylesheets/activeadmin-selleo-cms/custom.css +5 -1
  7. data/app/assets/stylesheets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.css +10 -0
  8. data/app/controllers/pages_controller.rb +9 -4
  9. data/app/controllers/searches_controller.rb +1 -1
  10. data/app/helpers/pages_helper.rb +9 -5
  11. data/app/models/activeadmin_selleo_cms/asset.rb +7 -1
  12. data/app/models/activeadmin_selleo_cms/attachment.rb +2 -0
  13. data/app/models/activeadmin_selleo_cms/image.rb +21 -0
  14. data/app/models/activeadmin_selleo_cms/layout.rb +27 -3
  15. data/app/models/activeadmin_selleo_cms/page.rb +33 -33
  16. data/app/models/activeadmin_selleo_cms/search.rb +1 -0
  17. data/app/models/activeadmin_selleo_cms/section.rb +33 -1
  18. data/app/views/admin/pages/_form.html.haml +2 -8
  19. data/app/views/admin/pages/_translated_fields.html.haml +52 -15
  20. data/app/views/admin/pages/reorder.html.haml +6 -0
  21. data/app/views/admin/pages/update_positions.js.erb +6 -0
  22. data/app/views/searches/show.html.haml +1 -1
  23. data/config/initializers/active_admin.rb +3 -0
  24. data/config/initializers/formtastic.rb +7 -0
  25. data/config/routes.rb +2 -7
  26. data/db/migrate/20130206173233_change_activeadmin_selleo_cms_searches.rb +29 -0
  27. data/db/migrate/20130207213528_change_activeadmin_selleo_cms_assets.rb +12 -0
  28. data/lib/activeadmin-selleo-cms/version.rb +1 -1
  29. data/lib/generators/activeadmin_selleo_cms/templates/cms.html.erb +7 -3
  30. data/spec/dummy/app/views/layouts/cms.html.erb +1 -1
  31. data/spec/dummy/db/snapshots/test_database.sql +1 -1
  32. data/spec/dummy/log/test.log +79024 -0
  33. data/spec/dummy/tmp/cache/assets/BEF/CA0/sprockets%2F3335c73d91157a627611592700a9654e +0 -0
  34. data/spec/dummy/tmp/cache/assets/C5A/610/sprockets%2Fbe898195780d802c102d152255d9e477 +0 -0
  35. data/spec/dummy/tmp/cache/assets/CB7/190/sprockets%2F136a9350fa75f3336af293952861ed6d +0 -0
  36. data/spec/dummy/tmp/cache/assets/CBA/D70/sprockets%2F8c5e2f7ea6f160a6792a442f01378479 +0 -0
  37. data/spec/dummy/tmp/cache/assets/CCF/2E0/sprockets%2Fde5b2bd811d24557c940a2239b7e3130 +0 -0
  38. data/spec/dummy/tmp/cache/assets/CD3/3E0/sprockets%2F373fa62090ab111ae606b963e1b8c793 +0 -0
  39. data/spec/dummy/tmp/cache/assets/CD6/930/sprockets%2Fb62a24129369fea572b674303a7fa12f +0 -0
  40. data/spec/dummy/tmp/cache/assets/CE2/D80/sprockets%2F28a4d5b1a75700c7579e3773f34ccd71 +0 -0
  41. data/spec/dummy/tmp/cache/assets/CE3/720/sprockets%2F8c9e2817b83ec580831f21b0c352c9c7 +0 -0
  42. data/spec/dummy/tmp/cache/assets/CED/FB0/sprockets%2Fa675d17ed83804639ec0264b624d98ed +0 -0
  43. data/spec/dummy/tmp/cache/assets/D2C/2E0/sprockets%2Fa031c32e27ced12f81d4326f8b52fb23 +0 -0
  44. data/spec/dummy/tmp/cache/assets/D5C/1D0/sprockets%2F0671a22da74f433700c99e13bfaaf0ce +0 -0
  45. data/spec/dummy/tmp/cache/assets/D63/6C0/sprockets%2F1ae1f1cf9d92d0e61b7006171a39fd4d +0 -0
  46. data/spec/dummy/tmp/cache/assets/D64/060/sprockets%2F3b86cba556132a40a7e49a7b4c7e17ad +0 -0
  47. data/spec/dummy/tmp/cache/assets/D92/B20/sprockets%2F871f050bda629a18e11ea8db7c1aca77 +0 -0
  48. data/spec/dummy/tmp/cache/assets/DB2/EA0/sprockets%2Ffead656b8b83fbae9f69435c33b4649d +0 -0
  49. data/spec/dummy/tmp/cache/assets/E37/3E0/sprockets%2F9e6d2d17ed6da64a2f1876d4cdfefcd1 +0 -0
  50. data/spec/dummy/tmp/capybara/capybara-201301312228138539754304.html +152 -0
  51. data/spec/dummy/tmp/capybara/capybara-201301312228185417992211.html +152 -0
  52. data/spec/dummy/tmp/capybara/capybara-201301312228232926906843.html +152 -0
  53. data/spec/dummy/tmp/capybara/capybara-201301312228302851745933.html +176 -0
  54. data/spec/dummy/tmp/capybara/capybara-20130131222835626927814.html +152 -0
  55. data/spec/dummy/tmp/capybara/capybara-201301312228403892930584.html +152 -0
  56. data/spec/dummy/tmp/capybara/capybara-201301312228491329185040.html +152 -0
  57. data/spec/dummy/tmp/capybara/capybara-201301312232412606495803.html +182 -0
  58. data/spec/dummy/tmp/capybara/capybara-201301312232508358940406.html +242 -0
  59. data/spec/dummy/tmp/capybara/capybara-201301312233036556441968.html +182 -0
  60. data/spec/dummy/tmp/capybara/capybara-201301312233093002404474.html +182 -0
  61. data/spec/models/activeadmin_selleo_cms/page_spec.rb +9 -0
  62. data/spec/support/pages_helper.rb +4 -4
  63. metadata +46 -5
  64. data/app/models/activeadmin_selleo_cms/header_image.rb +0 -12
  65. data/app/models/activeadmin_selleo_cms/icon.rb +0 -12
  66. data/app/modules/active_admin/views/index_as_list.rb +0 -28
@@ -0,0 +1,152 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-type" />
4
+ <title>New Page | Dummy</title>
5
+ <link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/custom.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /> <script type="text/javascript" src="/assets/active_admin.js"></script>
6
+ <script type="text/javascript" src="/assets/active_admin/base.js"></script>
7
+ <script type="text/javascript" src="/assets/ckeditor/init.js"></script>
8
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/custom.js"></script>
9
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.js"></script>
10
+ <script type="text/javascript" src="/assets/active_admin.js"></script>
11
+ </head>
12
+ <body class="new admin_pages active_admin logged_in admin_namespace" onpageshow='event.persisted &amp;&amp; (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){ editor = allInstances[ i ]; doc = editor.document; if ( doc ) { doc.$.designMode = "off"; doc.$.designMode = "on"; }}})();'>
13
+ <div id="wrapper">
14
+ <div id="header" class="header">
15
+ <h1 id="site_title" class="site_title">Dummy</h1>
16
+ <ul id="tabs" class="header-item">
17
+ <li id="dashboard"><a href="/admin/dashboard">Dashboard</a></li>
18
+ <li id="assets"><a href="/admin/assets">Assets</a></li>
19
+ <li id="locales"><a href="/admin/locales">Locales</a></li>
20
+ <li id="pages" class="current"><a href="/admin/pages">Pages</a></li>
21
+ <li id="sections"><a href="/admin/sections">Sections</a></li>
22
+ <li id="translations"><a href="/admin/translations">Translations</a></li>
23
+ </ul>
24
+ <p id="utility_nav" class="header-item">
25
+ <span class="current_user">admin@example.com</span>
26
+ <a data-method="get" href="/admin/logout">Logout</a> </p>
27
+ </div>
28
+ <div id="title_bar" class="title_bar">
29
+ <div id="titlebar_left">
30
+ <span class="breadcrumb">
31
+ <a href="/admin">Admin</a> <span class="breadcrumb_sep">/</span>
32
+ <a href="/admin/pages">Pages</a> <span class="breadcrumb_sep">/</span>
33
+ </span>
34
+ <h2 id="page_title">New Page</h2>
35
+ </div>
36
+ <div id="titlebar_right"></div>
37
+ </div>
38
+ <div class="without_sidebar" id="active_admin_content">
39
+ <div id="main_content_wrapper">
40
+ <div id="main_content"><form novalidate="novalidate" method="post" id="new_page" enctype="multipart/form-data" class="formtastic activeadmin_selleo_cms_page" action="/admin/pages" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
41
+ <input type="hidden" name="_change_layout" />
42
+ <fieldset class="inputs"><legend><span>General options</span></legend><ol><li id="page_layout_name_input" class="select input required"><label for="page_layout_name" class=" label">Layout name<abbr title="required">*</abbr></label><select name="page[layout_name]" id="page_layout_name"><option value="application">application</option>
43
+ <option selected="selected" value="cms">cms</option></select>
44
+
45
+ <p class="inline-hints">The form will reload on change</p></li>
46
+ <li id="page_parent_id_input" class="select input optional"><label for="page_parent_id" class=" label">Parent</label><select name="page[parent_id]" id="page_parent_id"><option value=""></option>
47
+ </select>
48
+
49
+ </li>
50
+ <li id="page_is_published_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_published]" /><label for="page_is_published" class=""><input type="checkbox" value="1" name="page[is_published]" id="page_is_published" />Is published</label>
51
+
52
+ </li>
53
+ <li id="page_redirect_to_first_sub_page_input" class="boolean input optional"><input type="hidden" value="0" name="page[redirect_to_first_sub_page]" /><label for="page_redirect_to_first_sub_page" class=""><input type="checkbox" value="1" name="page[redirect_to_first_sub_page]" id="page_redirect_to_first_sub_page" />Redirect to first sub page</label>
54
+
55
+ </li>
56
+ <li id="page_is_link_url_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_link_url]" /><label for="page_is_link_url" class=""><input type="checkbox" value="1" name="page[is_link_url]" id="page_is_link_url" />Is link url</label>
57
+
58
+ </li>
59
+ <li id="page_link_url_input" class="url input optional stringish" style="display: list-item;"><label for="page_link_url" class=" label">Link url</label><input type="url" name="page[link_url]" maxlength="255" id="page_link_url" />
60
+
61
+ <p class="inline-hints">Enter remote URL including the http part at the beginning</p></li>
62
+ </ol></fieldset><li id="page_sections_attributes_0_name_input" class="hidden input required"><input type="hidden" value="header" name="page[sections_attributes][0][name]" id="page_sections_attributes_0_name" />
63
+
64
+ </li>
65
+ <li id="page_sections_attributes_1_name_input" class="hidden input required"><input type="hidden" value="content" name="page[sections_attributes][1][name]" id="page_sections_attributes_1_name" />
66
+
67
+ </li>
68
+ <li id="page_sections_attributes_2_name_input" class="hidden input required"><input type="hidden" value="footer" name="page[sections_attributes][2][name]" id="page_sections_attributes_2_name" />
69
+
70
+ </li>
71
+ <div class="language-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
72
+ <ul class="language-selection ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
73
+ <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="lang-en" aria-labelledby="ui-id-1" aria-selected="true"><a href="#lang-en" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">English</a></li>
74
+ </ul>
75
+ <div style="" id="lang-en" aria-labelledby="ui-id-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-expanded="true" aria-hidden="false">
76
+ <fieldset class="inputs"><legend><span>English translation</span></legend><ol><ol>
77
+ <li id="page_translations_attributes_0_title_input" class="string input required stringish"><label for="page_translations_attributes_0_title" class=" label">Title<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][0][title]" maxlength="255" id="page_translations_attributes_0_title" />
78
+
79
+ </li>
80
+ <li id="page_translations_attributes_0_slug_input" class="string input required stringish"><label for="page_translations_attributes_0_slug" class=" label">Slug<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][0][slug]" maxlength="255" id="page_translations_attributes_0_slug" />
81
+
82
+ </li>
83
+ <li id="page_translations_attributes_0_browser_title_input" class="string input optional stringish" style="display: none;"><label for="page_translations_attributes_0_browser_title" class=" label">Browser title</label><input type="text" name="page[translations_attributes][0][browser_title]" maxlength="255" id="page_translations_attributes_0_browser_title" class="link-url-hide" />
84
+
85
+ </li>
86
+ <li id="page_translations_attributes_0_meta_keywords_input" class="string input optional stringish" style="display: none;"><label for="page_translations_attributes_0_meta_keywords" class=" label">Meta keywords</label><input type="text" name="page[translations_attributes][0][meta_keywords]" maxlength="255" id="page_translations_attributes_0_meta_keywords" class="link-url-hide" />
87
+
88
+ </li>
89
+ <li id="page_translations_attributes_0_meta_description_input" class="text input optional" style="display: none;"><label for="page_translations_attributes_0_meta_description" class=" label">Meta description</label><textarea rows="3" name="page[translations_attributes][0][meta_description]" id="page_translations_attributes_0_meta_description" class="link-url-hide"></textarea>
90
+
91
+ </li>
92
+ <li id="page_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[translations_attributes][0][locale]" id="page_translations_attributes_0_locale" />
93
+
94
+ </li>
95
+ </ol>
96
+ </ol></fieldset>
97
+ </div>
98
+ </div>
99
+ <fieldset class="actions"><ol><li id="page_submit_action" class="action input_action "><input type="submit" value="Create Page" name="commit" /></li>
100
+ <li class="cancel">
101
+ <a href="/admin/pages">Cancel</a>
102
+ </li>
103
+ </ol></fieldset></form>
104
+ <script>
105
+ //&lt;![CDATA[
106
+ function is_link_url(){
107
+ if($('input#page_is_link_url').is(':checked')){
108
+ $('.link-url-hide, textarea').closest('li').hide();
109
+ $('li#page_link_url_input').show();
110
+ }else{
111
+ $('li#page_link_url_input').hide();
112
+ $('.link-url-hide, textarea').closest('li').show();
113
+ }
114
+ }
115
+
116
+ $(function() {
117
+ $(".language-tabs").tabs();
118
+ is_link_url();
119
+
120
+ $("input[id$='_title']").blur(function(){
121
+ slugId = '#' + $(this).attr('id').replace('_title', '_slug');
122
+ if ($(slugId).attr('value') == '') {
123
+ $(slugId).attr('value', slug($(this).attr('value')) )
124
+ }
125
+
126
+ browserTitleId = '#' + $(this).attr('id').replace('_title', '_browser_title');
127
+ if ($(browserTitleId).attr('value') == '') {
128
+ $(browserTitleId).attr('value', $(this).attr('value') )
129
+ }
130
+ });
131
+
132
+ $('input#page_is_link_url').change(function(){
133
+ is_link_url();
134
+ });
135
+
136
+ $('select#page_layout_name').change(function(){
137
+ $(this).closest('form').find('input[name="_change_layout"]').attr('value','1');
138
+ $(this).closest('form').submit();
139
+ });
140
+ });
141
+ //]]&gt;
142
+ </script>
143
+ </div>
144
+ </div>
145
+ </div>
146
+ <div id="footer" class="footer">
147
+ <p>Powered by <a href="http://www.activeadmin.info">Active Admin</a> 0.5.1</p>
148
+ </div>
149
+ </div>
150
+
151
+
152
+ </body></html>
@@ -0,0 +1,182 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-type" />
4
+ <title>New Page | Dummy</title>
5
+ <link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/custom.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /> <script type="text/javascript" src="/assets/active_admin.js"></script>
6
+ <script type="text/javascript" src="/assets/active_admin/base.js"></script>
7
+ <script type="text/javascript" src="/assets/ckeditor/init.js"></script>
8
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/custom.js"></script>
9
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.js"></script>
10
+ <script type="text/javascript" src="/assets/active_admin.js"></script>
11
+ <script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/config.js?t=C6HH5UF"></script><link rel="stylesheet" type="text/css" href="http://127.0.0.1:33877/assets/ckeditor/skins/kama/editor.css?t=C6HH5UF" /><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/embed/plugin.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/attachment/plugin.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/embed/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/attachment/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/styles/styles/default.js?t=C6HH5UF"></script></head>
12
+ <body class="new admin_pages active_admin logged_in admin_namespace" onpageshow='event.persisted &amp;&amp; (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){ editor = allInstances[ i ]; doc = editor.document; if ( doc ) { doc.$.designMode = "off"; doc.$.designMode = "on"; }}})();'>
13
+ <div id="wrapper">
14
+ <div id="header" class="header">
15
+ <h1 id="site_title" class="site_title">Dummy</h1>
16
+ <ul id="tabs" class="header-item">
17
+ <li id="dashboard"><a href="/admin/dashboard">Dashboard</a></li>
18
+ <li id="assets"><a href="/admin/assets">Assets</a></li>
19
+ <li id="locales"><a href="/admin/locales">Locales</a></li>
20
+ <li id="pages" class="current"><a href="/admin/pages">Pages</a></li>
21
+ <li id="sections"><a href="/admin/sections">Sections</a></li>
22
+ <li id="translations"><a href="/admin/translations">Translations</a></li>
23
+ </ul>
24
+ <p id="utility_nav" class="header-item">
25
+ <span class="current_user">admin@example.com</span>
26
+ <a data-method="get" href="/admin/logout">Logout</a> </p>
27
+ </div>
28
+ <div id="title_bar" class="title_bar">
29
+ <div id="titlebar_left">
30
+ <span class="breadcrumb">
31
+ <a href="/admin">Admin</a> <span class="breadcrumb_sep">/</span>
32
+ <a href="/admin/pages">Pages</a> <span class="breadcrumb_sep">/</span>
33
+ </span>
34
+ <h2 id="page_title">New Page</h2>
35
+ </div>
36
+ <div id="titlebar_right"></div>
37
+ </div>
38
+ <div class="without_sidebar" id="active_admin_content">
39
+ <div id="main_content_wrapper">
40
+ <div id="main_content"><form novalidate="novalidate" method="post" id="new_page" enctype="multipart/form-data" class="formtastic activeadmin_selleo_cms_page" action="/admin/pages" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
41
+ <input type="hidden" name="_change_layout" />
42
+ <fieldset class="inputs"><legend><span>General options</span></legend><ol><li id="page_layout_name_input" class="select input required"><label for="page_layout_name" class=" label">Layout name<abbr title="required">*</abbr></label><select name="page[layout_name]" id="page_layout_name"><option value="application">application</option>
43
+ <option selected="selected" value="cms">cms</option></select>
44
+
45
+ <p class="inline-hints">The form will reload on change</p></li>
46
+ <li id="page_parent_id_input" class="select input optional"><label for="page_parent_id" class=" label">Parent</label><select name="page[parent_id]" id="page_parent_id"><option value=""></option>
47
+ </select>
48
+
49
+ </li>
50
+ <li id="page_is_published_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_published]" /><label for="page_is_published" class=""><input type="checkbox" value="1" name="page[is_published]" id="page_is_published" />Is published</label>
51
+
52
+ </li>
53
+ <li id="page_redirect_to_first_sub_page_input" class="boolean input optional"><input type="hidden" value="0" name="page[redirect_to_first_sub_page]" /><label for="page_redirect_to_first_sub_page" class=""><input type="checkbox" value="1" name="page[redirect_to_first_sub_page]" id="page_redirect_to_first_sub_page" />Redirect to first sub page</label>
54
+
55
+ </li>
56
+ <li id="page_is_link_url_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_link_url]" /><label for="page_is_link_url" class=""><input type="checkbox" value="1" name="page[is_link_url]" id="page_is_link_url" />Is link url</label>
57
+
58
+ </li>
59
+ <li id="page_link_url_input" class="url input optional stringish" style="display: none;"><label for="page_link_url" class=" label">Link url</label><input type="url" name="page[link_url]" maxlength="255" id="page_link_url" />
60
+
61
+ <p class="inline-hints">Enter remote URL including the http part at the beginning</p></li>
62
+ </ol></fieldset><li id="page_sections_attributes_0_name_input" class="hidden input required"><input type="hidden" value="header" name="page[sections_attributes][0][name]" id="page_sections_attributes_0_name" />
63
+
64
+ </li>
65
+ <li id="page_sections_attributes_1_name_input" class="hidden input required"><input type="hidden" value="content" name="page[sections_attributes][1][name]" id="page_sections_attributes_1_name" />
66
+
67
+ </li>
68
+ <li id="page_sections_attributes_2_name_input" class="hidden input required"><input type="hidden" value="footer" name="page[sections_attributes][2][name]" id="page_sections_attributes_2_name" />
69
+
70
+ </li>
71
+ <div class="language-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
72
+ <ul class="language-selection ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
73
+ <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="lang-en" aria-labelledby="ui-id-1" aria-selected="true"><a href="#lang-en" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">English</a></li>
74
+ </ul>
75
+ <div style="" id="lang-en" aria-labelledby="ui-id-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-expanded="true" aria-hidden="false">
76
+ <fieldset class="inputs"><legend><span>English translation</span></legend><ol><ol>
77
+ <li id="page_translations_attributes_0_title_input" class="string input required stringish"><label for="page_translations_attributes_0_title" class=" label">Title<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][0][title]" maxlength="255" id="page_translations_attributes_0_title" />
78
+
79
+ </li>
80
+ <li id="page_translations_attributes_0_slug_input" class="string input required stringish"><label for="page_translations_attributes_0_slug" class=" label">Slug<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][0][slug]" maxlength="255" id="page_translations_attributes_0_slug" value="sample-page" />
81
+
82
+ </li>
83
+ <li id="page_translations_attributes_0_browser_title_input" class="string input optional stringish"><label for="page_translations_attributes_0_browser_title" class=" label">Browser title</label><input type="text" name="page[translations_attributes][0][browser_title]" maxlength="255" id="page_translations_attributes_0_browser_title" class="link-url-hide" value="Sample page" />
84
+
85
+ </li>
86
+ <li id="page_translations_attributes_0_meta_keywords_input" class="string input optional stringish"><label for="page_translations_attributes_0_meta_keywords" class=" label">Meta keywords</label><input type="text" name="page[translations_attributes][0][meta_keywords]" maxlength="255" id="page_translations_attributes_0_meta_keywords" class="link-url-hide" />
87
+
88
+ </li>
89
+ <li id="page_translations_attributes_0_meta_description_input" class="text input optional"><label for="page_translations_attributes_0_meta_description" class=" label">Meta description</label><textarea rows="3" name="page[translations_attributes][0][meta_description]" id="page_translations_attributes_0_meta_description" class="link-url-hide"></textarea>
90
+
91
+ </li>
92
+ <li id="page_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[translations_attributes][0][locale]" id="page_translations_attributes_0_locale" />
93
+
94
+ </li>
95
+ <li id="page_sections_attributes_0_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_0_translations_attributes_0_body" class=" label">Header part</label><textarea rows="20" name="page[sections_attributes][0][translations_attributes][0][body]" id="page_sections_attributes_0_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_0_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_1 cke_editor_page_sections_attributes_0_translations_attributes_0_body" id="cke_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_0_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_0_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_8" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_8">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_9"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(6, this); return false;" onfocus="return CKEDITOR.tools.callFunction(5, event);" onkeydown="return CKEDITOR.tools.callFunction(4, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_10_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_10" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_10_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(9, this); return false;" onfocus="return CKEDITOR.tools.callFunction(8, event);" onkeydown="return CKEDITOR.tools.callFunction(7, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_11_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_11" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_11_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(12, this); return false;" onfocus="return CKEDITOR.tools.callFunction(11, event);" onkeydown="return CKEDITOR.tools.callFunction(10, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_12_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_12"><span class="cke_icon"> </span><span class="cke_label" id="cke_12_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_13"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(15, this); return false;" onfocus="return CKEDITOR.tools.callFunction(14, event);" onkeydown="return CKEDITOR.tools.callFunction(13, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_14_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_14"><span class="cke_icon"> </span><span class="cke_label" id="cke_14_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(18, this); return false;" onfocus="return CKEDITOR.tools.callFunction(17, event);" onkeydown="return CKEDITOR.tools.callFunction(16, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_15_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_15"><span class="cke_icon"> </span><span class="cke_label" id="cke_15_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(21, this); return false;" onfocus="return CKEDITOR.tools.callFunction(20, event);" onkeydown="return CKEDITOR.tools.callFunction(19, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_16_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_16"><span class="cke_icon"> </span><span class="cke_label" id="cke_16_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_17"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(24, this); return false;" onfocus="return CKEDITOR.tools.callFunction(23, event);" onkeydown="return CKEDITOR.tools.callFunction(22, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_18_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_18"><span class="cke_icon"> </span><span class="cke_label" id="cke_18_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(27, this); return false;" onfocus="return CKEDITOR.tools.callFunction(26, event);" onkeydown="return CKEDITOR.tools.callFunction(25, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_19_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_19"><span class="cke_icon"> </span><span class="cke_label" id="cke_19_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(30, this); return false;" onfocus="return CKEDITOR.tools.callFunction(29, event);" onkeydown="return CKEDITOR.tools.callFunction(28, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_20_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_20"><span class="cke_icon"> </span><span class="cke_label" id="cke_20_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(31)" class="cke_toolbox_collapser" tabindex="-1" id="cke_21" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_voice_label" id="cke_25">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_0_translations_attributes_0_body" aria-describedby="cke_25" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_0_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(3, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_0_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_0_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table><style>.cke_skin_kama{visibility:hidden;}</style></span></span></span><script type="text/javascript">
96
+ //&lt;![CDATA[
97
+ (function() { if (CKEDITOR.instances['page_sections_attributes_0_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_0_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_0_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_0_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
98
+ //]]&gt;
99
+ </script>
100
+
101
+ </li>
102
+ <li id="page_sections_attributes_0_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][0][translations_attributes][0][locale]" id="page_sections_attributes_0_translations_attributes_0_locale" />
103
+
104
+ </li>
105
+ <li id="page_sections_attributes_1_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_1_translations_attributes_0_body" class=" label">Content part</label><textarea rows="20" name="page[sections_attributes][1][translations_attributes][0][body]" id="page_sections_attributes_1_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_1_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_2 cke_editor_page_sections_attributes_1_translations_attributes_0_body" id="cke_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_1_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_1_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_32" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_32">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_33"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(39, this); return false;" onfocus="return CKEDITOR.tools.callFunction(38, event);" onkeydown="return CKEDITOR.tools.callFunction(37, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_34_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_34" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_34_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(42, this); return false;" onfocus="return CKEDITOR.tools.callFunction(41, event);" onkeydown="return CKEDITOR.tools.callFunction(40, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_35_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_35" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_35_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(45, this); return false;" onfocus="return CKEDITOR.tools.callFunction(44, event);" onkeydown="return CKEDITOR.tools.callFunction(43, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_36_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_36"><span class="cke_icon"> </span><span class="cke_label" id="cke_36_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_37"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(48, this); return false;" onfocus="return CKEDITOR.tools.callFunction(47, event);" onkeydown="return CKEDITOR.tools.callFunction(46, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_38_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_38"><span class="cke_icon"> </span><span class="cke_label" id="cke_38_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(51, this); return false;" onfocus="return CKEDITOR.tools.callFunction(50, event);" onkeydown="return CKEDITOR.tools.callFunction(49, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_39_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_39"><span class="cke_icon"> </span><span class="cke_label" id="cke_39_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(54, this); return false;" onfocus="return CKEDITOR.tools.callFunction(53, event);" onkeydown="return CKEDITOR.tools.callFunction(52, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_40_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_40"><span class="cke_icon"> </span><span class="cke_label" id="cke_40_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_41"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(57, this); return false;" onfocus="return CKEDITOR.tools.callFunction(56, event);" onkeydown="return CKEDITOR.tools.callFunction(55, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_42_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_42"><span class="cke_icon"> </span><span class="cke_label" id="cke_42_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(60, this); return false;" onfocus="return CKEDITOR.tools.callFunction(59, event);" onkeydown="return CKEDITOR.tools.callFunction(58, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_43_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_43"><span class="cke_icon"> </span><span class="cke_label" id="cke_43_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(63, this); return false;" onfocus="return CKEDITOR.tools.callFunction(62, event);" onkeydown="return CKEDITOR.tools.callFunction(61, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_44_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_44"><span class="cke_icon"> </span><span class="cke_label" id="cke_44_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(64)" class="cke_toolbox_collapser" tabindex="-1" id="cke_45" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_voice_label" id="cke_49">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_1_translations_attributes_0_body" aria-describedby="cke_49" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_1_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(36, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_1_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_1_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
106
+ //&lt;![CDATA[
107
+ (function() { if (CKEDITOR.instances['page_sections_attributes_1_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_1_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_1_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_1_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
108
+ //]]&gt;
109
+ </script>
110
+
111
+ </li>
112
+ <li id="page_sections_attributes_1_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][1][translations_attributes][0][locale]" id="page_sections_attributes_1_translations_attributes_0_locale" />
113
+
114
+ </li>
115
+ <li id="page_sections_attributes_2_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_2_translations_attributes_0_body" class=" label">Footer part</label><textarea rows="20" name="page[sections_attributes][2][translations_attributes][0][body]" id="page_sections_attributes_2_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_2_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_3 cke_editor_page_sections_attributes_2_translations_attributes_0_body" id="cke_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_2_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_2_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_55" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_55">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_56"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(72, this); return false;" onfocus="return CKEDITOR.tools.callFunction(71, event);" onkeydown="return CKEDITOR.tools.callFunction(70, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_57_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_57" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_57_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(75, this); return false;" onfocus="return CKEDITOR.tools.callFunction(74, event);" onkeydown="return CKEDITOR.tools.callFunction(73, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_58_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_58" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_58_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(78, this); return false;" onfocus="return CKEDITOR.tools.callFunction(77, event);" onkeydown="return CKEDITOR.tools.callFunction(76, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_59_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_59"><span class="cke_icon"> </span><span class="cke_label" id="cke_59_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_60"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(81, this); return false;" onfocus="return CKEDITOR.tools.callFunction(80, event);" onkeydown="return CKEDITOR.tools.callFunction(79, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_61_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_61"><span class="cke_icon"> </span><span class="cke_label" id="cke_61_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(84, this); return false;" onfocus="return CKEDITOR.tools.callFunction(83, event);" onkeydown="return CKEDITOR.tools.callFunction(82, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_62_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_62"><span class="cke_icon"> </span><span class="cke_label" id="cke_62_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(87, this); return false;" onfocus="return CKEDITOR.tools.callFunction(86, event);" onkeydown="return CKEDITOR.tools.callFunction(85, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_63_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_63"><span class="cke_icon"> </span><span class="cke_label" id="cke_63_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_64"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(90, this); return false;" onfocus="return CKEDITOR.tools.callFunction(89, event);" onkeydown="return CKEDITOR.tools.callFunction(88, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_65_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_65"><span class="cke_icon"> </span><span class="cke_label" id="cke_65_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(93, this); return false;" onfocus="return CKEDITOR.tools.callFunction(92, event);" onkeydown="return CKEDITOR.tools.callFunction(91, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_66_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_66"><span class="cke_icon"> </span><span class="cke_label" id="cke_66_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(96, this); return false;" onfocus="return CKEDITOR.tools.callFunction(95, event);" onkeydown="return CKEDITOR.tools.callFunction(94, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_67_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_67"><span class="cke_icon"> </span><span class="cke_label" id="cke_67_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(97)" class="cke_toolbox_collapser" tabindex="-1" id="cke_68" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_voice_label" id="cke_72">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_2_translations_attributes_0_body" aria-describedby="cke_72" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_2_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(69, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_2_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_2_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
116
+ //&lt;![CDATA[
117
+ (function() { if (CKEDITOR.instances['page_sections_attributes_2_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_2_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_2_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_2_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
118
+ //]]&gt;
119
+ </script>
120
+
121
+ </li>
122
+ <li id="page_sections_attributes_2_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][2][translations_attributes][0][locale]" id="page_sections_attributes_2_translations_attributes_0_locale" />
123
+
124
+ </li>
125
+ </ol>
126
+ </ol></fieldset>
127
+ </div>
128
+ </div>
129
+ <fieldset class="actions"><ol><li id="page_submit_action" class="action input_action "><input type="submit" value="Create Page" name="commit" /></li>
130
+ <li class="cancel">
131
+ <a href="/admin/pages">Cancel</a>
132
+ </li>
133
+ </ol></fieldset></form>
134
+ <script>
135
+ //&lt;![CDATA[
136
+ function is_link_url(){
137
+ if($('input#page_is_link_url').is(':checked')){
138
+ $('.link-url-hide, textarea').closest('li').hide();
139
+ $('li#page_link_url_input').show();
140
+ }else{
141
+ $('li#page_link_url_input').hide();
142
+ $('.link-url-hide, textarea').closest('li').show();
143
+ }
144
+ }
145
+
146
+ $(function() {
147
+ $(".language-tabs").tabs();
148
+ is_link_url();
149
+
150
+ $("input[id$='_title']").blur(function(){
151
+ slugId = '#' + $(this).attr('id').replace('_title', '_slug');
152
+ if ($(slugId).attr('value') == '') {
153
+ $(slugId).attr('value', slug($(this).attr('value')) )
154
+ }
155
+
156
+ browserTitleId = '#' + $(this).attr('id').replace('_title', '_browser_title');
157
+ if ($(browserTitleId).attr('value') == '') {
158
+ $(browserTitleId).attr('value', $(this).attr('value') )
159
+ }
160
+ });
161
+
162
+ $('input#page_is_link_url').change(function(){
163
+ is_link_url();
164
+ });
165
+
166
+ $('select#page_layout_name').change(function(){
167
+ $(this).closest('form').find('input[name="_change_layout"]').attr('value','1');
168
+ $(this).closest('form').submit();
169
+ });
170
+ });
171
+ //]]&gt;
172
+ </script>
173
+ </div>
174
+ </div>
175
+ </div>
176
+ <div id="footer" class="footer">
177
+ <p>Powered by <a href="http://www.activeadmin.info">Active Admin</a> 0.5.1</p>
178
+ </div>
179
+ </div>
180
+
181
+
182
+ </body></html>
@@ -0,0 +1,242 @@
1
+ <!DOCTYPE html>
2
+ <html xmlns="http://www.w3.org/1999/xhtml"><head>
3
+ <meta content="text/html; charset=utf-8" http-equiv="Content-type" />
4
+ <title>New Page | Dummy</title>
5
+ <link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/custom.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.css" /><link type="text/css" rel="stylesheet" media="screen" href="/assets/active_admin.css" /><link type="text/css" rel="stylesheet" media="print" href="/assets/active_admin/print.css" /> <script type="text/javascript" src="/assets/active_admin.js"></script>
6
+ <script type="text/javascript" src="/assets/active_admin/base.js"></script>
7
+ <script type="text/javascript" src="/assets/ckeditor/init.js"></script>
8
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/custom.js"></script>
9
+ <script type="text/javascript" src="/assets/activeadmin-selleo-cms/jquery-ui-timepicker-addon.js"></script>
10
+ <script type="text/javascript" src="/assets/active_admin.js"></script>
11
+ <script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/config.js?t=C6HH5UF"></script><link rel="stylesheet" type="text/css" href="http://127.0.0.1:33877/assets/ckeditor/skins/kama/editor.css?t=C6HH5UF" /><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/embed/plugin.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/attachment/plugin.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/attachment/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/embed/lang/en.js?t=C6HH5UF"></script><script type="text/javascript" src="http://127.0.0.1:33877/assets/ckeditor/plugins/styles/styles/default.js?t=C6HH5UF"></script></head>
12
+ <body class="new admin_pages active_admin logged_in admin_namespace" onpageshow='event.persisted &amp;&amp; (function(){var allInstances = CKEDITOR.instances, editor, doc;for ( var i in allInstances ){ editor = allInstances[ i ]; doc = editor.document; if ( doc ) { doc.$.designMode = "off"; doc.$.designMode = "on"; }}})();'>
13
+ <div id="wrapper">
14
+ <div id="header" class="header">
15
+ <h1 id="site_title" class="site_title">Dummy</h1>
16
+ <ul id="tabs" class="header-item">
17
+ <li id="dashboard"><a href="/admin/dashboard">Dashboard</a></li>
18
+ <li id="assets"><a href="/admin/assets">Assets</a></li>
19
+ <li id="locales"><a href="/admin/locales">Locales</a></li>
20
+ <li id="pages" class="current"><a href="/admin/pages">Pages</a></li>
21
+ <li id="sections"><a href="/admin/sections">Sections</a></li>
22
+ <li id="translations"><a href="/admin/translations">Translations</a></li>
23
+ </ul>
24
+ <p id="utility_nav" class="header-item">
25
+ <span class="current_user">admin@example.com</span>
26
+ <a data-method="get" href="/admin/logout">Logout</a> </p>
27
+ </div>
28
+ <div id="title_bar" class="title_bar">
29
+ <div id="titlebar_left">
30
+ <span class="breadcrumb">
31
+ <a href="/admin">Admin</a> <span class="breadcrumb_sep">/</span>
32
+ <a href="/admin/pages">Pages</a> <span class="breadcrumb_sep">/</span>
33
+ </span>
34
+ <h2 id="page_title">New Page</h2>
35
+ </div>
36
+ <div id="titlebar_right"></div>
37
+ </div>
38
+ <div class="without_sidebar" id="active_admin_content">
39
+ <div id="main_content_wrapper">
40
+ <div id="main_content"><form novalidate="novalidate" method="post" id="new_page" enctype="multipart/form-data" class="formtastic activeadmin_selleo_cms_page" action="/admin/pages" accept-charset="UTF-8"><div style="margin:0;padding:0;display:inline"><input type="hidden" value="✓" name="utf8" /></div>
41
+ <input type="hidden" name="_change_layout" />
42
+ <fieldset class="inputs"><legend><span>General options</span></legend><ol><li id="page_layout_name_input" class="select input required"><label for="page_layout_name" class=" label">Layout name<abbr title="required">*</abbr></label><select name="page[layout_name]" id="page_layout_name"><option value="application">application</option>
43
+ <option selected="selected" value="cms">cms</option></select>
44
+
45
+ <p class="inline-hints">The form will reload on change</p></li>
46
+ <li id="page_parent_id_input" class="select input optional"><label for="page_parent_id" class=" label">Parent</label><select name="page[parent_id]" id="page_parent_id"><option value=""></option>
47
+ </select>
48
+
49
+ </li>
50
+ <li id="page_is_published_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_published]" /><label for="page_is_published" class=""><input type="checkbox" value="1" name="page[is_published]" id="page_is_published" />Is published</label>
51
+
52
+ </li>
53
+ <li id="page_redirect_to_first_sub_page_input" class="boolean input optional"><input type="hidden" value="0" name="page[redirect_to_first_sub_page]" /><label for="page_redirect_to_first_sub_page" class=""><input type="checkbox" value="1" name="page[redirect_to_first_sub_page]" id="page_redirect_to_first_sub_page" />Redirect to first sub page</label>
54
+
55
+ </li>
56
+ <li id="page_is_link_url_input" class="boolean input optional"><input type="hidden" value="0" name="page[is_link_url]" /><label for="page_is_link_url" class=""><input type="checkbox" value="1" name="page[is_link_url]" id="page_is_link_url" />Is link url</label>
57
+
58
+ </li>
59
+ <li id="page_link_url_input" class="url input optional stringish" style="display: none;"><label for="page_link_url" class=" label">Link url</label><input type="url" name="page[link_url]" maxlength="255" id="page_link_url" />
60
+
61
+ <p class="inline-hints">Enter remote URL including the http part at the beginning</p></li>
62
+ </ol></fieldset><li id="page_sections_attributes_0_name_input" class="hidden input required"><input type="hidden" value="header" name="page[sections_attributes][0][name]" id="page_sections_attributes_0_name" />
63
+
64
+ </li>
65
+ <li id="page_sections_attributes_1_name_input" class="hidden input required"><input type="hidden" value="content" name="page[sections_attributes][1][name]" id="page_sections_attributes_1_name" />
66
+
67
+ </li>
68
+ <li id="page_sections_attributes_2_name_input" class="hidden input required"><input type="hidden" value="footer" name="page[sections_attributes][2][name]" id="page_sections_attributes_2_name" />
69
+
70
+ </li>
71
+ <div class="language-tabs ui-tabs ui-widget ui-widget-content ui-corner-all">
72
+ <ul class="language-selection ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all" role="tablist">
73
+ <li class="ui-state-default ui-corner-top ui-tabs-active ui-state-active" role="tab" tabindex="0" aria-controls="lang-en" aria-labelledby="ui-id-1" aria-selected="true"><a href="#lang-en" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-1">English</a></li>
74
+ <li class="ui-state-default ui-corner-top" role="tab" tabindex="-1" aria-controls="lang-pl" aria-labelledby="ui-id-2" aria-selected="false"><a href="#lang-pl" class="ui-tabs-anchor" role="presentation" tabindex="-1" id="ui-id-2">Polish</a></li>
75
+ </ul>
76
+ <div style="display: none;" id="lang-pl" aria-labelledby="ui-id-2" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-expanded="false" aria-hidden="true">
77
+ <fieldset class="inputs"><legend><span>Polish translation</span></legend><ol><ol>
78
+ <li id="page_translations_attributes_0_title_input" class="string input optional stringish"><label for="page_translations_attributes_0_title" class=" label">Title</label><input type="text" name="page[translations_attributes][0][title]" maxlength="255" id="page_translations_attributes_0_title" />
79
+
80
+ </li>
81
+ <li id="page_translations_attributes_0_slug_input" class="string input optional stringish"><label for="page_translations_attributes_0_slug" class=" label">Slug</label><input type="text" name="page[translations_attributes][0][slug]" maxlength="255" id="page_translations_attributes_0_slug" />
82
+
83
+ </li>
84
+ <li id="page_translations_attributes_0_browser_title_input" class="string input optional stringish"><label for="page_translations_attributes_0_browser_title" class=" label">Browser title</label><input type="text" name="page[translations_attributes][0][browser_title]" maxlength="255" id="page_translations_attributes_0_browser_title" class="link-url-hide" />
85
+
86
+ </li>
87
+ <li id="page_translations_attributes_0_meta_keywords_input" class="string input optional stringish"><label for="page_translations_attributes_0_meta_keywords" class=" label">Meta keywords</label><input type="text" name="page[translations_attributes][0][meta_keywords]" maxlength="255" id="page_translations_attributes_0_meta_keywords" class="link-url-hide" />
88
+
89
+ </li>
90
+ <li id="page_translations_attributes_0_meta_description_input" class="text input optional"><label for="page_translations_attributes_0_meta_description" class=" label">Meta description</label><textarea rows="3" name="page[translations_attributes][0][meta_description]" id="page_translations_attributes_0_meta_description" class="link-url-hide"></textarea>
91
+
92
+ </li>
93
+ <li id="page_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="pl" name="page[translations_attributes][0][locale]" id="page_translations_attributes_0_locale" />
94
+
95
+ </li>
96
+ <li id="page_sections_attributes_0_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_0_translations_attributes_0_body" class=" label">Header part</label><textarea rows="20" name="page[sections_attributes][0][translations_attributes][0][body]" id="page_sections_attributes_0_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_0_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_1 cke_editor_page_sections_attributes_0_translations_attributes_0_body" id="cke_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_0_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_0_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_11" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_11">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_12"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(6, this); return false;" onfocus="return CKEDITOR.tools.callFunction(5, event);" onkeydown="return CKEDITOR.tools.callFunction(4, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_13_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_13" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_13_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(9, this); return false;" onfocus="return CKEDITOR.tools.callFunction(8, event);" onkeydown="return CKEDITOR.tools.callFunction(7, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_14_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_14" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_14_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(12, this); return false;" onfocus="return CKEDITOR.tools.callFunction(11, event);" onkeydown="return CKEDITOR.tools.callFunction(10, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_15_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_15"><span class="cke_icon"> </span><span class="cke_label" id="cke_15_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_16"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(15, this); return false;" onfocus="return CKEDITOR.tools.callFunction(14, event);" onkeydown="return CKEDITOR.tools.callFunction(13, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_17_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_17"><span class="cke_icon"> </span><span class="cke_label" id="cke_17_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(18, this); return false;" onfocus="return CKEDITOR.tools.callFunction(17, event);" onkeydown="return CKEDITOR.tools.callFunction(16, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_18_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_18"><span class="cke_icon"> </span><span class="cke_label" id="cke_18_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(21, this); return false;" onfocus="return CKEDITOR.tools.callFunction(20, event);" onkeydown="return CKEDITOR.tools.callFunction(19, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_19_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_19"><span class="cke_icon"> </span><span class="cke_label" id="cke_19_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_20"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(24, this); return false;" onfocus="return CKEDITOR.tools.callFunction(23, event);" onkeydown="return CKEDITOR.tools.callFunction(22, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_21_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_21"><span class="cke_icon"> </span><span class="cke_label" id="cke_21_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(27, this); return false;" onfocus="return CKEDITOR.tools.callFunction(26, event);" onkeydown="return CKEDITOR.tools.callFunction(25, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_22_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_22"><span class="cke_icon"> </span><span class="cke_label" id="cke_22_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(30, this); return false;" onfocus="return CKEDITOR.tools.callFunction(29, event);" onkeydown="return CKEDITOR.tools.callFunction(28, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_23_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_23"><span class="cke_icon"> </span><span class="cke_label" id="cke_23_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(31)" class="cke_toolbox_collapser" tabindex="-1" id="cke_24" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_voice_label" id="cke_28">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_0_translations_attributes_0_body" aria-describedby="cke_28" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_0_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(3, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_0_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_0_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_0_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table><style>.cke_skin_kama{visibility:hidden;}</style></span></span></span><script type="text/javascript">
97
+ //&lt;![CDATA[
98
+ (function() { if (CKEDITOR.instances['page_sections_attributes_0_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_0_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_0_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_0_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
99
+ //]]&gt;
100
+ </script>
101
+
102
+ </li>
103
+ <li id="page_sections_attributes_0_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="pl" name="page[sections_attributes][0][translations_attributes][0][locale]" id="page_sections_attributes_0_translations_attributes_0_locale" />
104
+
105
+ </li>
106
+
107
+ <li id="page_sections_attributes_1_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_1_translations_attributes_0_body" class=" label">Content part</label><textarea rows="20" name="page[sections_attributes][1][translations_attributes][0][body]" id="page_sections_attributes_1_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_1_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_2 cke_editor_page_sections_attributes_1_translations_attributes_0_body" id="cke_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_1_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_1_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_35" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_35">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_36"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(39, this); return false;" onfocus="return CKEDITOR.tools.callFunction(38, event);" onkeydown="return CKEDITOR.tools.callFunction(37, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_37_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_37" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_37_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(42, this); return false;" onfocus="return CKEDITOR.tools.callFunction(41, event);" onkeydown="return CKEDITOR.tools.callFunction(40, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_38_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_38" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_38_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(45, this); return false;" onfocus="return CKEDITOR.tools.callFunction(44, event);" onkeydown="return CKEDITOR.tools.callFunction(43, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_39_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_39"><span class="cke_icon"> </span><span class="cke_label" id="cke_39_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_40"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(48, this); return false;" onfocus="return CKEDITOR.tools.callFunction(47, event);" onkeydown="return CKEDITOR.tools.callFunction(46, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_41_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_41"><span class="cke_icon"> </span><span class="cke_label" id="cke_41_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(51, this); return false;" onfocus="return CKEDITOR.tools.callFunction(50, event);" onkeydown="return CKEDITOR.tools.callFunction(49, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_42_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_42"><span class="cke_icon"> </span><span class="cke_label" id="cke_42_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(54, this); return false;" onfocus="return CKEDITOR.tools.callFunction(53, event);" onkeydown="return CKEDITOR.tools.callFunction(52, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_43_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_43"><span class="cke_icon"> </span><span class="cke_label" id="cke_43_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_44"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(57, this); return false;" onfocus="return CKEDITOR.tools.callFunction(56, event);" onkeydown="return CKEDITOR.tools.callFunction(55, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_45_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_45"><span class="cke_icon"> </span><span class="cke_label" id="cke_45_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(60, this); return false;" onfocus="return CKEDITOR.tools.callFunction(59, event);" onkeydown="return CKEDITOR.tools.callFunction(58, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_46_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_46"><span class="cke_icon"> </span><span class="cke_label" id="cke_46_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(63, this); return false;" onfocus="return CKEDITOR.tools.callFunction(62, event);" onkeydown="return CKEDITOR.tools.callFunction(61, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_47_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_47"><span class="cke_icon"> </span><span class="cke_label" id="cke_47_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(64)" class="cke_toolbox_collapser" tabindex="-1" id="cke_48" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_voice_label" id="cke_52">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_1_translations_attributes_0_body" aria-describedby="cke_52" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_1_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(36, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_1_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_1_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_1_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
108
+ //&lt;![CDATA[
109
+ (function() { if (CKEDITOR.instances['page_sections_attributes_1_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_1_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_1_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_1_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
110
+ //]]&gt;
111
+ </script>
112
+
113
+ </li>
114
+ <li id="page_sections_attributes_1_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="pl" name="page[sections_attributes][1][translations_attributes][0][locale]" id="page_sections_attributes_1_translations_attributes_0_locale" />
115
+
116
+ </li>
117
+
118
+ <li id="page_sections_attributes_2_translations_attributes_0_body_input" class="ckeditor input optional"><label for="page_sections_attributes_2_translations_attributes_0_body" class=" label">Footer part</label><textarea rows="20" name="page[sections_attributes][2][translations_attributes][0][body]" id="page_sections_attributes_2_translations_attributes_0_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_2_translations_attributes_0_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_3 cke_editor_page_sections_attributes_2_translations_attributes_0_body" id="cke_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_voice_label" id="cke_page_sections_attributes_2_translations_attributes_0_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_2_translations_attributes_0_body"><div onmousedown="return false;" aria-labelledby="cke_58" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_58">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_59"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(72, this); return false;" onfocus="return CKEDITOR.tools.callFunction(71, event);" onkeydown="return CKEDITOR.tools.callFunction(70, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_60_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_60" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_60_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(75, this); return false;" onfocus="return CKEDITOR.tools.callFunction(74, event);" onkeydown="return CKEDITOR.tools.callFunction(73, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_61_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_61" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_61_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(78, this); return false;" onfocus="return CKEDITOR.tools.callFunction(77, event);" onkeydown="return CKEDITOR.tools.callFunction(76, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_62_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_62"><span class="cke_icon"> </span><span class="cke_label" id="cke_62_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_63"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(81, this); return false;" onfocus="return CKEDITOR.tools.callFunction(80, event);" onkeydown="return CKEDITOR.tools.callFunction(79, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_64_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_64"><span class="cke_icon"> </span><span class="cke_label" id="cke_64_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(84, this); return false;" onfocus="return CKEDITOR.tools.callFunction(83, event);" onkeydown="return CKEDITOR.tools.callFunction(82, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_65_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_65"><span class="cke_icon"> </span><span class="cke_label" id="cke_65_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(87, this); return false;" onfocus="return CKEDITOR.tools.callFunction(86, event);" onkeydown="return CKEDITOR.tools.callFunction(85, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_66_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_66"><span class="cke_icon"> </span><span class="cke_label" id="cke_66_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_67"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(90, this); return false;" onfocus="return CKEDITOR.tools.callFunction(89, event);" onkeydown="return CKEDITOR.tools.callFunction(88, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_68_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_68"><span class="cke_icon"> </span><span class="cke_label" id="cke_68_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(93, this); return false;" onfocus="return CKEDITOR.tools.callFunction(92, event);" onkeydown="return CKEDITOR.tools.callFunction(91, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_69_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_69"><span class="cke_icon"> </span><span class="cke_label" id="cke_69_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(96, this); return false;" onfocus="return CKEDITOR.tools.callFunction(95, event);" onkeydown="return CKEDITOR.tools.callFunction(94, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_70_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_70"><span class="cke_icon"> </span><span class="cke_label" id="cke_70_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(97)" class="cke_toolbox_collapser" tabindex="-1" id="cke_71" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_voice_label" id="cke_75">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_2_translations_attributes_0_body" aria-describedby="cke_75" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_2_translations_attributes_0_body"><div onmousedown="CKEDITOR.tools.callFunction(69, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_2_translations_attributes_0_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_2_translations_attributes_0_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_2_translations_attributes_0_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
119
+ //&lt;![CDATA[
120
+ (function() { if (CKEDITOR.instances['page_sections_attributes_2_translations_attributes_0_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_2_translations_attributes_0_body']);}CKEDITOR.replace('page_sections_attributes_2_translations_attributes_0_body', {"language":"en","namespace":null,"id":"page_sections_attributes_2_translations_attributes_0_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
121
+ //]]&gt;
122
+ </script>
123
+
124
+ </li>
125
+ <li id="page_sections_attributes_2_translations_attributes_0_locale_input" class="hidden input required"><input type="hidden" value="pl" name="page[sections_attributes][2][translations_attributes][0][locale]" id="page_sections_attributes_2_translations_attributes_0_locale" />
126
+
127
+ </li>
128
+
129
+ </ol>
130
+ </ol></fieldset>
131
+ </div>
132
+ <div style="" id="lang-en" aria-labelledby="ui-id-1" class="ui-tabs-panel ui-widget-content ui-corner-bottom" role="tabpanel" aria-expanded="true" aria-hidden="false">
133
+ <fieldset class="inputs"><legend><span>English translation</span></legend><ol><ol>
134
+ <li id="page_translations_attributes_1_title_input" class="string input required stringish"><label for="page_translations_attributes_1_title" class=" label">Title<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][1][title]" maxlength="255" id="page_translations_attributes_1_title" />
135
+
136
+ </li>
137
+ <li id="page_translations_attributes_1_slug_input" class="string input required stringish"><label for="page_translations_attributes_1_slug" class=" label">Slug<abbr title="required">*</abbr></label><input type="text" name="page[translations_attributes][1][slug]" maxlength="255" id="page_translations_attributes_1_slug" value="sample-page" />
138
+
139
+ </li>
140
+ <li id="page_translations_attributes_1_browser_title_input" class="string input optional stringish"><label for="page_translations_attributes_1_browser_title" class=" label">Browser title</label><input type="text" name="page[translations_attributes][1][browser_title]" maxlength="255" id="page_translations_attributes_1_browser_title" class="link-url-hide" value="Sample page" />
141
+
142
+ </li>
143
+ <li id="page_translations_attributes_1_meta_keywords_input" class="string input optional stringish"><label for="page_translations_attributes_1_meta_keywords" class=" label">Meta keywords</label><input type="text" name="page[translations_attributes][1][meta_keywords]" maxlength="255" id="page_translations_attributes_1_meta_keywords" class="link-url-hide" />
144
+
145
+ </li>
146
+ <li id="page_translations_attributes_1_meta_description_input" class="text input optional"><label for="page_translations_attributes_1_meta_description" class=" label">Meta description</label><textarea rows="3" name="page[translations_attributes][1][meta_description]" id="page_translations_attributes_1_meta_description" class="link-url-hide"></textarea>
147
+
148
+ </li>
149
+ <li id="page_translations_attributes_1_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[translations_attributes][1][locale]" id="page_translations_attributes_1_locale" />
150
+
151
+ </li>
152
+
153
+ <li id="page_sections_attributes_0_translations_attributes_3_body_input" class="ckeditor input optional"><label for="page_sections_attributes_0_translations_attributes_3_body" class=" label">Header part</label><textarea rows="20" name="page[sections_attributes][0][translations_attributes][3][body]" id="page_sections_attributes_0_translations_attributes_3_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_0_translations_attributes_3_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_4 cke_editor_page_sections_attributes_0_translations_attributes_3_body" id="cke_page_sections_attributes_0_translations_attributes_3_body"><span class="cke_voice_label" id="cke_page_sections_attributes_0_translations_attributes_3_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_0_translations_attributes_3_body"><div onmousedown="return false;" aria-labelledby="cke_81" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_81">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_82"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(105, this); return false;" onfocus="return CKEDITOR.tools.callFunction(104, event);" onkeydown="return CKEDITOR.tools.callFunction(103, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_83_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_83" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_83_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(108, this); return false;" onfocus="return CKEDITOR.tools.callFunction(107, event);" onkeydown="return CKEDITOR.tools.callFunction(106, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_84_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_84" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_84_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(111, this); return false;" onfocus="return CKEDITOR.tools.callFunction(110, event);" onkeydown="return CKEDITOR.tools.callFunction(109, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_85_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_85"><span class="cke_icon"> </span><span class="cke_label" id="cke_85_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_86"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(114, this); return false;" onfocus="return CKEDITOR.tools.callFunction(113, event);" onkeydown="return CKEDITOR.tools.callFunction(112, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_87_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_87"><span class="cke_icon"> </span><span class="cke_label" id="cke_87_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(117, this); return false;" onfocus="return CKEDITOR.tools.callFunction(116, event);" onkeydown="return CKEDITOR.tools.callFunction(115, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_88_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_88"><span class="cke_icon"> </span><span class="cke_label" id="cke_88_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(120, this); return false;" onfocus="return CKEDITOR.tools.callFunction(119, event);" onkeydown="return CKEDITOR.tools.callFunction(118, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_89_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_89"><span class="cke_icon"> </span><span class="cke_label" id="cke_89_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_90"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(123, this); return false;" onfocus="return CKEDITOR.tools.callFunction(122, event);" onkeydown="return CKEDITOR.tools.callFunction(121, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_91_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_91"><span class="cke_icon"> </span><span class="cke_label" id="cke_91_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(126, this); return false;" onfocus="return CKEDITOR.tools.callFunction(125, event);" onkeydown="return CKEDITOR.tools.callFunction(124, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_92_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_92"><span class="cke_icon"> </span><span class="cke_label" id="cke_92_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(129, this); return false;" onfocus="return CKEDITOR.tools.callFunction(128, event);" onkeydown="return CKEDITOR.tools.callFunction(127, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_93_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_93"><span class="cke_icon"> </span><span class="cke_label" id="cke_93_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(130)" class="cke_toolbox_collapser" tabindex="-1" id="cke_94" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_0_translations_attributes_3_body"><span class="cke_voice_label" id="cke_98">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_0_translations_attributes_3_body" aria-describedby="cke_98" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_0_translations_attributes_3_body"><div onmousedown="CKEDITOR.tools.callFunction(102, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_0_translations_attributes_3_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_0_translations_attributes_3_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_0_translations_attributes_3_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
154
+ //&lt;![CDATA[
155
+ (function() { if (CKEDITOR.instances['page_sections_attributes_0_translations_attributes_3_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_0_translations_attributes_3_body']);}CKEDITOR.replace('page_sections_attributes_0_translations_attributes_3_body', {"language":"en","namespace":null,"id":"page_sections_attributes_0_translations_attributes_3_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
156
+ //]]&gt;
157
+ </script>
158
+
159
+ </li>
160
+ <li id="page_sections_attributes_0_translations_attributes_3_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][0][translations_attributes][3][locale]" id="page_sections_attributes_0_translations_attributes_3_locale" />
161
+
162
+ </li>
163
+
164
+ <li id="page_sections_attributes_1_translations_attributes_3_body_input" class="ckeditor input optional"><label for="page_sections_attributes_1_translations_attributes_3_body" class=" label">Content part</label><textarea rows="20" name="page[sections_attributes][1][translations_attributes][3][body]" id="page_sections_attributes_1_translations_attributes_3_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_1_translations_attributes_3_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_5 cke_editor_page_sections_attributes_1_translations_attributes_3_body" id="cke_page_sections_attributes_1_translations_attributes_3_body"><span class="cke_voice_label" id="cke_page_sections_attributes_1_translations_attributes_3_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_1_translations_attributes_3_body"><div onmousedown="return false;" aria-labelledby="cke_104" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_104">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_105"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(138, this); return false;" onfocus="return CKEDITOR.tools.callFunction(137, event);" onkeydown="return CKEDITOR.tools.callFunction(136, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_106_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_106" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_106_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(141, this); return false;" onfocus="return CKEDITOR.tools.callFunction(140, event);" onkeydown="return CKEDITOR.tools.callFunction(139, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_107_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_107" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_107_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(144, this); return false;" onfocus="return CKEDITOR.tools.callFunction(143, event);" onkeydown="return CKEDITOR.tools.callFunction(142, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_108_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_108"><span class="cke_icon"> </span><span class="cke_label" id="cke_108_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_109"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(147, this); return false;" onfocus="return CKEDITOR.tools.callFunction(146, event);" onkeydown="return CKEDITOR.tools.callFunction(145, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_110_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_110"><span class="cke_icon"> </span><span class="cke_label" id="cke_110_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(150, this); return false;" onfocus="return CKEDITOR.tools.callFunction(149, event);" onkeydown="return CKEDITOR.tools.callFunction(148, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_111_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_111"><span class="cke_icon"> </span><span class="cke_label" id="cke_111_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(153, this); return false;" onfocus="return CKEDITOR.tools.callFunction(152, event);" onkeydown="return CKEDITOR.tools.callFunction(151, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_112_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_112"><span class="cke_icon"> </span><span class="cke_label" id="cke_112_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_113"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(156, this); return false;" onfocus="return CKEDITOR.tools.callFunction(155, event);" onkeydown="return CKEDITOR.tools.callFunction(154, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_114_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_114"><span class="cke_icon"> </span><span class="cke_label" id="cke_114_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(159, this); return false;" onfocus="return CKEDITOR.tools.callFunction(158, event);" onkeydown="return CKEDITOR.tools.callFunction(157, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_115_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_115"><span class="cke_icon"> </span><span class="cke_label" id="cke_115_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(162, this); return false;" onfocus="return CKEDITOR.tools.callFunction(161, event);" onkeydown="return CKEDITOR.tools.callFunction(160, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_116_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_116"><span class="cke_icon"> </span><span class="cke_label" id="cke_116_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(163)" class="cke_toolbox_collapser" tabindex="-1" id="cke_117" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_1_translations_attributes_3_body"><span class="cke_voice_label" id="cke_121">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_1_translations_attributes_3_body" aria-describedby="cke_121" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_1_translations_attributes_3_body"><div onmousedown="CKEDITOR.tools.callFunction(135, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_1_translations_attributes_3_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_1_translations_attributes_3_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_1_translations_attributes_3_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
165
+ //&lt;![CDATA[
166
+ (function() { if (CKEDITOR.instances['page_sections_attributes_1_translations_attributes_3_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_1_translations_attributes_3_body']);}CKEDITOR.replace('page_sections_attributes_1_translations_attributes_3_body', {"language":"en","namespace":null,"id":"page_sections_attributes_1_translations_attributes_3_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
167
+ //]]&gt;
168
+ </script>
169
+
170
+ </li>
171
+ <li id="page_sections_attributes_1_translations_attributes_3_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][1][translations_attributes][3][locale]" id="page_sections_attributes_1_translations_attributes_3_locale" />
172
+
173
+ </li>
174
+
175
+ <li id="page_sections_attributes_2_translations_attributes_3_body_input" class="ckeditor input optional"><label for="page_sections_attributes_2_translations_attributes_3_body" class=" label">Footer part</label><textarea rows="20" name="page[sections_attributes][2][translations_attributes][3][body]" id="page_sections_attributes_2_translations_attributes_3_body" cols="40" style="visibility: hidden; display: none;"></textarea><span lang="en" style="width: 800px;" aria-labelledby="cke_page_sections_attributes_2_translations_attributes_3_body_arialbl" role="application" title=" " dir="ltr" class="cke_skin_kama cke_6 cke_editor_page_sections_attributes_2_translations_attributes_3_body" id="cke_page_sections_attributes_2_translations_attributes_3_body"><span class="cke_voice_label" id="cke_page_sections_attributes_2_translations_attributes_3_body_arialbl">Rich Text Editor</span><span role="presentation" class="cke_browser_gecko"><span role="presentation" class="cke_wrapper cke_ltr"><table cellspacing="0" cellpadding="0" border="0" role="presentation" class="cke_editor"><tbody><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_top" id="cke_top_page_sections_attributes_2_translations_attributes_3_body"><div onmousedown="return false;" aria-labelledby="cke_127" role="group" class="cke_toolbox"><span class="cke_voice_label" id="cke_127">Editor toolbars</span><span role="toolbar" class="cke_toolbar" id="cke_128"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(171, this); return false;" onfocus="return CKEDITOR.tools.callFunction(170, event);" onkeydown="return CKEDITOR.tools.callFunction(169, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_129_label" role="button" hidefocus="true" tabindex="-1" title="Cut" class="cke_button_cut cke_disabled" id="cke_129" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_129_label">Cut</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(174, this); return false;" onfocus="return CKEDITOR.tools.callFunction(173, event);" onkeydown="return CKEDITOR.tools.callFunction(172, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_130_label" role="button" hidefocus="true" tabindex="-1" title="Copy" class="cke_button_copy cke_disabled" id="cke_130" aria-disabled="true"><span class="cke_icon"> </span><span class="cke_label" id="cke_130_label">Copy</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(177, this); return false;" onfocus="return CKEDITOR.tools.callFunction(176, event);" onkeydown="return CKEDITOR.tools.callFunction(175, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_131_label" role="button" hidefocus="true" tabindex="-1" title="Paste" class="cke_off cke_button_paste" id="cke_131"><span class="cke_icon"> </span><span class="cke_label" id="cke_131_label">Paste</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_132"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(180, this); return false;" onfocus="return CKEDITOR.tools.callFunction(179, event);" onkeydown="return CKEDITOR.tools.callFunction(178, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_133_label" role="button" hidefocus="true" tabindex="-1" title="Bold" class="cke_off cke_button_bold" id="cke_133"><span class="cke_icon"> </span><span class="cke_label" id="cke_133_label">Bold</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(183, this); return false;" onfocus="return CKEDITOR.tools.callFunction(182, event);" onkeydown="return CKEDITOR.tools.callFunction(181, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_134_label" role="button" hidefocus="true" tabindex="-1" title="Italic" class="cke_off cke_button_italic" id="cke_134"><span class="cke_icon"> </span><span class="cke_label" id="cke_134_label">Italic</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(186, this); return false;" onfocus="return CKEDITOR.tools.callFunction(185, event);" onkeydown="return CKEDITOR.tools.callFunction(184, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_135_label" role="button" hidefocus="true" tabindex="-1" title="Underline" class="cke_off cke_button_underline" id="cke_135"><span class="cke_icon"> </span><span class="cke_label" id="cke_135_label">Underline</span></a></span></span><span class="cke_toolbar_end"></span></span><span role="toolbar" class="cke_toolbar" id="cke_136"><span class="cke_toolbar_start"></span><span role="presentation" class="cke_toolgroup"><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(189, this); return false;" onfocus="return CKEDITOR.tools.callFunction(188, event);" onkeydown="return CKEDITOR.tools.callFunction(187, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_137_label" role="button" hidefocus="true" tabindex="-1" title="Align Left" class="cke_off cke_button_justifyleft" id="cke_137"><span class="cke_icon"> </span><span class="cke_label" id="cke_137_label">Align Left</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(192, this); return false;" onfocus="return CKEDITOR.tools.callFunction(191, event);" onkeydown="return CKEDITOR.tools.callFunction(190, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_138_label" role="button" hidefocus="true" tabindex="-1" title="Center" class="cke_off cke_button_justifycenter" id="cke_138"><span class="cke_icon"> </span><span class="cke_label" id="cke_138_label">Center</span></a></span><span class="cke_button"><a onclick="CKEDITOR.tools.callFunction(195, this); return false;" onfocus="return CKEDITOR.tools.callFunction(194, event);" onkeydown="return CKEDITOR.tools.callFunction(193, event);" onblur="this.style.cssText = this.style.cssText;" aria-labelledby="cke_139_label" role="button" hidefocus="true" tabindex="-1" title="Align Right" class="cke_off cke_button_justifyright" id="cke_139"><span class="cke_icon"> </span><span class="cke_label" id="cke_139_label">Align Right</span></a></span></span><span class="cke_toolbar_end"></span></span></div><a onclick="CKEDITOR.tools.callFunction(196)" class="cke_toolbox_collapser" tabindex="-1" id="cke_140" title="Collapse Toolbar"><span>▲</span></a></td></tr><tr role="presentation"><td role="presentation" style="height:200px" class="cke_contents" id="cke_contents_page_sections_attributes_2_translations_attributes_3_body"><span class="cke_voice_label" id="cke_144">Press ALT 0 for help</span><iframe frameborder="0" allowtransparency="true" tabindex="0" src="" title="Rich text editor, page_sections_attributes_2_translations_attributes_3_body" aria-describedby="cke_144" style="width:100%;height:100%"></iframe></td></tr><tr role="presentation" style="-moz-user-select: none;"><td role="presentation" class="cke_bottom" id="cke_bottom_page_sections_attributes_2_translations_attributes_3_body"><div onmousedown="CKEDITOR.tools.callFunction(168, event)" title="Drag to resize" class="cke_resizer cke_resizer_ltr"></div><span class="cke_voice_label" id="cke_path_page_sections_attributes_2_translations_attributes_3_body_label">Elements path</span><div aria-labelledby="cke_path_page_sections_attributes_2_translations_attributes_3_body_label" role="group" class="cke_path" id="cke_path_page_sections_attributes_2_translations_attributes_3_body"><span class="cke_empty"> </span></div></td></tr></tbody></table></span></span></span><script type="text/javascript">
176
+ //&lt;![CDATA[
177
+ (function() { if (CKEDITOR.instances['page_sections_attributes_2_translations_attributes_3_body']) {CKEDITOR.remove(CKEDITOR.instances['page_sections_attributes_2_translations_attributes_3_body']);}CKEDITOR.replace('page_sections_attributes_2_translations_attributes_3_body', {"language":"en","namespace":null,"id":"page_sections_attributes_2_translations_attributes_3_body","required":false,"autofocus":false,"toolbar":"Minimal"}); }).call(this);
178
+ //]]&gt;
179
+ </script>
180
+
181
+ </li>
182
+ <li id="page_sections_attributes_2_translations_attributes_3_locale_input" class="hidden input required"><input type="hidden" value="en" name="page[sections_attributes][2][translations_attributes][3][locale]" id="page_sections_attributes_2_translations_attributes_3_locale" />
183
+
184
+ </li>
185
+ </ol>
186
+ </ol></fieldset>
187
+ </div>
188
+ </div>
189
+ <fieldset class="actions"><ol><li id="page_submit_action" class="action input_action "><input type="submit" value="Create Page" name="commit" /></li>
190
+ <li class="cancel">
191
+ <a href="/admin/pages">Cancel</a>
192
+ </li>
193
+ </ol></fieldset></form>
194
+ <script>
195
+ //&lt;![CDATA[
196
+ function is_link_url(){
197
+ if($('input#page_is_link_url').is(':checked')){
198
+ $('.link-url-hide, textarea').closest('li').hide();
199
+ $('li#page_link_url_input').show();
200
+ }else{
201
+ $('li#page_link_url_input').hide();
202
+ $('.link-url-hide, textarea').closest('li').show();
203
+ }
204
+ }
205
+
206
+ $(function() {
207
+ $(".language-tabs").tabs();
208
+ is_link_url();
209
+
210
+ $("input[id$='_title']").blur(function(){
211
+ slugId = '#' + $(this).attr('id').replace('_title', '_slug');
212
+ if ($(slugId).attr('value') == '') {
213
+ $(slugId).attr('value', slug($(this).attr('value')) )
214
+ }
215
+
216
+ browserTitleId = '#' + $(this).attr('id').replace('_title', '_browser_title');
217
+ if ($(browserTitleId).attr('value') == '') {
218
+ $(browserTitleId).attr('value', $(this).attr('value') )
219
+ }
220
+ });
221
+
222
+ $('input#page_is_link_url').change(function(){
223
+ is_link_url();
224
+ });
225
+
226
+ $('select#page_layout_name').change(function(){
227
+ $(this).closest('form').find('input[name="_change_layout"]').attr('value','1');
228
+ $(this).closest('form').submit();
229
+ });
230
+ });
231
+ //]]&gt;
232
+ </script>
233
+ </div>
234
+ </div>
235
+ </div>
236
+ <div id="footer" class="footer">
237
+ <p>Powered by <a href="http://www.activeadmin.info">Active Admin</a> 0.5.1</p>
238
+ </div>
239
+ </div>
240
+
241
+
242
+ </body></html>