Better looking checkboxes in api explorer
authorColeman Watts <coleman@civicrm.org>
Wed, 22 Jan 2020 16:11:37 +0000 (11:11 -0500)
committerColeman Watts <coleman@civicrm.org>
Fri, 24 Jan 2020 14:07:07 +0000 (09:07 -0500)
ang/api4Explorer/Explorer.html

index 462581267ba2fc3e771980c3390a357f999bbea3..bd4b09636aa16c692446916531e2427aa645deb1 100644 (file)
         </div>
         <div class="panel-body">
           <div class="api4-input form-inline">
-            <div class="form-control" ng-mouseenter="help(name, param)" ng-mouseleave="help()" ng-class="{'api4-option-selected': params[name]}" ng-repeat="(name, param) in availableParams" ng-if="!isSpecial(name) && param.type[0] === 'bool' && param.default !== null">
+            <label class="form-control" ng-mouseenter="help(name, param)" ng-mouseleave="help()" ng-class="{'api4-option-selected': params[name]}" ng-repeat="(name, param) in availableParams" ng-if="!isSpecial(name) && param.type[0] === 'bool' && param.default !== null">
               <input type="checkbox" id="api4-param-{{ name }}" ng-model="params[name]"/>
-              <label for="api4-param-{{ name }}">{{ name }}<span class="crm-marker" ng-if="param.required"> *</span></label>
-            </div>
+              {{ name }}<span class="crm-marker" ng-if="param.required"> *</span>
+            </label>
             <div class="form-control" ng-mouseenter="help('selectRowCount', availableParams.select)" ng-mouseleave="help()" ng-class="{'api4-option-selected': isSelectRowCount()}" ng-if="availableParams.select">
               <input type="checkbox" id="api4-param-selectRowCount" ng-checked="isSelectRowCount()" ng-click="selectRowCount()" />
               <label for="api4-param-selectRowCount">SelectRowCount</label>