promethee 1.11.26 → 1.11.27
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/_edit.html.erb +3 -0
- data/app/views/promethee/_localize.html.erb +2 -0
- data/app/views/promethee/components/page/_edit.inspect.html.erb +10 -8
- data/app/views/promethee/components/page/_localize.html.erb +24 -22
- data/lib/promethee/core_ext/tags.rb +4 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3165a0faf3be3683a4c0a938764619afbc67e8653b87d55ae08824a6865e6033
|
|
4
|
+
data.tar.gz: 99ca6647e7f4a4d9e3ce10a721caa5feba8e97726c045fb978ed954e6c919880
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f0889738a33357b07965c768e409634822f368c1720917706399ef4bae1b7b74a53b9592f0236da609e60ef85bac9287185b911cf46078d7b3a210d0adb5bee6
|
|
7
|
+
data.tar.gz: 65104781ab8583d978691c807bfe3b84d2b60b8c0f4afc88571951cd08b2c5705e57e2126ee7ad7fe44fd9843b3889b79855c834da03347b38d27a251d01c02f
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
<%
|
|
2
|
+
@disable_page_attributes = false
|
|
3
|
+
@disable_page_attributes ||= disable_page_attributes
|
|
2
4
|
promethee_data = Promethee::Data::Localization.new localization_data, master_data
|
|
3
5
|
promethee_masters_multiple = Promethee::Data::MastersMultiple.new master_data, other_data
|
|
4
6
|
%>
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/page/edit/inspect">
|
|
2
|
-
|
|
3
|
-
<
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
<% unless @disable_page_attributes %>
|
|
3
|
+
<div class="form-group">
|
|
4
|
+
<label class="label-control">Title</label>
|
|
5
|
+
<input class="form-control" ng-model="promethee.inspected.attributes.searchable_title">
|
|
6
|
+
</div>
|
|
6
7
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
<div class="form-group">
|
|
9
|
+
<label class="label-control">Description</label>
|
|
10
|
+
<textarea class="form-control" ng-model="promethee.inspected.attributes.searchable_description"></textarea>
|
|
11
|
+
</div>
|
|
12
|
+
<% end %>
|
|
11
13
|
|
|
12
14
|
<%= render 'promethee/edit/inspect.advanced' %>
|
|
13
15
|
<promethee-uploader ng-model="promethee.inspected.attributes.thumbnail" label="Thumbnail" limits="'.jpg,.jpeg,.png,.gif'"></promethee-uploader>
|
|
@@ -1,31 +1,33 @@
|
|
|
1
1
|
<script type="text/ng-template" id="promethee/components/page/localize">
|
|
2
|
+
<% unless @disable_page_attributes %>
|
|
2
3
|
<hr>
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
4
|
+
|
|
5
|
+
<div class="row">
|
|
6
|
+
<div class="col-md-6">
|
|
7
|
+
<b>Page title</b>
|
|
8
|
+
<p>{{master.attributes.searchable_title}}</p><br>
|
|
9
|
+
</div>
|
|
10
|
+
<div class="col-md-6">
|
|
11
|
+
<div class="form-group">
|
|
12
|
+
<label class="label-control">Page title</label>
|
|
13
|
+
<input class="form-control" ng-model="component.attributes.searchable_title" type="text">
|
|
14
|
+
</div>
|
|
13
15
|
</div>
|
|
14
16
|
</div>
|
|
15
|
-
</div>
|
|
16
17
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
<div class="row" ng-show="master.attributes.searchable_description">
|
|
19
|
+
<div class="col-md-6">
|
|
20
|
+
<div>
|
|
21
|
+
<b>Page description</b>
|
|
22
|
+
<p>{{master.attributes.searchable_description}}</p>
|
|
23
|
+
</div>
|
|
22
24
|
</div>
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
25
|
+
<div class="col-md-6">
|
|
26
|
+
<div class="form-group">
|
|
27
|
+
<label class="label-control">Page description</label>
|
|
28
|
+
<textarea class="form-control" ng-model="component.attributes.searchable_description"></textarea>
|
|
29
|
+
</div>
|
|
28
30
|
</div>
|
|
29
31
|
</div>
|
|
30
|
-
|
|
32
|
+
<% end %>
|
|
31
33
|
</script>
|
|
@@ -8,6 +8,7 @@ module ActionView
|
|
|
8
8
|
def render
|
|
9
9
|
@options[:master_data] = object.send @method_name unless object.nil?
|
|
10
10
|
@options[:master_data] = @options[:value] if @options.key?(:value)
|
|
11
|
+
@options[:disable_page_attributes] ||= false
|
|
11
12
|
ApplicationController.renderer.render partial: 'promethee/edit', locals: @options
|
|
12
13
|
end
|
|
13
14
|
end
|
|
@@ -16,13 +17,15 @@ module ActionView
|
|
|
16
17
|
def render
|
|
17
18
|
localization_data = object.send @method_name unless object.nil?
|
|
18
19
|
localization_data = @options[:value] if @options.include? :value
|
|
20
|
+
@options[:disable_page_attributes] ||= false
|
|
19
21
|
ApplicationController.renderer.render partial: 'promethee/localize',
|
|
20
22
|
locals: {
|
|
21
23
|
object_name: @object_name,
|
|
22
24
|
method_name: @method_name,
|
|
23
25
|
localization_data: localization_data,
|
|
24
26
|
master_data: @options[:master],
|
|
25
|
-
other_data: @options[:other]
|
|
27
|
+
other_data: @options[:other],
|
|
28
|
+
disable_page_attributes: @options[:disable_page_attributes]
|
|
26
29
|
}
|
|
27
30
|
end
|
|
28
31
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: promethee
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.11.
|
|
4
|
+
version: 1.11.27
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sébastien Gaya
|
|
@@ -14,7 +14,7 @@ authors:
|
|
|
14
14
|
autorequire:
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
|
-
date: 2019-
|
|
17
|
+
date: 2019-03-21 00:00:00.000000000 Z
|
|
18
18
|
dependencies:
|
|
19
19
|
- !ruby/object:Gem::Dependency
|
|
20
20
|
name: rails
|
|
@@ -445,8 +445,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
445
445
|
- !ruby/object:Gem::Version
|
|
446
446
|
version: '0'
|
|
447
447
|
requirements: []
|
|
448
|
-
|
|
449
|
-
rubygems_version: 2.7.6
|
|
448
|
+
rubygems_version: 3.0.1
|
|
450
449
|
signing_key:
|
|
451
450
|
specification_version: 4
|
|
452
451
|
summary: Bring fire to your page
|