parent
85139fb898
commit
1ae368c31a
@ -0,0 +1,28 @@ |
||||
<div class="type-form-conf-group" data-original-key="<%= group.key.to_s %>" data-key="<%= group.key %>" data-key-is-symbol="<%= group.key.is_a? Symbol %>"> |
||||
<div class="group-head"> |
||||
<span class="group-handle icon-toggle"></span> |
||||
<group-edit-in-place |
||||
name="<%= group.translated_key %>" |
||||
key="<%= group.key %>" |
||||
onvaluechange="groupNameChange" |
||||
onupsale="<%= EnterpriseToken.allows_to?(:edit_attribute_groups) ? '' : 'showEEOnlyHint' %>" |
||||
class="group-name"> |
||||
<%= group.translated_key %> |
||||
</group-edit-in-place> |
||||
<span class="delete-group icon-small icon-close" ng-click="deleteGroup($event)"></span> |
||||
</div> |
||||
<div class="attributes" dragula='"attributes"'> |
||||
<% attributes.each do |attribute| %> |
||||
<div class="type-form-conf-attribute" data-key="<%= attribute[:key] %>"> |
||||
<span class="attribute-handle icon-toggle"></span> |
||||
<span class="attribute-name"> |
||||
<%= attribute[:translation] %> |
||||
<% if attribute[:is_cf] %> |
||||
<span class="attribute-cf-label"><%= CustomField.model_name.human %></span> |
||||
<% end %> |
||||
</span> |
||||
<span class="delete-attribute icon-small icon-close" ng-click="deactivateAttribute($event)"></span> |
||||
</div> |
||||
<% end %> |
||||
</div> |
||||
</div> <!-- END attribute group --> |
@ -0,0 +1,24 @@ |
||||
<div class="type-form-conf-group type-form-query-group" |
||||
data-original-key="<%= group.key.to_s %>" |
||||
data-key="<%= group.key %>"> |
||||
<div class="group-head"> |
||||
<span class="group-handle icon-toggle"></span> |
||||
<group-edit-in-place |
||||
name="<%= group.translated_key %>" |
||||
key="<%= group.key %>" |
||||
onvaluechange="groupNameChange" |
||||
onupsale="<%= EnterpriseToken.allows_to?(:edit_attribute_groups) ? '' : 'showEEOnlyHint' %>" |
||||
class="group-name"> |
||||
<%= group.translated_key %> |
||||
</group-edit-in-place> |
||||
<span class="delete-group icon-small icon-close" ng-click="deleteGroup($event)"></span> |
||||
</div> |
||||
<%= content_tag :div, |
||||
class: 'type-form-query', |
||||
data: { query: JSON.dump(query) } do %> |
||||
<span ng-click="editQuery($event)"> |
||||
<%= op_icon('button--icon icon-edit') %> |
||||
<%= t('types.edit.edit_query') %> |
||||
</span> |
||||
<% end %> |
||||
</div> <!-- END query group --> |
Loading…
Reference in new issue