promethee 1.6.14 → 1.6.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/stylesheets/promethee-edit.sass +11 -0
- data/app/assets/stylesheets/promethee-edit/_move.sass +0 -42
- data/app/assets/stylesheets/promethee.sass +10 -7
- data/app/controllers/promethee_controller.rb +2 -1
- data/app/models/concerns/promethee_data.rb +29 -0
- data/app/views/promethee/_edit.html.erb +2 -12
- data/app/views/promethee/_localize.html.erb +0 -11
- data/app/views/promethee/components/aside/_edit.define.html.erb +3 -3
- data/app/views/promethee/components/aside/_edit.inspect.html.erb +3 -3
- data/app/views/promethee/components/aside/_edit.move.html.erb +11 -8
- data/app/views/promethee/components/aside/_localize.html.erb +8 -10
- data/app/views/promethee/components/aside/_show.html.erb +7 -7
- data/app/views/promethee/components/collection/_edit.move.html.erb +0 -1
- data/app/views/promethee/components/column/_edit.move.html.erb +0 -8
- data/app/views/promethee/components/cover/_edit.define.html.erb +3 -3
- data/app/views/promethee/components/cover/_edit.inspect.html.erb +3 -3
- data/app/views/promethee/components/cover/_edit.move.html.erb +3 -4
- data/app/views/promethee/components/cover/_localize.html.erb +10 -13
- data/app/views/promethee/components/cover/_show.html.erb +9 -9
- data/app/views/promethee/components/image/_edit.define.html.erb +2 -2
- data/app/views/promethee/components/image/_edit.inspect.html.erb +5 -11
- data/app/views/promethee/components/image/_edit.move.html.erb +3 -2
- data/app/views/promethee/components/image/_localize.html.erb +7 -9
- data/app/views/promethee/components/image/_show.html.erb +5 -5
- data/app/views/promethee/components/page/_edit.define.html.erb +2 -2
- data/app/views/promethee/components/page/_edit.inspect.html.erb +9 -15
- data/app/views/promethee/components/page/_edit.move.html.erb +0 -4
- data/app/views/promethee/components/page/_localize.html.erb +5 -8
- data/app/views/promethee/components/row/_edit.define.html.erb +2 -9
- data/app/views/promethee/components/row/_edit.inspect.html.erb +37 -15
- data/app/views/promethee/components/row/_edit.move.html.erb +7 -3
- data/app/views/promethee/components/row/_localize.html.erb +0 -1
- data/app/views/promethee/components/row/_show.html.erb +23 -1
- data/app/views/promethee/components/slider/_edit.define.html.erb +0 -3
- data/app/views/promethee/components/slider/_edit.inspect.html.erb +11 -51
- data/app/views/promethee/components/slider/_edit.move.html.erb +0 -14
- data/app/views/promethee/components/slider/_show.html.erb +4 -5
- data/app/views/promethee/components/slider_item/_edit.define.html.erb +18 -0
- data/app/views/promethee/components/slider_item/_edit.inspect.html.erb +52 -0
- data/app/views/promethee/components/slider_item/_edit.move.html.erb +14 -0
- data/app/views/promethee/components/slider_item/_icon.svg +3 -0
- data/app/views/promethee/components/slider_item/_localize.html.erb +15 -0
- data/app/views/promethee/components/slider_item/_show.html.erb +5 -0
- data/app/views/promethee/components/text/_edit.define.html.erb +1 -1
- data/app/views/promethee/components/text/_edit.inspect.html.erb +3 -3
- data/app/views/promethee/components/text/_edit.move.html.erb +1 -2
- data/app/views/promethee/components/text/_localize.html.erb +3 -5
- data/app/views/promethee/components/text/_show.html.erb +2 -2
- data/app/views/promethee/components/video/_edit.inspect.html.erb +4 -2
- data/app/views/promethee/components/video/_edit.move.html.erb +6 -1
- data/app/views/promethee/components/video/_localize.html.erb +0 -1
- data/app/views/promethee/edit/_inspect.advanced.html.erb +7 -0
- data/app/views/promethee/edit/_move.html.erb +3 -15
- data/app/views/promethee/edit/_radiobuttons.html.erb +8 -0
- data/app/views/promethee/templates/_uploader.html.erb +7 -3
- data/lib/promethee/rails/version.rb +1 -1
- metadata +9 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e704bb85e5f68b9d1d6fcd2347a22659a6f4925d
|
4
|
+
data.tar.gz: edc127b5995199bfe7261b6c4932729223965034
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5119c95e2c68bdbe8cab7b4710aa97da222c6564988ebcc98a98255eb8e3d316376bcd69663c55e5b6b34a50355d2d5d7e52f1adbc8ff4c6dd67d575df44b780
|
7
|
+
data.tar.gz: 1c3a097856ecae048e0b60de4b56bda0cfe6e58c53cd8e11743a0c060dcc7a431159f7b459c921a57fa84d8f96f36bd1760340a1fd0e1cc6bf59a75461fe9f1d
|
@@ -110,6 +110,17 @@ $promethee-color: #ff9900 !default
|
|
110
110
|
right: 0
|
111
111
|
bottom: 0
|
112
112
|
|
113
|
+
.promethee_uploader--preview
|
114
|
+
float: right
|
115
|
+
margin-top: 5px
|
116
|
+
img
|
117
|
+
display: block
|
118
|
+
margin: 0 0 0 auto
|
119
|
+
max-height: 34px
|
120
|
+
&__delete
|
121
|
+
margin-left: 5px
|
122
|
+
cursor: pointer
|
123
|
+
|
113
124
|
@media (min-width: 768px)
|
114
125
|
.modal-dialog
|
115
126
|
// default margin-top is 30px and the modal window is displayed UNDER the topbar
|
@@ -77,27 +77,6 @@
|
|
77
77
|
&.ui-droppable-hover
|
78
78
|
opacity: 1
|
79
79
|
height: 100px
|
80
|
-
&--row
|
81
|
-
position: absolute
|
82
|
-
display: none
|
83
|
-
width: 10px
|
84
|
-
height: 100%
|
85
|
-
&.ui-droppable-active
|
86
|
-
width: 10px
|
87
|
-
height: 100%
|
88
|
-
&.ui-droppable-hover
|
89
|
-
opacity: 1
|
90
|
-
width: 20px
|
91
|
-
height: 100%
|
92
|
-
&--first
|
93
|
-
display: block
|
94
|
-
left: -10px
|
95
|
-
top: 10px
|
96
|
-
bottom: 20px
|
97
|
-
&--inside-column
|
98
|
-
display: block
|
99
|
-
right: -5px
|
100
|
-
top: -10px
|
101
80
|
|
102
81
|
.ui-draggable-dragging
|
103
82
|
z-index: 1000
|
@@ -106,27 +85,6 @@
|
|
106
85
|
.promethee-edit__move__droppable
|
107
86
|
visibility: hidden !important
|
108
87
|
|
109
|
-
// By default, nothing is dropped in rows
|
110
|
-
&--dragging
|
111
|
-
.promethee-edit__move__droppable--row
|
112
|
-
display: none
|
113
|
-
|
114
|
-
// Except for columns, which can be dropped only on rows
|
115
|
-
&--column
|
116
|
-
.promethee-edit__move__droppable
|
117
|
-
display: none
|
118
|
-
// But we don't want anything to move when the droppable disappear, so we show some substitutes
|
119
|
-
&-substitute
|
120
|
-
// This height is not perfect, some strange things move
|
121
|
-
height: 24px
|
122
|
-
// Except in rows
|
123
|
-
&.promethee-edit__move__droppable-substitute--row
|
124
|
-
height: 0
|
125
|
-
// It's a little specific, columns can be dropped on rows "first droppable", or on columns "inside droppables"
|
126
|
-
&--row--first,
|
127
|
-
&--row--inside-column
|
128
|
-
display: block
|
129
|
-
|
130
88
|
.promethee-edit
|
131
89
|
&__inspect, &__library
|
132
90
|
min-width: 100px
|
@@ -17,10 +17,13 @@
|
|
17
17
|
font-size: 30px
|
18
18
|
|
19
19
|
&__aside
|
20
|
-
.aside__button
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
20
|
+
.aside__button
|
21
|
+
padding-top: 30px
|
22
|
+
a
|
23
|
+
display: inline-block
|
24
|
+
&--center
|
25
|
+
text-align: center
|
26
|
+
&--left
|
27
|
+
text-align: left
|
28
|
+
&--right
|
29
|
+
text-align: right
|
@@ -16,7 +16,8 @@ class PrometheeController < ApplicationController
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def blob_show
|
19
|
+
# as this is called only from promethee preview it sends an image resized to 720
|
19
20
|
blob = ActiveStorage::Blob.find params[:id]
|
20
|
-
redirect_to url_for(blob.variant(resize: '720'))
|
21
|
+
redirect_to url_for(blob.variant(resize: '720>'))
|
21
22
|
end
|
22
23
|
end
|
@@ -1,8 +1,37 @@
|
|
1
1
|
module PrometheeData
|
2
2
|
extend ActiveSupport::Concern
|
3
3
|
|
4
|
+
def data_page_title
|
5
|
+
data['attributes']['searchable_title']
|
6
|
+
end
|
7
|
+
|
8
|
+
def data_page_description
|
9
|
+
data['attributes']['searchable_description']
|
10
|
+
end
|
11
|
+
|
4
12
|
def data=(value)
|
5
13
|
value = JSON.parse value if value.is_a? String
|
6
14
|
super(value)
|
7
15
|
end
|
16
|
+
|
17
|
+
def data_searchable
|
18
|
+
promethee_extract_searchable data
|
19
|
+
end
|
20
|
+
|
21
|
+
protected
|
22
|
+
|
23
|
+
include ActionView::Helpers::SanitizeHelper
|
24
|
+
def promethee_extract_searchable(component)
|
25
|
+
searchable = ' '
|
26
|
+
component['attributes'].each do |key, value|
|
27
|
+
if key.starts_with? 'searchable_'
|
28
|
+
clean_value = strip_tags value
|
29
|
+
searchable += "#{clean_value} "
|
30
|
+
end
|
31
|
+
end if component.include? 'attributes'
|
32
|
+
component['children'].each do |child|
|
33
|
+
searchable += promethee_extract_searchable child
|
34
|
+
end if component.include? 'children'
|
35
|
+
searchable
|
36
|
+
end
|
8
37
|
end
|
@@ -42,8 +42,8 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
|
|
42
42
|
id: $scope.generateIdentifier(),
|
43
43
|
type: 'page',
|
44
44
|
attributes: {
|
45
|
-
|
46
|
-
|
45
|
+
searchable_title: 'New page',
|
46
|
+
searchable_description: '',
|
47
47
|
stylesheets: '',
|
48
48
|
javascripts: ''
|
49
49
|
},
|
@@ -132,16 +132,6 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
|
|
132
132
|
$('#promethee').closest('form').submit();
|
133
133
|
};
|
134
134
|
|
135
|
-
$scope.concatenateChildrenSearch = function(component) {
|
136
|
-
var search = ''
|
137
|
-
angular.forEach(component.children, function(child) {
|
138
|
-
if (child.attributes && child.attributes.search) {
|
139
|
-
search += child.attributes.search + ' ';
|
140
|
-
}
|
141
|
-
});
|
142
|
-
return search;
|
143
|
-
}
|
144
|
-
|
145
135
|
$scope.summernoteConfig = summernoteConfig;
|
146
136
|
$scope.sendPreviewData('thumb-preview');
|
147
137
|
}]);
|
@@ -24,17 +24,6 @@ promethee_data = Promethee::Data.new master_data, localization_data: localizatio
|
|
24
24
|
$scope.component = {children: data.components};
|
25
25
|
|
26
26
|
$scope.summernoteConfig = summernoteConfig;
|
27
|
-
|
28
|
-
$scope.concatenateSearch = function() {
|
29
|
-
var search = ''
|
30
|
-
angular.forEach($scope.component.children, function(child) {
|
31
|
-
if (child.type !== 'page' && child.attributes && child.attributes.search) {
|
32
|
-
search += child.attributes.search + ' ';
|
33
|
-
}
|
34
|
-
});
|
35
|
-
return search;
|
36
|
-
}
|
37
|
-
|
38
27
|
}]);
|
39
28
|
</script>
|
40
29
|
|
@@ -8,9 +8,9 @@
|
|
8
8
|
data: {
|
9
9
|
type: 'aside',
|
10
10
|
attributes: {
|
11
|
-
|
12
|
-
|
13
|
-
|
11
|
+
searchable_visible_content: '<p>Edit me</p>',
|
12
|
+
searchable_collapsed_content: '',
|
13
|
+
searchable_open_label: 'See more',
|
14
14
|
open_label_position: 'left'
|
15
15
|
},
|
16
16
|
children: []
|
@@ -1,17 +1,17 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/aside/edit/inspect">
|
2
2
|
<div class="form-group">
|
3
3
|
<label class="label-control">Visible content</label>
|
4
|
-
<summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.
|
4
|
+
<summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.searchable_visible_content"></summernote>
|
5
5
|
</div>
|
6
6
|
|
7
7
|
<div class="form-group">
|
8
8
|
<label class="label-control">Collapsed content</label>
|
9
|
-
<summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.
|
9
|
+
<summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.searchable_collapsed_content"></summernote>
|
10
10
|
</div>
|
11
11
|
|
12
12
|
<div class="form-group">
|
13
13
|
<label class="label-control">Button label</label>
|
14
|
-
<input ng-model="promethee.inspected.attributes.
|
14
|
+
<input ng-model="promethee.inspected.attributes.searchable_open_label" class="form-control" type="text"/>
|
15
15
|
</div>
|
16
16
|
|
17
17
|
<div class="form-group">
|
@@ -1,14 +1,17 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/aside/edit/move">
|
2
2
|
<%= render 'promethee/edit/move.header', type: 'aside' %>
|
3
|
-
<aside
|
4
|
-
|
5
|
-
<div
|
6
|
-
<
|
3
|
+
<aside ng-show="component.attributes.searchable_collapsed_content"
|
4
|
+
ng-init="collapsed = true">
|
5
|
+
<div ng-bind-html="component.attributes.searchable_visible_content | htmlSafe"></div>
|
6
|
+
<div ng-hide="collapsed"
|
7
|
+
ng-bind-html="component.attributes.searchable_collapsed_content | htmlSafe"></div>
|
8
|
+
<a class="btn btn-default btn-block"
|
9
|
+
ng-click="collapsed = !collapsed"
|
10
|
+
ng-show="collapsed"
|
11
|
+
ng-bind-html="component.attributes.searchable_open_label | htmlSafe"></a>
|
7
12
|
</aside>
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
<pre class="hidden">{{component.attributes.search = ((component.attributes.visible_content | textContentFromHTML) + ' ' + (component.attributes.collapsed_content | textContentFromHTML))}}</pre>
|
13
|
+
<aside ng-hide="component.attributes.searchable_collapsed_content"
|
14
|
+
ng-bind-html="component.attributes.searchable_visible_content | htmlSafe"></aside>
|
12
15
|
</div>
|
13
16
|
</div>
|
14
17
|
</script>
|
@@ -4,41 +4,39 @@
|
|
4
4
|
<div class="row">
|
5
5
|
<div class="col-md-6">
|
6
6
|
<b>Aside visible content</b>
|
7
|
-
<div ng-bind-html="component.master.attributes.
|
7
|
+
<div ng-bind-html="component.master.attributes.searchable_visible_content | htmlSafe"></div>
|
8
8
|
</div>
|
9
9
|
<div class="col-md-6">
|
10
10
|
<div class="form-group">
|
11
11
|
<label class="label-control">Aside visible content</label>
|
12
|
-
<summernote config="summernoteConfig" ng-model="component.attributes.
|
12
|
+
<summernote config="summernoteConfig" ng-model="component.attributes.searchable_visible_content"></summernote>
|
13
13
|
</div>
|
14
14
|
</div>
|
15
15
|
</div>
|
16
16
|
|
17
|
-
<div class="row" ng-show="component.master.attributes.
|
17
|
+
<div class="row" ng-show="component.master.attributes.searchable_collapsed_content">
|
18
18
|
<div class="col-md-6">
|
19
19
|
<b>Aside collapsed content</b>
|
20
|
-
<div ng-bind-html="component.master.attributes.
|
20
|
+
<div ng-bind-html="component.master.attributes.searchable_collapsed_content | htmlSafe"></div>
|
21
21
|
</div>
|
22
22
|
<div class="col-md-6">
|
23
23
|
<div class="form-group">
|
24
24
|
<label class="label-control">Aside collapsed content</label>
|
25
|
-
<summernote config="summernoteConfig" ng-model="component.attributes.
|
25
|
+
<summernote config="summernoteConfig" ng-model="component.attributes.searchable_collapsed_content"></summernote>
|
26
26
|
</div>
|
27
27
|
</div>
|
28
28
|
</div>
|
29
29
|
|
30
|
-
<div class="row" ng-show="component.master.attributes.
|
30
|
+
<div class="row" ng-show="component.master.attributes.searchable_collapsed_content">
|
31
31
|
<div class="col-md-6">
|
32
32
|
<b>Button label</b>
|
33
|
-
<div ng-bind-html="component.master.attributes.
|
33
|
+
<div ng-bind-html="component.master.attributes.searchable_open_label | htmlSafe"></div>
|
34
34
|
</div>
|
35
35
|
<div class="col-md-6">
|
36
36
|
<div class="form-group">
|
37
37
|
<label class="label-control">Button label</label>
|
38
|
-
<input class="form-control" ng-model="component.attributes.
|
38
|
+
<input class="form-control" ng-model="component.attributes.searchable_open_label" type="text">
|
39
39
|
</div>
|
40
40
|
</div>
|
41
41
|
</div>
|
42
|
-
|
43
|
-
<pre class="hidden">{{component.attributes.search = ((component.attributes.visible_content | textContentFromHTML) + ' ' + (component.attributes.collapsed_content | textContentFromHTML))}}</pre>
|
44
42
|
</script>
|
@@ -1,21 +1,21 @@
|
|
1
1
|
<%
|
2
|
-
|
3
|
-
|
4
|
-
|
2
|
+
searchable_visible_content = component[:attributes][:searchable_visible_content].to_s
|
3
|
+
searchable_collapsed_content = component[:attributes][:searchable_collapsed_content].to_s
|
4
|
+
searchable_open_label = component[:attributes][:searchable_open_label].to_s
|
5
5
|
open_label_position = component[:attributes][:open_label_position].to_s
|
6
6
|
%>
|
7
7
|
|
8
8
|
<aside class="<%= promethee_class_for component %> aside">
|
9
|
-
<%=
|
9
|
+
<%= searchable_visible_content.html_safe %>
|
10
10
|
|
11
|
-
<% if
|
11
|
+
<% if searchable_collapsed_content.present? %>
|
12
12
|
|
13
13
|
<div class="collapse aside__collapse" id="aside-collapse-<%= component[:id] %>">
|
14
|
-
<%=
|
14
|
+
<%= searchable_collapsed_content.html_safe %>
|
15
15
|
</div>
|
16
16
|
|
17
17
|
<div class="aside__button">
|
18
|
-
<a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" class="aside__button--<%= open_label_position %>"><%=
|
18
|
+
<a href="#aside-collapse-<%= component[:id] %>" data-toggle="collapse" class="aside__button--<%= open_label_position %>"><%= searchable_open_label %></a>
|
19
19
|
</div>
|
20
20
|
|
21
21
|
<% end %>
|
@@ -6,7 +6,6 @@
|
|
6
6
|
<ng-include src="'promethee/move/component'"></ng-include>
|
7
7
|
</div>
|
8
8
|
<div class="clearfix" ng-if="$index%itemsPerLine === itemsPerLine - 1" ng-repeat-end></div>
|
9
|
-
<pre class="hidden">{{component.attributes.search = concatenateChildrenSearch(component)}}</pre>
|
10
9
|
</div>
|
11
10
|
</div>
|
12
11
|
</div>
|
@@ -9,14 +9,6 @@
|
|
9
9
|
<%= render 'promethee/edit/move.remove' %>
|
10
10
|
<div class="header">Column {{$index + 1}}</div>
|
11
11
|
<ng-include src="'promethee/move/components'"></ng-include>
|
12
|
-
<pre class="hidden">{{component.attributes.search = concatenateChildrenSearch(component)}}</pre>
|
13
|
-
<div
|
14
|
-
droppable
|
15
|
-
class=" <%= promethee_bem_classes 'promethee-edit__move__droppable', '--row', '--inside-column' %>"
|
16
|
-
data-index="{{$index+1}}"
|
17
|
-
data-id="{{parent_id}}"
|
18
|
-
data-type="{{parent_type}}"
|
19
|
-
>
|
20
12
|
</div>
|
21
13
|
</div>
|
22
14
|
</div>
|
@@ -3,16 +3,16 @@
|
|
3
3
|
|
4
4
|
<div class="form-group">
|
5
5
|
<label class="label-control">Surtitle</label>
|
6
|
-
<input ng-model="promethee.inspected.attributes.
|
6
|
+
<input ng-model="promethee.inspected.attributes.searchable_surtitle" class="form-control" type="text"/>
|
7
7
|
</div>
|
8
8
|
|
9
9
|
<div class="form-group">
|
10
10
|
<label class="label-control">Title</label>
|
11
|
-
<input ng-model="promethee.inspected.attributes.
|
11
|
+
<input ng-model="promethee.inspected.attributes.searchable_title" class="form-control" type="text"/>
|
12
12
|
</div>
|
13
13
|
|
14
14
|
<div class="form-group">
|
15
15
|
<label class="label-control">Subtitle</label>
|
16
|
-
<input ng-model="promethee.inspected.attributes.
|
16
|
+
<input ng-model="promethee.inspected.attributes.searchable_subtitle" class="form-control" type="text"/>
|
17
17
|
</div>
|
18
18
|
</script>
|
@@ -4,11 +4,10 @@
|
|
4
4
|
promethee-edit__cover-content"
|
5
5
|
style="background-image:url('{{ component.attributes.image.id ? '/promethee/blob/' + component.attributes.image.id : '' }}')">
|
6
6
|
<hgroup>
|
7
|
-
<h2 class="surtitle">{{component.attributes.
|
8
|
-
<h1>{{component.attributes.
|
9
|
-
<h2 class="subtitle">{{component.attributes.
|
7
|
+
<h2 class="surtitle">{{component.attributes.searchable_surtitle}}</h2>
|
8
|
+
<h1>{{component.attributes.searchable_title}}</h1>
|
9
|
+
<h2 class="subtitle">{{component.attributes.searchable_subtitle}}</h2>
|
10
10
|
</hgroup>
|
11
|
-
<pre class="hidden">{{component.attributes.search = (component.attributes.title + ' ' + component.attributes.surtitle + ' ' + component.attributes.subtitle)}}</pre>
|
12
11
|
</div>
|
13
12
|
</div>
|
14
13
|
</div>
|
@@ -1,5 +1,5 @@
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/cover/localize">
|
2
|
-
<div ng-show="component.master.attributes.
|
2
|
+
<div ng-show="component.master.attributes.searchable_surtitle || component.master.attributes.searchable_title || component.master.attributes.searchable_subtitle">
|
3
3
|
<hr>
|
4
4
|
|
5
5
|
<div class="row">
|
@@ -8,46 +8,43 @@
|
|
8
8
|
</div>
|
9
9
|
</div>
|
10
10
|
|
11
|
-
<div class="row" ng-show="component.master.attributes.
|
11
|
+
<div class="row" ng-show="component.master.attributes.searchable_surtitle">
|
12
12
|
<div class="col-md-6">
|
13
13
|
<b>Surtitle</b>
|
14
|
-
<p>{{component.master.attributes.
|
14
|
+
<p>{{component.master.attributes.searchable_surtitle}}</p>
|
15
15
|
</div>
|
16
16
|
<div class="col-md-6">
|
17
17
|
<div class="form-group">
|
18
18
|
<label class="label-control">Surtitle</label>
|
19
|
-
<input class="form-control" ng-model="component.attributes.
|
19
|
+
<input class="form-control" ng-model="component.attributes.searchable_surtitle" type="text">
|
20
20
|
</div>
|
21
21
|
</div>
|
22
22
|
</div>
|
23
23
|
|
24
|
-
<div class="row" ng-show="component.master.attributes.
|
24
|
+
<div class="row" ng-show="component.master.attributes.searchable_title">
|
25
25
|
<div class="col-md-6">
|
26
26
|
<b>Title</b>
|
27
|
-
<p>{{component.master.attributes.
|
27
|
+
<p>{{component.master.attributes.searchable_title}}</p>
|
28
28
|
</div>
|
29
29
|
<div class="col-md-6">
|
30
30
|
<div class="form-group">
|
31
31
|
<label class="label-control">Title</label>
|
32
|
-
<input class="form-control" ng-model="component.attributes.
|
32
|
+
<input class="form-control" ng-model="component.attributes.searchable_title" type="text">
|
33
33
|
</div>
|
34
34
|
</div>
|
35
35
|
</div>
|
36
36
|
|
37
|
-
<div class="row" ng-show="component.master.attributes.
|
37
|
+
<div class="row" ng-show="component.master.attributes.searchable_subtitle">
|
38
38
|
<div class="col-md-6">
|
39
39
|
<b>Subtitle</b>
|
40
|
-
<p>{{component.master.attributes.
|
40
|
+
<p>{{component.master.attributes.searchable_subtitle}}</p>
|
41
41
|
</div>
|
42
42
|
<div class="col-md-6">
|
43
43
|
<div class="form-group">
|
44
44
|
<label class="label-control">Subtitle</label>
|
45
|
-
<input class="form-control" ng-model="component.attributes.
|
45
|
+
<input class="form-control" ng-model="component.attributes.searchable_subtitle" type="text">
|
46
46
|
</div>
|
47
47
|
</div>
|
48
48
|
</div>
|
49
49
|
</div>
|
50
|
-
|
51
|
-
<pre class="hidden">{{component.attributes.search = (component.attributes.title + ' ' + component.attributes.surtitle + ' ' + component.attributes.subtitle)}}</pre>
|
52
|
-
|
53
50
|
</script>
|