Skip to content

Commit b452acf

Browse files
committed
Changed element from radio to checkbox for boolean type options
1 parent ad94d86 commit b452acf

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

quick-start/src/main/resources/static/top/modal/loadDataModal.html

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,9 @@ <h4 class="modal-title" id="myModalLabel">Load Data</h4>
3737
<uib-accordion close-others="true">
3838
<uib-accordion-group heading="{{group.category}}" ng-repeat="group in groups" ng-show="showBasedOnCategoryAndInputFileType(group.category,loadDataForm.inputFileType)">
3939
<div class="form-group" ng-repeat="setting in group.settings">
40-
<label class="control-label" for="{{setting['Field']}}" title="{{setting['Description']}}">{{setting['Label']}}</label><br/>
40+
<input type="checkbox" name="{{setting['Field']}}" ng-if="setting['Type'] === 'boolean'" ng-model="setting['Value']" value="true" ng-change="updateMlcpCommand()" ng-focus="hideInputPathTreeBrowser()">
41+
<label class="control-label" for="{{setting['Field']}}" title="{{setting['Description']}}">{{setting['Label']}}</label><br ng-if="setting['Type'] !== 'boolean'"/>
4142
<input type="text" class="form-control" name="{{setting['Field']}}" ng-if="isText(setting['Type'])" ng-model="setting['Value']" placeholder="{{setting['Placeholder Value'] ? setting['Placeholder Value'] : ''}}" ng-change="updateMlcpCommand()" ng-focus="hideInputPathTreeBrowser()"/>
42-
<label class="radio-custom" ng-if="setting['Type'] === 'boolean'">
43-
<input type="radio" name="{{setting['Field']}}" ng-model="setting['Value']" value="true" ng-change="updateMlcpCommand()" ng-focus="hideInputPathTreeBrowser()">
44-
True
45-
</label>
46-
<label class="radio-custom" ng-if="setting['Type'] === 'boolean'">
47-
<input type="radio" name="{{setting['Field']}}" ng-model="setting['Value']" value="false" ng-change="updateMlcpCommand()" ng-focus="hideInputPathTreeBrowser()">
48-
False
49-
</label>
5043
<select class="form-control" name="{{setting['Field']}}" ng-if="setting['Type'] === 'type'" ng-model="setting['Value']" ng-change="updateMlcpCommand()" ng-focus="hideInputPathTreeBrowser()">
5144
<option ng-repeat="option in setting['Options']" value="{{option.value}}">{{option.label}}</option>
5245
</select>

0 commit comments

Comments
 (0)