mokio 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/images/ui-bg_glass_55_9fc569_1x400.png +915 -0
- data/app/assets/stylesheets/backend/plugins/forms/select2/{select2.css → select2.css.scss} +10 -10
- data/app/assets/stylesheets/backend/supr-theme/{jquery-ui-timepicker-addon.css → jquery-ui-timepicker-addon.css.scss} +1 -1
- data/app/assets/stylesheets/backend/supr-theme/{jquery.ui.datepicker.css → jquery.ui.datepicker.css.scss} +76 -76
- data/app/assets/stylesheets/backend/supr-theme/jquery.ui.supr.css.scss +1 -1
- data/app/assets/stylesheets/backend/supr-theme/jquery.ui.theme.css.scss +2 -2
- data/app/datatables/commons_datatable.rb +6 -5
- data/app/views/mokio/articles/_form.html.slim +14 -15
- data/app/views/mokio/backend/common/_form_content.html.haml +1 -1
- data/app/views/mokio/backend/contacts/_form.html.haml +1 -1
- data/app/views/mokio/backend/dashboard/show.html.haml +14 -14
- data/app/views/mokio/contacts/_form.html.slim +11 -12
- data/app/views/mokio/external_scripts/_form.html.slim +2 -3
- data/app/views/mokio/langs/_form.html.slim +3 -4
- data/app/views/mokio/menus/_form.html.haml +2 -1
- data/app/views/mokio/module_positions/_form.html.slim +2 -3
- data/app/views/mokio/mov_galleries/_form_inputs.html.slim +14 -15
- data/app/views/mokio/pic_galleries/_form_inputs.html.slim +14 -15
- data/app/views/mokio/static_modules/_form.html.slim +9 -10
- data/app/views/mokio/users/_form.html.slim +11 -12
- data/config/locales/en.yml +29 -26
- data/config/locales/pl.yml +27 -24
- data/lib/mokio/frontend_helpers/menu_helper.rb +1 -1
- data/lib/mokio/version.rb +1 -1
- metadata +6 -89
- data/app/views/mokio_haml/articles/_form.html.haml +0 -9
- data/app/views/mokio_haml/common/_form_content.html.haml +0 -36
- data/app/views/mokio_haml/common/_gmap.html.haml +0 -39
- data/app/views/mokio_haml/common/_main_pic.html.haml +0 -4
- data/app/views/mokio_haml/common/_meta.html.haml +0 -51
- data/app/views/mokio_haml/common/_notice.html.haml +0 -3
- data/app/views/mokio_haml/common/_obj.html.haml +0 -16
- data/app/views/mokio_haml/common/copy.html.haml +0 -5
- data/app/views/mokio_haml/common/edit.html.haml +0 -6
- data/app/views/mokio_haml/common/index.html.haml +0 -19
- data/app/views/mokio_haml/common/new.html.haml +0 -6
- data/app/views/mokio_haml/contacts/_form.html.haml +0 -42
- data/app/views/mokio_haml/contents/_content_info_widget.html.haml +0 -22
- data/app/views/mokio_haml/dashboard/_content.html.haml +0 -9
- data/app/views/mokio_haml/dashboard/show.html.haml +0 -35
- data/app/views/mokio_haml/dashboard/tbl_content.html.haml +0 -24
- data/app/views/mokio_haml/data_files/_file_upload.html.erb +0 -71
- data/app/views/mokio_haml/data_files/uploader.html.haml +0 -15
- data/app/views/mokio_haml/default_mailer/msg.html.haml +0 -6
- data/app/views/mokio_haml/errors/404.html.haml +0 -45
- data/app/views/mokio_haml/errors/unauthorized.html.haml +0 -11
- data/app/views/mokio_haml/layout/_user_widget.html.haml +0 -8
- data/app/views/mokio_haml/layout/header.html.haml +0 -14
- data/app/views/mokio_haml/layout/sidebar.html.haml +0 -59
- data/app/views/mokio_haml/menus/_form.html.haml +0 -75
- data/app/views/mokio_haml/menus/_menu.html.haml +0 -24
- data/app/views/mokio_haml/menus/index.html.haml +0 -53
- data/app/views/mokio_haml/menus/index.json.jbuilder +0 -4
- data/app/views/mokio_haml/menus/lang_changed.js.haml +0 -6
- data/app/views/mokio_haml/menus/sort.html.haml +0 -1
- data/app/views/mokio_haml/menus/update_menu_breadcrumps.js.haml +0 -1
- data/app/views/mokio_haml/mov_galleries/_form.html.haml +0 -17
- data/app/views/mokio_haml/mov_galleries/_form_inputs.html.haml +0 -8
- data/app/views/mokio_haml/photos/_gallery.html.haml +0 -25
- data/app/views/mokio_haml/photos/create.js.haml +0 -1
- data/app/views/mokio_haml/photos/crop_photo.js.haml +0 -10
- data/app/views/mokio_haml/photos/crop_thumb.js.haml +0 -11
- data/app/views/mokio_haml/photos/destroy.js.haml +0 -1
- data/app/views/mokio_haml/photos/from_external_link.html.haml +0 -19
- data/app/views/mokio_haml/photos/get_photo.js.haml +0 -1
- data/app/views/mokio_haml/photos/get_thumb.js.haml +0 -1
- data/app/views/mokio_haml/photos/photo.html.haml +0 -54
- data/app/views/mokio_haml/photos/remove_thumb.js.haml +0 -10
- data/app/views/mokio_haml/photos/rotate_photo.js.haml +0 -10
- data/app/views/mokio_haml/photos/rotate_thumb.js.haml +0 -11
- data/app/views/mokio_haml/photos/thumb.html.haml +0 -9
- data/app/views/mokio_haml/photos/update_thumb.js.haml +0 -11
- data/app/views/mokio_haml/photos/upload_external_links.js.haml +0 -4
- data/app/views/mokio_haml/pic_galleries/_form.html.haml +0 -16
- data/app/views/mokio_haml/pic_galleries/_form_inputs.html.haml +0 -9
- data/app/views/mokio_haml/site_helper/first_login.html.haml +0 -14
- data/app/views/mokio_haml/static_modules/_form.html.haml +0 -9
- data/app/views/mokio_haml/users/_form.html.haml +0 -11
- data/app/views/mokio_haml/users/edit_password.html.haml +0 -13
- data/app/views/mokio_haml/youtubes/_edit.html.haml +0 -49
- data/app/views/mokio_haml/youtubes/_gallery.html.haml +0 -24
- data/app/views/mokio_haml/youtubes/_new.html.haml +0 -4
- data/app/views/mokio_haml/youtubes/_preview_movie.html.haml +0 -1
- data/app/views/mokio_haml/youtubes/_search_yt.html.haml +0 -8
- data/app/views/mokio_haml/youtubes/_search_yt_body.html.haml +0 -11
- data/app/views/mokio_haml/youtubes/find.js.haml +0 -1
- data/app/views/mokio_haml/youtubes/preview.html.haml +0 -36
- data/app/views/mokio_haml/youtubes/preview_movie.js.haml +0 -5
- data/app/views/mokio_haml/youtubes/thumb.html.haml +0 -14
- data/app/views/mokio_haml/youtubes/uploader.html.haml +0 -10
- data/app/views/mokio_haml/youtubes/youtube.html.haml +0 -12
- data/spec/dummy/config/database.yml +0 -37
- data/spec/dummy/db/migrate/20140819120200_add_mokio_to_application.mokio.rb +0 -230
- data/spec/dummy/db/migrate/20140829082940_create_mokio_external_scripts.mokio.rb +0 -11
- data/spec/dummy/db/migrate/20141016113202_alter_external_scripts.mokio.rb +0 -14
- data/spec/dummy/db/schema.rb +0 -323
- data/spec/dummy/log/development.log +0 -119825
- data/spec/dummy/log/development_mokio.log +0 -14177
- data/spec/dummy/log/production.log +0 -8400
- data/spec/dummy/log/production_mokio.log +0 -374
@@ -1,45 +0,0 @@
|
|
1
|
-
!!!
|
2
|
-
%html{xmlns: "http://www.w3.org/1999/xhtml"}
|
3
|
-
%head
|
4
|
-
%meta{content: "text/html; charset=utf-8", "http-equiv" => "Content-Type"}/
|
5
|
-
%title Strony nie znaleziono
|
6
|
-
/ Mobile Specific Metas
|
7
|
-
%meta{content: "width=device-width, initial-scale=1.0", name: "viewport"}/
|
8
|
-
/ Le styles
|
9
|
-
= stylesheet_link_tag 'backend/errors'
|
10
|
-
|
11
|
-
/ Le HTML5 shim, for IE6-8 support of HTML5 elements
|
12
|
-
/[if lt IE 9]
|
13
|
-
= javascript_include_tag 'html5'
|
14
|
-
|
15
|
-
%body.errorPage
|
16
|
-
.container-fluid
|
17
|
-
.errorContainer
|
18
|
-
.page-header
|
19
|
-
%h1.center
|
20
|
-
404
|
21
|
-
%small error
|
22
|
-
%h2.center The page cannot be found.
|
23
|
-
.center
|
24
|
-
%a.btn{href: "javascript: history.go(-1)", style: "margin-right:10px;"}
|
25
|
-
%span.icon16.icomoon-icon-arrow-left-10>
|
26
|
-
Go back
|
27
|
-
%a.btn{href: "#{backend_root_path}"}
|
28
|
-
%span.icon16.icomoon-icon-screen>
|
29
|
-
Dashboard
|
30
|
-
/ End .container-fluid
|
31
|
-
/
|
32
|
-
Le javascript
|
33
|
-
\==================================================
|
34
|
-
= javascript_include_tag 'backend/errors'
|
35
|
-
:javascript
|
36
|
-
// document ready function
|
37
|
-
$(document).ready(function() {
|
38
|
-
//------------- Some fancy stuff in error pages -------------//
|
39
|
-
$('.errorContainer').hide();
|
40
|
-
$('.errorContainer').fadeIn(1000).animate({
|
41
|
-
'top': "50%", 'margin-top': +($('.errorContainer').height()/-2-30)
|
42
|
-
}, {duration: 750, queue: false}, function() {
|
43
|
-
// Animation complete.
|
44
|
-
});
|
45
|
-
});
|
@@ -1,11 +0,0 @@
|
|
1
|
-
.errorPage
|
2
|
-
.container-fluid
|
3
|
-
.errorContainer#unauth
|
4
|
-
.page-header
|
5
|
-
%h3.center
|
6
|
-
You are not authorized to perform this action
|
7
|
-
|
8
|
-
.center
|
9
|
-
%a.btn{href: "javascript: history.go(-1)", style: "margin-right:10px;"}
|
10
|
-
%span.icon16.icomoon-icon-arrow-left-10>
|
11
|
-
Go back
|
@@ -1,14 +0,0 @@
|
|
1
|
-
.navbar
|
2
|
-
.navbar-inner
|
3
|
-
.container-fluid
|
4
|
-
%a.brand#logo{ href: "/", title: "MOKIO - CMS Open Source", target: "_blank"}
|
5
|
-
%img{ src: asset_path("backend/mokio-logo.svg"), alt:"Logo MOKIO"}
|
6
|
-
|
7
|
-
|
8
|
-
.nav-no-collapse
|
9
|
-
%ul.nav
|
10
|
-
%li
|
11
|
-
%a{href: ( defined?(root_path) ? root_path : "#" ), target: "_blank"}
|
12
|
-
%span.icon16.icomoon-icon-home
|
13
|
-
= bt("site_preview")
|
14
|
-
= render 'mokio/layout/user_widget'
|
@@ -1,59 +0,0 @@
|
|
1
|
-
.shortcuts
|
2
|
-
%ul
|
3
|
-
%li.nav-heading
|
4
|
-
.sidenav
|
5
|
-
.sidebar-widget{style: "margin: -1px 0 0 0;"}
|
6
|
-
%h5.title{style: "margin-bottom:0"}= bt("sidebar_title", "backend.sidebar")
|
7
|
-
.mainnav
|
8
|
-
%ul#sidebar-ul
|
9
|
-
%li.dashboard_nav
|
10
|
-
%a{href: root_path}
|
11
|
-
%span.icon16.icomoon-icon-screen-2
|
12
|
-
= bt("dashboard")
|
13
|
-
- if can? :manage, Mokio::Content
|
14
|
-
%li.contentmanagment_nav
|
15
|
-
%a{:href => contents_path}
|
16
|
-
%span.icon16.icomoon-icon-stats-up>
|
17
|
-
= bt("content_management", "backend.sidebar")
|
18
|
-
- if can? :create, Mokio::Content
|
19
|
-
%li.content_nav
|
20
|
-
%a{href: "#"}
|
21
|
-
%span.icon16.icomoon-icon-list-view-2>
|
22
|
-
= bt("add_content", "backend.sidebar")
|
23
|
-
%ul.sub
|
24
|
-
%li
|
25
|
-
%a{:href => new_article_path}
|
26
|
-
%span.icon16.icomoon-icon-pencil>
|
27
|
-
= bt("article", "backend.sidebar")
|
28
|
-
%li
|
29
|
-
%a{href: new_pic_gallery_path}
|
30
|
-
%span.icon16.icomoon-icon-picture>
|
31
|
-
= bt("pic_galery", "backend.sidebar")
|
32
|
-
%li
|
33
|
-
%a{href: new_mov_gallery_path}
|
34
|
-
%span.icon16.icomoon-icon-movie>
|
35
|
-
= bt("mov_galery", "backend.sidebar")
|
36
|
-
%li
|
37
|
-
%a{href: new_contact_path}
|
38
|
-
%span.icon16.icomoon-icon-mail-3>
|
39
|
-
= bt("contact", "backend.sidebar")
|
40
|
-
- if can? :manage, Mokio::Menu
|
41
|
-
%li.menu_nav
|
42
|
-
%a{href: menus_path}
|
43
|
-
%span.icon16.icomoon-icon-menu-2>
|
44
|
-
= bt("menu", "backend.sidebar")
|
45
|
-
- if can? :manage, Mokio::StaticModule
|
46
|
-
%li.static_module_nav
|
47
|
-
%a{href: static_modules_path}
|
48
|
-
%span.icon16.icomoon-icon-cube>
|
49
|
-
= bt("modules", "backend.sidebar")
|
50
|
-
|
51
|
-
- if can? :manage, Mokio::User
|
52
|
-
%li.user_nav
|
53
|
-
%a{href: users_path}
|
54
|
-
%span.icon16.entypo-icon-users
|
55
|
-
= bt("users", "backend.sidebar")
|
56
|
-
|
57
|
-
- if @obj_class == Mokio::Content && params[:action] == "index"
|
58
|
-
= render :partial => "mokio/contents/content_info_widget"
|
59
|
-
|
@@ -1,75 +0,0 @@
|
|
1
|
-
= f.input :lang_id, collection: Mokio::Lang.all.collect{|lang| [bt(lang.name), lang.id]}, include_blank: false, disabled: !@menu.display_editable_field?('lang_id')
|
2
|
-
|
3
|
-
-# = f.input :lang_id, :as => :hidden, :input_html => { :value => (@menu.lang_id.nil? ? 1 : @menu.lang_id)}, disabled: !@menu.display_editable_field?('lang_id')
|
4
|
-
= f.input :active, :wrapper => :active_checkbox, disabled: !@menu.display_editable_field?('active')
|
5
|
-
= f.input :visible, :wrapper => :active_checkbox, disabled: !@menu.display_editable_field?('visible')
|
6
|
-
= f.input :name, disabled: !@menu.display_editable_field?('name')
|
7
|
-
.row-fluid
|
8
|
-
%label.form-label.span2
|
9
|
-
= btc('type', Mokio::Menu)
|
10
|
-
.span10
|
11
|
-
= select_tag "menu_type", options_for_select([[btc("content",'Menu'), 'content'],[btc("external_link",'Menu'), 'external_link']], @menu.contents.empty? && !@menu.external_link.blank? ? "external_link" : "content")
|
12
|
-
|
13
|
-
.row-fluid#content_box{:style => "display: #{@menu.contents.empty? && !@menu.external_link.blank? ? 'none' : 'block'};"}
|
14
|
-
= dual_select_box(@menu.available_contents, 'id', 'title', @menu.contents, 'id', 'title', btc('content', 'Menu'), '','menu[content_ids][]', true, false, false, @menu.display_editable_field?('contents'))
|
15
|
-
#url_box{:style => "display: #{@menu.contents.empty? && !@menu.external_link.blank? ? 'block' : 'none'};"}
|
16
|
-
= f.input :external_link, label: btc("external_link",'Menu'), disabled: !@menu.display_editable_field?('external_link')
|
17
|
-
= f.input :follow, :as => :select, :collection => [[bt("follow",'Menu'), "true"], [bt("nofollow",'Menu'), "false"]], :include_blank => false
|
18
|
-
= f.input :parent_id, :collection => @menu.parent_tree.collect{|m| [m.name, m.id]}, include_blank: false, disabled: !@menu.display_editable_field?('parent_id')
|
19
|
-
|
20
|
-
.row-fluid
|
21
|
-
%label.form-label.span2
|
22
|
-
= btc('path', Mokio::Menu)
|
23
|
-
.span10
|
24
|
-
#menu_breadcrumps
|
25
|
-
= tree_menu_breadcrumps(@menu.parent)
|
26
|
-
|
27
|
-
= f.input :target, :collection => [[bt("current_window_inside",Mokio::Menu), nil], [bt("new_window",Mokio::Menu), "_blank"], [bt("current_window_whole",Mokio::Menu), "_whole"]], include_blank: false, disabled: !@menu.display_editable_field?('target')
|
28
|
-
|
29
|
-
.row-fluid
|
30
|
-
%label.form-label.span2 Moduły statyczne
|
31
|
-
.span10
|
32
|
-
.tabs_wrap
|
33
|
-
%ul.nav.nav-tabs.pattern{:id => "tabs_modules"}
|
34
|
-
- Mokio::ModulePosition.all.each do |mp|
|
35
|
-
%li
|
36
|
-
%a{:href => "#" + mp.name.parameterize, :"data-toggle" => "tab"}
|
37
|
-
= mp.name
|
38
|
-
|
39
|
-
.tab-content
|
40
|
-
- Mokio::ModulePosition.all.each do |mp|
|
41
|
-
.tab-pane.fade{:id => mp.name.parameterize}
|
42
|
-
= dual_select_box(@menu.available_modules_by_pos[mp.id].nil? ? [] : @menu.available_modules_by_pos[mp.id], 'id', 'module_title', @menu.selected_modules_by_pos[mp.id].nil? ? [] : @menu.selected_modules_by_pos[mp.id], 'id', 'module_title', mp.name, '_' + mp.id.to_s, 'menu[available_module_ids][' + mp.id.to_s + '][]', false, true, true, @menu.display_editable_field?('available_modules'))
|
43
|
-
|
44
|
-
- content_for :js do
|
45
|
-
= javascript_include_tag "backend/menu/menu_dual_select"
|
46
|
-
|
47
|
-
:javascript
|
48
|
-
$(document).ready(function() {
|
49
|
-
$('#menu_parent_id').change(function() {
|
50
|
-
$.ajax({
|
51
|
-
url: "#{Mokio::Engine.routes.url_helpers.root_path}menus/" + $('#menu_parent_id').val() + "/update_menu_breadcrumps",
|
52
|
-
dataType: "script"
|
53
|
-
});
|
54
|
-
});
|
55
|
-
|
56
|
-
$('#menu_lang_id').change(function() {
|
57
|
-
var content_confirm = confirm('#{bt('content_remove_confirm', Mokio::Menu)}');
|
58
|
-
var modules_confirm = confirm('#{bt('modules_remove_confirm', Mokio::Menu)}');
|
59
|
-
$.ajax({
|
60
|
-
url: "#{Mokio::Engine.routes.url_helpers.root_path}menus/lang_changed?lang_id=" + $('#menu_lang_id').val() + '&content_confirm='+ content_confirm + '&modules_confirm=' + modules_confirm,
|
61
|
-
dataType: "script"
|
62
|
-
});
|
63
|
-
});
|
64
|
-
dualSelectInit('', true);
|
65
|
-
#{@dual_select_str}
|
66
|
-
|
67
|
-
//tabs
|
68
|
-
$('#tabs_modules li').first().addClass('active');
|
69
|
-
$('.tabs_wrap .tab-pane').first().addClass('in active');
|
70
|
-
$('#menu_type').change(function() {
|
71
|
-
$('#content_box').toggle();
|
72
|
-
$('#url_box').toggle();
|
73
|
-
});
|
74
|
-
});
|
75
|
-
|
@@ -1,24 +0,0 @@
|
|
1
|
-
%div{ :class => "menu_div active_#{menu.active} visible_#{menu.visible} fake_#{menu.fake}"}
|
2
|
-
- if menu.fake
|
3
|
-
%span.menu_name
|
4
|
-
= menu.name
|
5
|
-
- else
|
6
|
-
- if menu.invisible_content
|
7
|
-
%span.warning
|
8
|
-
!
|
9
|
-
- if menu.editable && menu.contents.empty? && menu.external_link.blank?
|
10
|
-
%span.blank
|
11
|
-
!
|
12
|
-
%span.menu_name
|
13
|
-
= link_to menu.name, edit_url(menu.class, menu)
|
14
|
-
%span.menu_details
|
15
|
-
%span.content_type
|
16
|
-
= menu.content_type
|
17
|
-
%span.updated
|
18
|
-
= menu.updated_at_view
|
19
|
-
%span.edit_buttons
|
20
|
-
= table_controls_edit_btn(edit_url(menu.class, menu))
|
21
|
-
- if menu.deletable
|
22
|
-
= table_controls_delete_btn(obj_url(menu.class, menu), btc('confirm', Mokio::Menu))
|
23
|
-
- else
|
24
|
-
%span.blank-delete
|
@@ -1,53 +0,0 @@
|
|
1
|
-
-#= stylesheet_link_tag "menu", :media => "all"
|
2
|
-
= render :partial => "mokio/common/notice"
|
3
|
-
|
4
|
-
.box.gradient
|
5
|
-
.title
|
6
|
-
%h4
|
7
|
-
%span= bt("index_title", Mokio::Menu)
|
8
|
-
= btn_new( bt("index_add_new", Mokio::Menu), new_url(Mokio::Menu) )
|
9
|
-
|
10
|
-
- if @menus.present?
|
11
|
-
%ol#menusList.sortable
|
12
|
-
- @menus.each do |menu, menu_children|
|
13
|
-
%li{:id => "#menu_#{menu.id}", :class => "not-sortable"}
|
14
|
-
= render :partial => "menu", :locals => {menu: menu}
|
15
|
-
%ol
|
16
|
-
- menu_children.each do |submenu, submenu_children|
|
17
|
-
%li{:class => "not-sortable"}
|
18
|
-
= render :partial => "menu", :locals => {menu: submenu}
|
19
|
-
%ol= tree_menu(submenu_children, true)
|
20
|
-
- else
|
21
|
-
%h3 There are currently no menus.
|
22
|
-
|
23
|
-
#legend.well.span4
|
24
|
-
%label= btc("legend", Mokio::Menu)
|
25
|
-
.active_true
|
26
|
-
= btc('menu_active_legend', Mokio::Menu)
|
27
|
-
.active_false
|
28
|
-
= btc('menu_non_active_legend', Mokio::Menu)
|
29
|
-
.visible_true
|
30
|
-
.menu_name
|
31
|
-
= btc('menu_visible_legend', Mokio::Menu)
|
32
|
-
.visible_false
|
33
|
-
.menu_name
|
34
|
-
= btc('menu_non_visible_legend', Mokio::Menu)
|
35
|
-
|
36
|
-
- content_for :js do
|
37
|
-
= javascript_include_tag "backend/menu/jquery.ui.nestedSortable", :async => true
|
38
|
-
|
39
|
-
:javascript
|
40
|
-
setTimeout(function(){
|
41
|
-
$('.sortable').nestedSortable({
|
42
|
-
handle: 'div',
|
43
|
-
items: 'li.sortable_true',
|
44
|
-
toleranceElement: '> div',
|
45
|
-
protectRoot: true,
|
46
|
-
update: function(event, ui) {
|
47
|
-
$.post("#{Mokio::Engine.routes.url_helpers.root_path}menus/sort", $(this).nestedSortable('serialize'));
|
48
|
-
}
|
49
|
-
});
|
50
|
-
},300);
|
51
|
-
//$("ol.sortable").bind("sortstop", function (event, ui) {
|
52
|
-
// return ui.item.hasClass("sortable_true");
|
53
|
-
// });
|
@@ -1,6 +0,0 @@
|
|
1
|
-
$('#menu_parent_id').html("#{j (options_from_collection_for_select(@menu.parent_tree, 'id', 'name'))}");
|
2
|
-
$('#menu_breadcrumps').html("");
|
3
|
-
if (#{@content_confirm}) {remove_except_all_lang('')}
|
4
|
-
if (#{@modules_confirm}) {$('[id^=fake-select_]').each(function(i, val) {remove_except_all_lang($(val).attr('id').substring(11));})}
|
5
|
-
$('#box1View').html("#{j (options_for_select(@menu.available_contents.collect{|elt| [elt.title, elt.id,{class: 'displayed_' + elt.displayed?.to_s}]}))}");
|
6
|
-
#{replace_available_modules}
|
@@ -1 +0,0 @@
|
|
1
|
-
$('#notice').html('#{remder :partial => }')
|
@@ -1 +0,0 @@
|
|
1
|
-
$('#menu_breadcrumps').html('#{tree_menu_breadcrumps(@menu)}')
|
@@ -1,17 +0,0 @@
|
|
1
|
-
- if params[:action] == "edit"
|
2
|
-
%h2.center.gallerytitle= "#{bt('gallery')}: #{obj.title}"
|
3
|
-
%span.btn.btn-info.editcontentbtn
|
4
|
-
%span.icomoon-icon-pencil.white
|
5
|
-
= bt('edit_gallery_content', @obj_class)
|
6
|
-
.editcontent
|
7
|
-
%hr
|
8
|
-
-# = f.input :content_id
|
9
|
-
= render :partial => "mokio/mov_galleries/form_inputs", locals: {f:f}
|
10
|
-
.form-actions
|
11
|
-
= btn_submit bt("save")
|
12
|
-
= btn_submit bt("save_and_create_new"), true
|
13
|
-
= btn_cancel "/#{obj.class.to_s.tableize}"
|
14
|
-
%hr
|
15
|
-
|
16
|
-
- else
|
17
|
-
= render :partial => "mokio/mov_galleries/form_inputs", locals: {f:f}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
= render :partial => "mokio/common/main_pic", locals: {f:f}
|
2
|
-
= f.input :lang_id, collection: Mokio::Lang.all.collect{|lang| [bt(lang.name), lang.menu_id]}, include_blank: bt('all'), disabled: !obj.display_editable_field?('lang_id')
|
3
|
-
= f.input :active, :wrapper => :active_checkbox, disabled: !obj.display_editable_field?('active')
|
4
|
-
= f.input :title, disabled: !obj.display_editable_field?('title')
|
5
|
-
= f.input :intro, label: btc("intro", 'mov_gallery'), :wrapper => :ckeditor, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'Mini', :height => 150} }, disabled: !obj.display_editable_field?('intro')
|
6
|
-
= f.input :content, :wrapper => :ckeditor, :as => :ckeditor, :input_html => { :ckeditor => {:toolbar => 'Medium', :height => 300} }, disabled: !obj.display_editable_field?('content')
|
7
|
-
= f.input :display_from, :wrapper => :date, :as => :string, :input_html => { :class => "mask-date display_from", :value => (localize(f.object.display_from) if f.object.display_from) }, disabled: !obj.display_editable_field?('display_from')
|
8
|
-
= f.input :display_to, :wrapper => :date, :as => :string, :input_html => { :class => "mask-date display_to", :value => (localize(f.object.display_to) if f.object.display_to) }, disabled: !obj.display_editable_field?('display_to')
|
@@ -1,25 +0,0 @@
|
|
1
|
-
.page-header
|
2
|
-
%h4
|
3
|
-
= bt("gallery")
|
4
|
-
%small
|
5
|
-
= obj.title
|
6
|
-
%ul#itemContainer.galleryView.sortable
|
7
|
-
- obj.data_files.order_default.each do |photo|
|
8
|
-
= render :template => 'mokio/photos/photo', :locals => {photo: photo}
|
9
|
-
|
10
|
-
#edit-photo-form.modal.fade{:role =>"dialog", "aria-hidden" => "true", :style => "display:none;", "aria-labelledby" => "EditPhotoModalLabel"}
|
11
|
-
.modal-dialog
|
12
|
-
.modal-content
|
13
|
-
.modal-header
|
14
|
-
%h3.modal-title{:id => "EditPhotoModalLabel"}= "edit"
|
15
|
-
|
16
|
-
#edit-photo-form-content.modal-body
|
17
|
-
#loader
|
18
|
-
|
19
|
-
.modal-footer
|
20
|
-
%button.btn.btn-default.close-edit-photo-form{ :type => "button", "data-dismiss" => "modal"}= bt("close")
|
21
|
-
|
22
|
-
- content_for :js do
|
23
|
-
= javascript_include_tag 'backend/photo_gallery/functions', :async => true
|
24
|
-
= javascript_include_tag 'backend/photo_gallery/photoEditForm', :async => true
|
25
|
-
= javascript_include_tag 'backend/photo_gallery/photo_gallery', :async => true
|
@@ -1 +0,0 @@
|
|
1
|
-
$("#itemContainer").append("#{j render :template => 'mokio/photos/photo', :locals => {photo: @photo} }");
|
@@ -1,10 +0,0 @@
|
|
1
|
-
$(".photo_holder").html('<img id="photo_edited" src="#{@edited_photo.data_file.url(:normal)}"></img>');
|
2
|
-
previous = $("#itemContainer").find("li##{@edited_photo.id}").prev();
|
3
|
-
$("#itemContainer").find("li##{@edited_photo.id}").remove();
|
4
|
-
$("#itemContainer").find("#modaledit_#{@edited_photo.id}").remove();
|
5
|
-
if (previous.attr("id")){
|
6
|
-
previous.after("#{j render :template => 'mokio/photos/photo', :locals => {photo: @edited_photo} }");
|
7
|
-
}
|
8
|
-
else {
|
9
|
-
$("#itemContainer").prepend("#{j render :template => 'mokio/photos/photo', :locals => {photo: @edited_photo} }");
|
10
|
-
}
|
@@ -1,11 +0,0 @@
|
|
1
|
-
$(".photo_holder").html('<img id="photo_edited" src="#{@edited_photo.thumb.url}"></img>');
|
2
|
-
previous = $("#itemContainer").find("li##{@edited_photo.id}").prev();
|
3
|
-
$("#itemContainer").find("li##{@edited_photo.id}").remove();
|
4
|
-
$("#itemContainer").find("#modaledit_#{@edited_photo.id}").remove();
|
5
|
-
if (previous.attr("id")){
|
6
|
-
previous.after("#{j render :template => 'mokio/photos/photo', :locals => {photo: @edited_photo} }");
|
7
|
-
}
|
8
|
-
else {
|
9
|
-
$("#itemContainer").prepend("#{j render :template => 'mokio/photos/photo', :locals => {photo: @edited_photo} }");
|
10
|
-
}
|
11
|
-
|
@@ -1 +0,0 @@
|
|
1
|
-
$("#itemContainer").find("#modaledit_#{@id}").remove();
|
@@ -1,19 +0,0 @@
|
|
1
|
-
%span.btn.btn-info.add_external_link{"data-toggle" => "modal", "data-target" => "#modal_external_link"}
|
2
|
-
%span.icomoon-icon-plus.white
|
3
|
-
= bt('add_external_link', @obj_class)
|
4
|
-
|
5
|
-
#modal_external_link.modal.fade{:role =>"dialog", "aria-labelledby" => "myModalLabel2", "aria-hidden" => "true", :style => "display: none;"}
|
6
|
-
.modal-dialog
|
7
|
-
.modal-content
|
8
|
-
.modal-header
|
9
|
-
%h3#myModalLabel2.modal-title
|
10
|
-
= bt("file_upload")
|
11
|
-
%small= bt("links_upload_info", @obj_class)
|
12
|
-
= simple_form_for obj.default_data_file.new, :html => {:multipart => true}, :remote => true, :url => { :action => "upload_external_links", :controller => "#{obj.default_data_file.to_s.tableize}" } do |f|
|
13
|
-
.modal-body
|
14
|
-
= f.input :content_id, :as => :hidden, :input_html => { :value => obj.id }
|
15
|
-
= f.input :remote_data_file_url, :as => :text
|
16
|
-
|
17
|
-
.modal-footer
|
18
|
-
= f.submit bt("add"), :class => "btn btn-primary upload_external_links_btn", remote: true, data: { disable_with: bt("wait") }
|
19
|
-
%button.btn.btn-primary{ :type => "button", "data-dismiss" => "modal"}= bt("close")
|
@@ -1 +0,0 @@
|
|
1
|
-
$(".photo_holder").html('<img id="photo_edited" src="#{@edited_photo.data_file.url(:normal)}"></img>');
|
@@ -1 +0,0 @@
|
|
1
|
-
$(".photo_holder").html("#{j render :template => 'mokio/photos/thumb', :locals => {photo: @edited_photo} }");
|