promethee 4.1.28 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/UPGRADING +4 -4
- data/app/views/promethee/components/aside/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/aside/_localize.html.erb +9 -9
- data/app/views/promethee/components/blockquote/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/blockquote/_localize.html.erb +6 -6
- data/app/views/promethee/components/collection/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/collection_item/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/collection_item/_localize.html.erb +6 -6
- data/app/views/promethee/components/collection_item/_show.html.erb +1 -1
- data/app/views/promethee/components/column/{_edit.inspect.html.erb → _edit_inspect.html.erb} +1 -1
- data/app/views/promethee/components/cover/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/cover/_localize.html.erb +9 -9
- data/app/views/promethee/components/faq/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/faq_item/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/faq_item/_localize.html.erb +6 -6
- data/app/views/promethee/components/faq_item/_show.html.erb +1 -1
- data/app/views/promethee/components/image/{_edit.inspect.html.erb → _edit_inspect.html.erb} +1 -1
- data/app/views/promethee/components/image/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/image/_localize.html.erb +9 -9
- data/app/views/promethee/components/image/_show.html.erb +1 -1
- data/app/views/promethee/components/page/{_edit.inspect.html.erb → _edit_inspect.html.erb} +1 -1
- data/app/views/promethee/components/page/_localize.html.erb +6 -6
- data/app/views/promethee/components/row/{_edit.inspect.html.erb → _edit_inspect.html.erb} +1 -1
- data/app/views/promethee/components/row/{_edit.move.html.erb → _edit_move.html.erb} +2 -2
- data/app/views/promethee/components/slider/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/slider_item/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/slider_item/_localize.html.erb +6 -6
- data/app/views/promethee/components/slider_item/_show.html.erb +1 -1
- data/app/views/promethee/components/table/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/table_cell/_localize.html.erb +3 -3
- data/app/views/promethee/components/text/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/text/_localize.html.erb +3 -3
- data/app/views/promethee/components/video/{_edit.move.html.erb → _edit_move.html.erb} +1 -1
- data/app/views/promethee/components/video/_localize.html.erb +3 -3
- data/app/views/promethee/edit/{_move.header.html.erb → _move_header.html.erb} +1 -1
- data/lib/promethee/rails/helper.rb +14 -16
- data/lib/promethee/rails/version.rb +1 -1
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.js +1 -1
- data/node_modules/@fancyapps/fancybox/dist/jquery.fancybox.min.js +1 -1
- data/node_modules/@fancyapps/fancybox/src/js/core.js +1 -1
- metadata +66 -66
- /data/app/views/promethee/components/aside/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/aside/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/blockquote/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/blockquote/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/collection/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/collection/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/collection_item/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/collection_item/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/column/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/column/{_edit.move.html.erb → _edit_move.html.erb} +0 -0
- /data/app/views/promethee/components/cover/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/cover/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/faq/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/faq/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/faq_item/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/faq_item/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/image/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/page/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/page/{_edit.move.html.erb → _edit_move.html.erb} +0 -0
- /data/app/views/promethee/components/row/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/slider/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/slider/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/slider_item/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/slider_item/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/table/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/table/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/table_cell/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/table_cell/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/table_cell/{_edit.move.html.erb → _edit_move.html.erb} +0 -0
- /data/app/views/promethee/components/text/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/text/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/components/video/{_edit.define.html.erb → _edit_define.html.erb} +0 -0
- /data/app/views/promethee/components/video/{_edit.inspect.html.erb → _edit_inspect.html.erb} +0 -0
- /data/app/views/promethee/edit/{_inspect.advanced.html.erb → _inspect_advanced.html.erb} +0 -0
- /data/app/views/promethee/edit/{_move.remove.html.erb → _move_remove.html.erb} +0 -0
- /data/app/views/promethee/presets/{_icon.image-with-text.svg → _icon_image-with-text.svg} +0 -0
- /data/app/views/promethee/show/{_image.srcset.html.erb → _image_srcset.html.erb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 8e292e103c34c4f06ef0164ccc87dd4c41db7abfc4774fd0d901a17cf023041c
|
|
4
|
+
data.tar.gz: 4a087934dc16b629cfad1bcf62554a77b3fca18e4f25f2e240601b15d22cd0cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fbae2b2a9f5ea6ac39f6c552b2648e625cdafd61061bcf35881212723a5cc865a3363dbb76b292a8fefafeef5b98c68a856acf2a415fd344ed973eae3f74cec8
|
|
7
|
+
data.tar.gz: d5fb29d2b2d840a98c4a6ffca7426474e18195d390e6b5b491d5a08ad5963d181c698733039be790487ce8b6927a6f2f5d693f79060375d74fdcf686da20380f
|
data/UPGRADING
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
###################################
|
|
2
|
-
# NOTE FOR UPGRADING TO
|
|
2
|
+
# NOTE FOR UPGRADING TO 5.x.x #
|
|
3
3
|
###################################
|
|
4
4
|
|
|
5
|
-
In Prométhée
|
|
6
|
-
|
|
5
|
+
In Prométhée 5.0, having dots in partial names is deprecated.
|
|
6
|
+
If you have custom components, you have to rename some of them.
|
|
7
7
|
|
|
8
8
|
For more details, check the documentation:
|
|
9
|
-
https://github.com/lespoupeesrusses/promethee/tree/master/doc
|
|
9
|
+
https://github.com/lespoupeesrusses/promethee/tree/master/doc/RENAME_PARTIALS.md
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/aside/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'aside' %>
|
|
3
3
|
<aside ng-show="component.attributes.collapsed_content.value"
|
|
4
4
|
ng-init="collapsed = true">
|
|
5
5
|
<div ng-bind-html="component.attributes.visible_content.value | htmlSafe"></div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/aside/localize">
|
|
2
2
|
<hr>
|
|
3
3
|
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row js-translation-element">
|
|
5
5
|
<div class="col-md-6">
|
|
6
6
|
<b>Aside visible content</b>
|
|
7
|
-
<div ng-bind-html="master.attributes.visible_content.value | htmlSafe"></div>
|
|
7
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.visible_content.value | htmlSafe"></div>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-md-6">
|
|
9
|
+
<div class="col-md-6 js-translation-target">
|
|
10
10
|
<div class="form-group">
|
|
11
11
|
<b>Aside visible content</b>
|
|
12
12
|
<summernote config="summernoteConfig" ng-model="component.attributes.visible_content.value"></summernote>
|
|
@@ -14,12 +14,12 @@
|
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
16
|
|
|
17
|
-
<div class="row" ng-show="master.attributes.collapsed_content.value || frozen_component.attributes.collapsed_content.value">
|
|
17
|
+
<div class="row js-translation-element" ng-show="master.attributes.collapsed_content.value || frozen_component.attributes.collapsed_content.value">
|
|
18
18
|
<div class="col-md-6">
|
|
19
19
|
<b>Aside collapsed content</b>
|
|
20
|
-
<div ng-bind-html="master.attributes.collapsed_content.value | htmlSafe"></div>
|
|
20
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.collapsed_content.value | htmlSafe"></div>
|
|
21
21
|
</div>
|
|
22
|
-
<div class="col-md-6">
|
|
22
|
+
<div class="col-md-6 js-translation-target">
|
|
23
23
|
<div class="form-group">
|
|
24
24
|
<b>Aside collapsed content</b>
|
|
25
25
|
<summernote config="summernoteConfig" ng-model="component.attributes.collapsed_content.value"></summernote>
|
|
@@ -27,12 +27,12 @@
|
|
|
27
27
|
</div>
|
|
28
28
|
</div>
|
|
29
29
|
|
|
30
|
-
<div class="row" ng-show="master.attributes.open_label.value || frozen_component.attributes.open_label.value">
|
|
30
|
+
<div class="row js-translation-element" ng-show="master.attributes.open_label.value || frozen_component.attributes.open_label.value">
|
|
31
31
|
<div class="col-md-6">
|
|
32
32
|
<b>Button label</b>
|
|
33
|
-
<div ng-bind-html="master.attributes.open_label.value | htmlSafe"></div>
|
|
33
|
+
<div class="js-translation-source" data-type="string" ng-bind-html="master.attributes.open_label.value | htmlSafe"></div>
|
|
34
34
|
</div>
|
|
35
|
-
<div class="col-md-6">
|
|
35
|
+
<div class="col-md-6 js-translation-target">
|
|
36
36
|
<div class="form-group">
|
|
37
37
|
<b>Button label</b>
|
|
38
38
|
<input class="form-control" ng-model="component.attributes.open_label.value" type="text">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/blockquote/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'blockquote' %>
|
|
3
3
|
<div class="row">
|
|
4
4
|
<div class="col-md-12 blockquote" ng-bind-html="component.attributes.body.value | htmlSafe"></div>
|
|
5
5
|
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/blockquote/localize">
|
|
2
2
|
<div ng-show="master.attributes.body.value || frozen_component.attributes.body.value">
|
|
3
3
|
<hr>
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row js-translation-element">
|
|
5
5
|
<div class="col-md-6">
|
|
6
6
|
<b>Body</b>
|
|
7
|
-
<div ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
7
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-md-6">
|
|
9
|
+
<div class="col-md-6 js-translation-target">
|
|
10
10
|
<div class="form-group">
|
|
11
11
|
<b>Body</b>
|
|
12
12
|
<summernote config="summernoteConfig" ng-model="component.attributes.body.value"></summernote>
|
|
@@ -15,12 +15,12 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<div class="row" ng-show="master.attributes.author.value || frozen_component.attributes.author.value">
|
|
18
|
+
<div class="row js-translation-element" ng-show="master.attributes.author.value || frozen_component.attributes.author.value">
|
|
19
19
|
<div class="col-md-6">
|
|
20
20
|
<b>Author</b>
|
|
21
|
-
<p>{{master.attributes.author.value}}</p>
|
|
21
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.author.value}}</p>
|
|
22
22
|
</div>
|
|
23
|
-
<div class="col-md-6">
|
|
23
|
+
<div class="col-md-6 js-translation-target">
|
|
24
24
|
<div class="form-group">
|
|
25
25
|
<b>Author</b>
|
|
26
26
|
<input class="form-control" ng-model="component.attributes.author.value" type="text">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/collection/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'collection' %>
|
|
3
3
|
<div class="header">Collection</div>
|
|
4
4
|
<div class="row" ng-controller="CollectionMoveController">
|
|
5
5
|
<div class="col-md-{{size}}" ng-repeat-start="component in components">
|
data/app/views/promethee/components/collection_item/{_edit.move.html.erb → _edit_move.html.erb}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/collection_item/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'collection_item' %>
|
|
3
3
|
<div class="header">Collection Item</div>
|
|
4
4
|
<div class="row">
|
|
5
5
|
<div class="col-xs-12 col-12">
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
<div ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value || master.attributes.media_type.value == 'video'">
|
|
3
3
|
<hr>
|
|
4
4
|
|
|
5
|
-
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
5
|
+
<div class="row js-translation-element" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
6
6
|
<div class="col-md-6">
|
|
7
7
|
<b>Collection Item Caption</b>
|
|
8
|
-
<div class="promethee-edit__wrapper" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
|
8
|
+
<div class="promethee-edit__wrapper js-translation-source" data-type="text" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
|
9
9
|
</div>
|
|
10
|
-
<div class="col-md-6">
|
|
10
|
+
<div class="col-md-6 js-translation-target">
|
|
11
11
|
<b>Collection Item Caption</b>
|
|
12
12
|
<summernote config="summernoteConfig" ng-model="component.attributes.caption.value"></summernote>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<div class="row" ng-show="master.attributes.media_type.value == 'video'">
|
|
16
|
+
<div class="row js-translation-element" ng-show="master.attributes.media_type.value == 'video'">
|
|
17
17
|
<div class="col-md-6">
|
|
18
18
|
<b>Video URL</b>
|
|
19
|
-
<div ng-bind-html="master.attributes.video.value | htmlSafe"></div>
|
|
19
|
+
<div class="js-translation-source" data-type="string" ng-bind-html="master.attributes.video.value | htmlSafe"></div>
|
|
20
20
|
</div>
|
|
21
|
-
<div class="col-md-6">
|
|
21
|
+
<div class="col-md-6 js-translation-target">
|
|
22
22
|
<b>Video URL</b>
|
|
23
23
|
<input class="form-control" ng-model="component.attributes.video.value" type="text">
|
|
24
24
|
</div>
|
|
@@ -24,7 +24,7 @@ end
|
|
|
24
24
|
<iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
|
|
25
25
|
</div>
|
|
26
26
|
<% elsif image_blob.present? %>
|
|
27
|
-
<%= render 'promethee/show/
|
|
27
|
+
<%= render 'promethee/show/image_srcset', blob: image_blob, alt: '', title: '', caption: caption %>
|
|
28
28
|
<% end %>
|
|
29
29
|
<div class="collection-item__content__caption">
|
|
30
30
|
<%= caption %>
|
data/app/views/promethee/components/column/{_edit.inspect.html.erb → _edit_inspect.html.erb}
RENAMED
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
</offset-input>
|
|
24
24
|
</div>
|
|
25
25
|
|
|
26
|
-
<%= render 'promethee/edit/
|
|
26
|
+
<%= render 'promethee/edit/inspect_advanced' %>
|
|
27
27
|
<div class="form-group">
|
|
28
28
|
<input id="column_edit_inspect_tablet_enabled"
|
|
29
29
|
ng-model="promethee.inspected.attributes.tablet.value.enabled.value"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/cover/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'cover' %>
|
|
3
3
|
<div class=" promethee-edit__wrapper
|
|
4
4
|
promethee-edit__cover-content"
|
|
5
5
|
style="background-image:url('{{ component.attributes.image.value.id ? '/promethee/blob/' + component.attributes.image.value.id : '' }}')">
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</div>
|
|
10
10
|
|
|
11
|
-
<div class="row" ng-show="master.attributes.surtitle.value || frozen_component.attributes.surtitle.value">
|
|
11
|
+
<div class="row js-translation-element" ng-show="master.attributes.surtitle.value || frozen_component.attributes.surtitle.value">
|
|
12
12
|
<div class="col-md-6">
|
|
13
13
|
<b>Surtitle</b>
|
|
14
|
-
<p>{{master.attributes.surtitle.value}}</p>
|
|
14
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.surtitle.value}}</p>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="col-md-6">
|
|
16
|
+
<div class="col-md-6 js-translation-target">
|
|
17
17
|
<div class="form-group">
|
|
18
18
|
<b>Surtitle</b>
|
|
19
19
|
<input class="form-control" ng-model="component.attributes.surtitle.value" type="text">
|
|
@@ -21,12 +21,12 @@
|
|
|
21
21
|
</div>
|
|
22
22
|
</div>
|
|
23
23
|
|
|
24
|
-
<div class="row" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
|
24
|
+
<div class="row js-translation-element" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
|
25
25
|
<div class="col-md-6">
|
|
26
26
|
<b>Title</b>
|
|
27
|
-
<p>{{master.attributes.title.value}}</p>
|
|
27
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.title.value}}</p>
|
|
28
28
|
</div>
|
|
29
|
-
<div class="col-md-6">
|
|
29
|
+
<div class="col-md-6 js-translation-target">
|
|
30
30
|
<div class="form-group">
|
|
31
31
|
<b>Title</b>
|
|
32
32
|
<input class="form-control" ng-model="component.attributes.title.value" type="text">
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
</div>
|
|
35
35
|
</div>
|
|
36
36
|
|
|
37
|
-
<div class="row" ng-show="master.attributes.subtitle.value || frozen_component.attributes.subtitle.value">
|
|
37
|
+
<div class="row js-translation-element" ng-show="master.attributes.subtitle.value || frozen_component.attributes.subtitle.value">
|
|
38
38
|
<div class="col-md-6">
|
|
39
39
|
<b>Subtitle</b>
|
|
40
|
-
<p>{{master.attributes.subtitle.value}}</p>
|
|
40
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.subtitle.value}}</p>
|
|
41
41
|
</div>
|
|
42
|
-
<div class="col-md-6">
|
|
42
|
+
<div class="col-md-6 js-translation-target">
|
|
43
43
|
<div class="form-group">
|
|
44
44
|
<b>Subtitle</b>
|
|
45
45
|
<input class="form-control" ng-model="component.attributes.subtitle.value" type="text">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/faq/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'faq' %>
|
|
3
3
|
<div class="header">FAQ</div>
|
|
4
4
|
<div ng-controller="FaqMoveController">
|
|
5
5
|
<div ng-repeat="component in components">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/faq_item/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'faq_item' %>
|
|
3
3
|
<div class="header">FAQ Item</div>
|
|
4
4
|
<div class="row promethee-edit__faq_item__content{{ component.attributes.special_question.value ? '--special' : '' }}">
|
|
5
5
|
<div class="col-9 col-xs-9">
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/faq_item/localize">
|
|
2
2
|
<div ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
|
3
3
|
<hr>
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row js-translation-element">
|
|
5
5
|
<div class="col-md-6">
|
|
6
6
|
<b>Title</b>
|
|
7
|
-
<p>{{master.attributes.title.value}}</p>
|
|
7
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.title.value}}</p>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-md-6">
|
|
9
|
+
<div class="col-md-6 js-translation-target">
|
|
10
10
|
<div class="form-group">
|
|
11
11
|
<b>Title</b>
|
|
12
12
|
<input class="form-control" ng-model="component.attributes.title.value" type="text">
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
</div>
|
|
16
|
-
<div class="row">
|
|
16
|
+
<div class="row js-translation-element">
|
|
17
17
|
<div class="col-md-6">
|
|
18
18
|
<b>Body</b>
|
|
19
|
-
<div ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
19
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
20
20
|
</div>
|
|
21
|
-
<div class="col-md-6">
|
|
21
|
+
<div class="col-md-6 js-translation-target">
|
|
22
22
|
<div class="form-group">
|
|
23
23
|
<b>Body</b>
|
|
24
24
|
<summernote config="summernoteConfig" ng-model="component.attributes.body.value"></summernote>
|
|
@@ -19,7 +19,7 @@ image_blob = blob_from_data component[:attributes].dig(:image, :value)
|
|
|
19
19
|
<% if image_blob %>
|
|
20
20
|
<div class="row ">
|
|
21
21
|
<div class="col-3 col-xs-3">
|
|
22
|
-
<%= render 'promethee/show/
|
|
22
|
+
<%= render 'promethee/show/image_srcset', blob: image_blob, alt: '', title: '', caption: '' %>
|
|
23
23
|
</div>
|
|
24
24
|
<div class="col-9 col-xs-9">
|
|
25
25
|
<%= body %>
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
<input class="form-control" ng-model="promethee.inspected.attributes.caption.value">
|
|
8
8
|
</div>
|
|
9
9
|
|
|
10
|
-
<%= render 'promethee/edit/
|
|
10
|
+
<%= render 'promethee/edit/inspect_advanced' %>
|
|
11
11
|
<div class="form-group">
|
|
12
12
|
<label class="label-control">Alt</label>
|
|
13
13
|
<input class="form-control" ng-model="promethee.inspected.attributes.alt.value">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/image/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'image' %>
|
|
3
3
|
<figure ng-show="component.attributes.image.value.id">
|
|
4
4
|
<img ng-src="{{ component.attributes.image.value.id ? '/promethee/blob/' + component.attributes.image.value.id : '#' }}"
|
|
5
5
|
class="img-fluid img-responsive">
|
|
@@ -11,12 +11,12 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
</div>
|
|
13
13
|
|
|
14
|
-
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
14
|
+
<div class="row js-translation-element" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
15
15
|
<div class="col-md-6">
|
|
16
16
|
<b>Caption</b>
|
|
17
|
-
<p>{{master.attributes.caption.value}}</p>
|
|
17
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.caption.value}}</p>
|
|
18
18
|
</div>
|
|
19
|
-
<div class="col-md-6">
|
|
19
|
+
<div class="col-md-6 js-translation-target">
|
|
20
20
|
<div class="form-group">
|
|
21
21
|
<b>Caption</b>
|
|
22
22
|
<input class="form-control" ng-model="component.attributes.caption.value" type="text">
|
|
@@ -25,12 +25,12 @@
|
|
|
25
25
|
</div>
|
|
26
26
|
</div>
|
|
27
27
|
|
|
28
|
-
<div class="row" ng-show="master.attributes.alt.value || frozen_component.attributes.alt.value">
|
|
28
|
+
<div class="row js-translation-element" ng-show="master.attributes.alt.value || frozen_component.attributes.alt.value">
|
|
29
29
|
<div class="col-md-6">
|
|
30
30
|
<b>Alt</b>
|
|
31
|
-
<p>{{master.attributes.alt.value}}</p>
|
|
31
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.alt.value}}</p>
|
|
32
32
|
</div>
|
|
33
|
-
<div class="col-md-6">
|
|
33
|
+
<div class="col-md-6 js-translation-target">
|
|
34
34
|
<div class="form-group">
|
|
35
35
|
<b>Alt</b>
|
|
36
36
|
<input class="form-control" ng-model="component.attributes.alt.value" type="text">
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
</div>
|
|
39
39
|
</div>
|
|
40
40
|
|
|
41
|
-
<div class="row" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
|
41
|
+
<div class="row js-translation-element" ng-show="master.attributes.title.value || frozen_component.attributes.title.value">
|
|
42
42
|
<div class="col-md-6">
|
|
43
43
|
<b>Title</b>
|
|
44
|
-
<p>{{master.attributes.title.value}}</p>
|
|
44
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.title.value}}</p>
|
|
45
45
|
</div>
|
|
46
|
-
<div class="col-md-6">
|
|
46
|
+
<div class="col-md-6 js-translation-target">
|
|
47
47
|
<div class="form-group">
|
|
48
48
|
<b>Title</b>
|
|
49
49
|
<input class="form-control" ng-model="component.attributes.title.value" type="text">
|
|
@@ -9,7 +9,7 @@ caption = component[:attributes].dig(:caption, :value)&.to_s
|
|
|
9
9
|
id="<%= promethee_id_for component %>">
|
|
10
10
|
<div class="promethee__component__row">
|
|
11
11
|
<div class="promethee__component__content">
|
|
12
|
-
<%= render 'promethee/show/
|
|
12
|
+
<%= render 'promethee/show/image_srcset', blob: blob, alt: alt, title: title, caption: caption if blob %>
|
|
13
13
|
<% unless caption.blank? %>
|
|
14
14
|
<figcaption>
|
|
15
15
|
<%= caption %>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
<% end %>
|
|
13
13
|
|
|
14
|
-
<%= render 'promethee/edit/
|
|
14
|
+
<%= render 'promethee/edit/inspect_advanced' %>
|
|
15
15
|
<promethee-uploader ng-model="promethee.inspected.attributes.thumbnail.value" label="Thumbnail" limits="'.jpg,.jpeg,.png,.gif'"></promethee-uploader>
|
|
16
16
|
|
|
17
17
|
<div class="form-group">
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
<% unless @disable_page_attributes %>
|
|
3
3
|
<hr>
|
|
4
4
|
|
|
5
|
-
<div class="row">
|
|
5
|
+
<div class="row js-translation-element">
|
|
6
6
|
<div class="col-md-6">
|
|
7
7
|
<b>Page title</b>
|
|
8
|
-
<p>{{master.attributes.title.value}}</p><br>
|
|
8
|
+
<p class="js-translation-source" data-type="string">{{master.attributes.title.value}}</p><br>
|
|
9
9
|
</div>
|
|
10
|
-
<div class="col-md-6">
|
|
10
|
+
<div class="col-md-6 js-translation-target">
|
|
11
11
|
<div class="form-group">
|
|
12
12
|
<b>Page title</b>
|
|
13
13
|
<input class="form-control" ng-model="component.attributes.title.value" type="text">
|
|
@@ -15,14 +15,14 @@
|
|
|
15
15
|
</div>
|
|
16
16
|
</div>
|
|
17
17
|
|
|
18
|
-
<div class="row" ng-show="master.attributes.description.value || frozen_component.attributes.description.value">
|
|
18
|
+
<div class="row js-translation-element" ng-show="master.attributes.description.value || frozen_component.attributes.description.value">
|
|
19
19
|
<div class="col-md-6">
|
|
20
20
|
<div>
|
|
21
21
|
<b>Page description</b>
|
|
22
|
-
<p>{{master.attributes.description.value}}</p>
|
|
22
|
+
<p class="js-translation-source" data-type="text">{{master.attributes.description.value}}</p>
|
|
23
23
|
</div>
|
|
24
24
|
</div>
|
|
25
|
-
<div class="col-md-6">
|
|
25
|
+
<div class="col-md-6 js-translation-target">
|
|
26
26
|
<div class="form-group">
|
|
27
27
|
<b>Page description</b>
|
|
28
28
|
<textarea class="form-control" rows="6" ng-model="component.attributes.description.value"></textarea>
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
</div>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
|
-
<%= render 'promethee/edit/
|
|
20
|
+
<%= render 'promethee/edit/inspect_advanced' %>
|
|
21
21
|
<div class="form-group">
|
|
22
22
|
<label class="label-control">Background color</label>
|
|
23
23
|
<input ng-model="promethee.inspected.attributes.bgcolor.value"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/row/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'row' %>
|
|
3
3
|
<div class="header">Row</div>
|
|
4
4
|
<div class="row" ng-controller="RowMoveController">
|
|
5
5
|
<div class="row__background row__background--color" ng-style="{'background': component.attributes.bgcolor.value}"></div>
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
offset-md-{{component.attributes.offset.value}}
|
|
21
21
|
col-md-offset-{{component.attributes.offset.value}}">
|
|
22
22
|
<div class="promethee-edit__component__inner">
|
|
23
|
-
<%= render 'promethee/edit/
|
|
23
|
+
<%= render 'promethee/edit/move_remove' %>
|
|
24
24
|
<div class="header">Column {{$index + 1}}</div>
|
|
25
25
|
<ng-include src="'promethee/move/components'"></ng-include>
|
|
26
26
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/slider/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'slider' %>
|
|
3
3
|
<div class="header">Slider</div>
|
|
4
4
|
<div ng-controller="SliderMoveController">
|
|
5
5
|
<div ng-show="components.length" class="row carousel">
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/slider_item/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'slider_item' %>
|
|
3
3
|
<div class="header">Slider Item</div>
|
|
4
4
|
<div class="row">
|
|
5
5
|
<div class="col-12 col-xs-12">
|
|
@@ -2,23 +2,23 @@
|
|
|
2
2
|
<div ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value || master.attributes.media_type.value == 'video'">
|
|
3
3
|
<hr>
|
|
4
4
|
|
|
5
|
-
<div class="row" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
5
|
+
<div class="row js-translation-element" ng-show="master.attributes.caption.value || frozen_component.attributes.caption.value">
|
|
6
6
|
<div class="col-md-6">
|
|
7
7
|
<b>Slider Item Caption</b>
|
|
8
|
-
<div class="promethee-edit__wrapper" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
|
8
|
+
<div class="promethee-edit__wrapper js-translation-source" data-type="text" ng-bind-html="master.attributes.caption.value | htmlSafe"></div>
|
|
9
9
|
</div>
|
|
10
|
-
<div class="col-md-6">
|
|
10
|
+
<div class="col-md-6 js-translation-target">
|
|
11
11
|
<b>Slider Item Caption</b>
|
|
12
12
|
<summernote config="summernoteConfig" ng-model="component.attributes.caption.value"></summernote>
|
|
13
13
|
</div>
|
|
14
14
|
</div>
|
|
15
15
|
|
|
16
|
-
<div class="row" ng-show="master.attributes.media_type.value == 'video'">
|
|
16
|
+
<div class="row js-translation-element" ng-show="master.attributes.media_type.value == 'video'">
|
|
17
17
|
<div class="col-md-6">
|
|
18
18
|
<b>Video URL</b>
|
|
19
|
-
<div ng-bind-html="master.attributes.video.value | htmlSafe"></div>
|
|
19
|
+
<div class="js-translation-source" data-type="string" ng-bind-html="master.attributes.video.value | htmlSafe"></div>
|
|
20
20
|
</div>
|
|
21
|
-
<div class="col-md-6">
|
|
21
|
+
<div class="col-md-6 js-translation-target">
|
|
22
22
|
<b>Video URL</b>
|
|
23
23
|
<input class="form-control" ng-model="component.attributes.video.value" type="text">
|
|
24
24
|
</div>
|
|
@@ -24,7 +24,7 @@ end
|
|
|
24
24
|
<iframe frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="allowfullscreen" src="<%= iframe_src %>"></iframe>
|
|
25
25
|
</div>
|
|
26
26
|
<% elsif image_blob.present? %>
|
|
27
|
-
<%= render 'promethee/show/
|
|
27
|
+
<%= render 'promethee/show/image_srcset', blob: image_blob, alt: '', title: '', caption: caption, image_zoomable: false %>
|
|
28
28
|
<% end %>
|
|
29
29
|
<div class="carousel-item__content__caption">
|
|
30
30
|
<%= caption %>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/table/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'table' %>
|
|
3
3
|
<div class="table-responsive" ng-controller="TableMoveController">
|
|
4
4
|
<table class="table">
|
|
5
5
|
<thead>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/table_cell/localize">
|
|
2
|
-
<div class="row mt-2" ng-show="master.attributes.text.value || frozen_component.attributes.text.value">
|
|
2
|
+
<div class="row mt-2 js-translation-element" ng-show="master.attributes.text.value || frozen_component.attributes.text.value">
|
|
3
3
|
<div class="col-md-6">
|
|
4
4
|
<b>Text</b>
|
|
5
|
-
<div ng-bind-html="master.attributes.text.value | htmlSafe"></div>
|
|
5
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.text.value | htmlSafe"></div>
|
|
6
6
|
</div>
|
|
7
|
-
<div class="col-md-6">
|
|
7
|
+
<div class="col-md-6 js-translation-target">
|
|
8
8
|
<b>Text</b>
|
|
9
9
|
<summernote config="summernoteConfig" ng-model="component.attributes.text.value"></summernote>
|
|
10
10
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/text/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'text' %>
|
|
3
3
|
<div ng-bind-html="component.attributes.body.value | htmlSafe"></div>
|
|
4
4
|
</div>
|
|
5
5
|
</div>
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/text/localize">
|
|
2
2
|
<div ng-show="master.attributes.body.value || frozen_component.attributes.body.value">
|
|
3
3
|
<hr>
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row js-translation-element">
|
|
5
5
|
<div class="col-md-6">
|
|
6
6
|
<b>Text</b>
|
|
7
|
-
<div ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
7
|
+
<div class="js-translation-source" data-type="text" ng-bind-html="master.attributes.body.value | htmlSafe"></div>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-md-6">
|
|
9
|
+
<div class="col-md-6 js-translation-target">
|
|
10
10
|
<b>Text</b>
|
|
11
11
|
<summernote config="summernoteConfig" ng-model="component.attributes.body.value"></summernote>
|
|
12
12
|
</div>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/video/edit/move">
|
|
2
|
-
<%= render 'promethee/edit/
|
|
2
|
+
<%= render 'promethee/edit/move_header', type: 'video' %>
|
|
3
3
|
<div ng-controller="VideoController">
|
|
4
4
|
<div class="embed-responsive embed-responsive-16by9">
|
|
5
5
|
<iframe ng-if="embed"
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/video/localize">
|
|
2
2
|
<div ng-show="master.attributes.url.value || frozen_component.attributes.url.value">
|
|
3
3
|
<hr>
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row js-translation-element">
|
|
5
5
|
<div class="col-md-6">
|
|
6
6
|
<b>URL</b>
|
|
7
|
-
<div ng-bind-html="master.attributes.url.value | htmlSafe"></div>
|
|
7
|
+
<div class="js-translation-source" data-type="string" ng-bind-html="master.attributes.url.value | htmlSafe"></div>
|
|
8
8
|
</div>
|
|
9
|
-
<div class="col-md-6">
|
|
9
|
+
<div class="col-md-6 js-translation-target">
|
|
10
10
|
<div class="form-group">
|
|
11
11
|
<b>URL</b>
|
|
12
12
|
<input class="form-control" ng-model="component.attributes.url.value" type="text">
|
|
@@ -3,4 +3,4 @@
|
|
|
3
3
|
ng-class="{'promethee-edit__component--selected': promethee.inspected === component}"
|
|
4
4
|
class="<%= promethee_bem_classes 'promethee-edit__component', "--#{type}" %>">
|
|
5
5
|
<div class="promethee-edit__component__inner">
|
|
6
|
-
<%= render 'promethee/edit/
|
|
6
|
+
<%= render 'promethee/edit/move_remove' %>
|