app/views/promethee/components/slider/_localize.html.erb in promethee-1.4.9 vs app/views/promethee/components/slider/_localize.html.erb in promethee-1.4.10
- old
+ new
@@ -1,13 +1,16 @@
<script type="text/ng-template" id="promethee/components/slider/localize">
- <div ng-repeat="key, content in component.master.attributes.contents">
+ <div ng-show="(component.master.contents | json) !== '{}'">
<hr>
- <div class="row">
- <div class="col-md-6">
- <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.contents[key] | htmlSafe"></div>
+
+ <div ng-repeat="key, content in component.master.attributes.contents">
+ <div class="row">
+ <div class="col-md-6">
+ <div class="promethee-edit__wrapper" ng-bind-html="component.master.attributes.contents[key] | htmlSafe"></div>
+ </div>
+ <div class="col-md-6">
+ <summernote config="options" ng-model="component.attributes.contents[key]"></summernote>
+ </div>
</div>
- <div class="col-md-6" ng-prevent-drag="true">
- <summernote config="options" ng-model="component.attributes.contents[key]"></summernote>
- </div>
</div>
- </div>
+ </script>
</script>