Move fieldset groups config to advanced settings

This commit is contained in:
Kenn Jacobsen
2015-10-05 09:42:31 +02:00
parent 275b5d2207
commit 490de7b3ff
2 changed files with 36 additions and 32 deletions
+20 -16
View File
@@ -386,22 +386,6 @@
}
}
.archetypeFieldsetGroups {
padding: 0 10px;
margin-bottom: 20px;
ul {
padding: 0;
margin: 0;
li {
margin-bottom: 10px;
input {
vertical-align: middle;
}
}
}
}
.archetypeAdvancedOptions {
margin-top: 15px;
div {
@@ -410,6 +394,26 @@
label {
width: 400px;
}
.archetypeFieldsetGroups {
padding: 0 10px;
margin-bottom: 20px;
ul {
padding: 0;
margin: 0;
li {
margin-bottom: 10px;
label {
width: 120px;
}
input {
vertical-align: middle;
width: 240px;
}
}
}
}
}
.archetypeMaxFieldsets{
+16 -16
View File
@@ -80,22 +80,6 @@
</div>
</li>
</ul>
<div class="archetypeFieldsetGroups">
<h5><archetype-localize key="fieldsetGroups">Fieldset groups</archetype-localize></h5>
<p><archetype-localize key="fieldsetGroupsDescription">If you have a lot of fieldsets to choose from, you may want to consider grouping them in the fieldset picker. Once you have created your groups here, a group picker will be displayed in the fieldset editor and you can assign your fieldsets to their respective groups.</archetype-localize></p>
<ul ui-sortable="sortableOptions" ng-model="archetypeConfigRenderModel.fieldsetGroups">
<li ng-repeat="fieldsetGroup in archetypeConfigRenderModel.fieldsetGroups">
<div>
<label for="archetypeFieldsetGroupName_{{$index}}"><archetype-localize key="fieldsetGroupName">Name</archetype-localize></label>
<input id="archetypeFieldsetGroupName_{{$index}}" type="text" ng-model="fieldsetGroup.name" />
<i class="icon icon-delete" ng-click="removeFieldsetGroup($index)"></i>
<i class="icon icon-navigation handle" ng-show="archetypeConfigRenderModel.fieldsetGroups.length > 1"></i>
</div>
</li>
</ul>
<label ng-click="addFieldsetGroup($index)"><i class="icon icon-add"></i> <archetype-localize key="addFieldsetGroup">Add group</archetype-localize></label>
</div>
<div class="archetypeOptions">
<div>
@@ -105,6 +89,22 @@
</div>
<div class="archetypeAdvancedOptions" ng-show="archetypeConfigRenderModel.showAdvancedOptions">
<div class="archetypeFieldsetGroups">
<h4><archetype-localize key="fieldsetGroups">Fieldset groups</archetype-localize></h4>
<p><archetype-localize key="fieldsetGroupsDescription">If you have a lot of fieldsets to choose from, you may want to consider grouping them in the fieldset picker. Once you have created your groups here, a group picker will be displayed in the fieldset editor and you can assign your fieldsets to their respective groups.</archetype-localize></p>
<ul ui-sortable="sortableOptions" ng-model="archetypeConfigRenderModel.fieldsetGroups">
<li ng-repeat="fieldsetGroup in archetypeConfigRenderModel.fieldsetGroups">
<div>
<label for="archetypeFieldsetGroupName_{{$index}}"><archetype-localize key="fieldsetGroupName">Name</archetype-localize></label>
<input id="archetypeFieldsetGroupName_{{$index}}" type="text" ng-model="fieldsetGroup.name" />
<i class="icon icon-delete" ng-click="removeFieldsetGroup($index)"></i>
<i class="icon icon-navigation handle" ng-show="archetypeConfigRenderModel.fieldsetGroups.length > 1"></i>
</div>
</li>
</ul>
<label ng-click="addFieldsetGroup($index)"><i class="icon icon-add"></i> <archetype-localize key="addFieldsetGroup">Add group</archetype-localize></label>
<hr/>
</div>
<div>
<label for="archetypeAdvancedOptionsStartWithAddButton"><archetype-localize key="startWithAddButton">Start With Add Button?</archetype-localize><small><archetype-localize key="startWithAddButtonDescription">Empty property shows an add button instead of providing a default fieldset.</archetype-localize></small></label>
<input type="checkbox" id="archetypeAdvancedOptionsStartWithAddButton" ng-model="archetypeConfigRenderModel.startWithAddButton"/>