promethee 1.11.12 → 1.11.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/views/promethee/components/faq_item/_edit.define.html.erb +2 -1
- data/app/views/promethee/components/faq_item/_edit.inspect.html.erb +5 -0
- data/app/views/promethee/components/faq_item/_edit.move.html.erb +1 -1
- data/app/views/promethee/components/faq_item/_show.html.erb +21 -18
- data/lib/promethee/rails/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0ea9f31873a2f1c6582ef188bc4ce0c70dedaea43e455e8e975fcfe271535e50
|
|
4
|
+
data.tar.gz: 5cc5af9df175d9a16cd03f50afe1afdd9914976e728ef8ed80c627af94928eb5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2404427cfcb2cf8b30654d072605f9c9cc53814828aeed6c897e57bc6d4a5fe5724088125eb073facc356496ae42d477e275fb67f7bfcd88af4a16c09cc78a72
|
|
7
|
+
data.tar.gz: 9cebfcf878829b76133a8bb8fb68d5d1d83f8ca40ec1ccd715620bc9b2b97e10f28229e7f8715212fa5f649804ee9f151e51cee74d92b20426418a4cc4b09446
|
|
@@ -10,4 +10,9 @@
|
|
|
10
10
|
<label class="label-control">Body</label>
|
|
11
11
|
<summernote config="summernoteConfig" ng-model="promethee.inspected.attributes.searchable_body"></summernote>
|
|
12
12
|
</div>
|
|
13
|
+
|
|
14
|
+
<div class="form-group">
|
|
15
|
+
<input ng-model="promethee.inspected.attributes.special_question" type="checkbox" />
|
|
16
|
+
<label class="label-control"> Special question</label>
|
|
17
|
+
</div>
|
|
13
18
|
</script>
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/faq_item/edit/move">
|
|
2
2
|
<%= render 'promethee/edit/move.header', type: 'faq_item' %>
|
|
3
3
|
<div class="header">FAQ Item</div>
|
|
4
|
-
<div class="row">
|
|
4
|
+
<div class="row promethee-edit__faq_item__content{{ component.attributes.special_question ? '--special' : '' }}">
|
|
5
5
|
<div class="col-9 col-xs-9">
|
|
6
6
|
<h4>{{component.attributes.searchable_title}}</h4>
|
|
7
7
|
<div ng-bind-html="component.attributes.searchable_body | htmlSafe"></div>
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<%
|
|
2
2
|
title = component[:attributes][:searchable_title].to_s
|
|
3
3
|
body = component[:attributes][:searchable_body].to_s
|
|
4
|
+
special_question = component[:attributes][:special_question]
|
|
4
5
|
|
|
5
6
|
image = component[:attributes][:image]
|
|
6
7
|
if image && image[:id]
|
|
@@ -8,24 +9,26 @@ if image && image[:id]
|
|
|
8
9
|
end
|
|
9
10
|
%>
|
|
10
11
|
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
<div class="<%= promethee_class_for component %> <%= 'promethee__component__faq_item--special' if special_question %>">
|
|
13
|
+
<h4 data-toggle="collapse"
|
|
14
|
+
data-target="#collapse-faq-<%= component[:id] %>"
|
|
15
|
+
aria-expanded="false"
|
|
16
|
+
aria-controls="collapse-faq-<%= component[:id] %>">
|
|
17
|
+
<%= title %>
|
|
18
|
+
</h4>
|
|
17
19
|
|
|
18
|
-
<div class="
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
20
|
+
<div class="collapse" id="collapse-faq-<%= component[:id] %>">
|
|
21
|
+
<% if image_blob %>
|
|
22
|
+
<div class="row ">
|
|
23
|
+
<div class="col-9 col-xs-9">
|
|
24
|
+
<%= body.html_safe %>
|
|
25
|
+
</div>
|
|
26
|
+
<div class="col-3 col-xs-3">
|
|
27
|
+
<%= render 'promethee/show/image.srcset', blob: image_blob, alt: '', caption: '' %>
|
|
28
|
+
</div>
|
|
23
29
|
</div>
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
<% else %>
|
|
29
|
-
<%= body.html_safe %>
|
|
30
|
-
<% end %>
|
|
30
|
+
<% else %>
|
|
31
|
+
<%= body.html_safe %>
|
|
32
|
+
<% end %>
|
|
33
|
+
</div>
|
|
31
34
|
</div>
|