promethee 1.11.26 → 1.11.27

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da0b276b93e942df0bc7eea0c8ca7a2f605a1cd4e6d55165cd753621018d7f2c
4
- data.tar.gz: ba7c035998693f4fe0d3292754a72c33ae2e05cd2d8e494d0e724618ca56ffa1
3
+ metadata.gz: 3165a0faf3be3683a4c0a938764619afbc67e8653b87d55ae08824a6865e6033
4
+ data.tar.gz: 99ca6647e7f4a4d9e3ce10a721caa5feba8e97726c045fb978ed954e6c919880
5
5
  SHA512:
6
- metadata.gz: 76dc4d4e41e80b1ee233ed5ff1130b814ed96454890bf15d506f848f11311e2aa7c151ca2a2bf702122667a8ae21deaac9e8221672611279092e44734f873c27
7
- data.tar.gz: cdee09b98ed1029ff41e105dd29197ac551cddfb60b7584e291a0ca0d174bc071102b9ad6ac2e4938b6ca0cb297ca2121dfa2b8dc721db354b3548d656781713
6
+ metadata.gz: f0889738a33357b07965c768e409634822f368c1720917706399ef4bae1b7b74a53b9592f0236da609e60ef85bac9287185b911cf46078d7b3a210d0adb5bee6
7
+ data.tar.gz: 65104781ab8583d978691c807bfe3b84d2b60b8c0f4afc88571951cd08b2c5705e57e2126ee7ad7fe44fd9843b3889b79855c834da03347b38d27a251d01c02f
@@ -1,4 +1,7 @@
1
1
  <%
2
+ @disable_page_attributes = false
3
+ @disable_page_attributes ||= disable_page_attributes
4
+
2
5
  promethee_data = Promethee::Data::Master.new master_data
3
6
  preview_url ||= promethee_preview_path
4
7
  back_url ||= nil
@@ -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
- <div class="form-group">
3
- <label class="label-control">Title</label>
4
- <input class="form-control" ng-model="promethee.inspected.attributes.searchable_title">
5
- </div>
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
- <div class="form-group">
8
- <label class="label-control">Description</label>
9
- <textarea class="form-control" ng-model="promethee.inspected.attributes.searchable_description"></textarea>
10
- </div>
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
- <div class="row">
5
- <div class="col-md-6">
6
- <b>Page title</b>
7
- <p>{{master.attributes.searchable_title}}</p><br>
8
- </div>
9
- <div class="col-md-6">
10
- <div class="form-group">
11
- <label class="label-control">Page title</label>
12
- <input class="form-control" ng-model="component.attributes.searchable_title" type="text">
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
- <div class="row" ng-show="master.attributes.searchable_description">
18
- <div class="col-md-6">
19
- <div>
20
- <b>Page description</b>
21
- <p>{{master.attributes.searchable_description}}</p>
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
- </div>
24
- <div class="col-md-6">
25
- <div class="form-group">
26
- <label class="label-control">Page description</label>
27
- <textarea class="form-control" ng-model="component.attributes.searchable_description"></textarea>
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
- </div>
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
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.11.26'
3
+ VERSION = '1.11.27'
4
4
  end
5
5
  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.26
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-01-17 00:00:00.000000000 Z
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
- rubyforge_project:
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