Skip to content

Commit

Permalink
Merge pull request #33923 from dimagi/jls/indent-ko
Browse files Browse the repository at this point in the history
Added indentation for ko if statements
  • Loading branch information
orangejenny authored Dec 28, 2023
2 parents 2c75951 + 2ecb0be commit 9919492
Showing 1 changed file with 63 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,18 @@
<th class="col-sm-1"></th>
<th class="col-sm-2">{% trans "Property" %}</th>
<!-- ko if: showCaseTileMappingColumn() -->
<th class="col-sm-2">{% trans "Display Text" %}</th>
<th class="col-sm-3">{% trans "Format" %}</th>
<th class="col-sm-2">{% trans "Case Tile Mapping" %}</th>
<th class="col-sm-2">{% trans "Display Text" %}</th>
<th class="col-sm-3">{% trans "Format" %}</th>
<th class="col-sm-2">{% trans "Case Tile Mapping" %}</th>
<!--/ko-->
<!-- ko ifnot: showCaseTileMappingColumn() -->
<th class="col-sm-2">{% trans "Display Text" %}</th>
<th class="col-sm-2">{% trans "Format" %}</th>
<th class="col-sm-2">{% trans "Display Text" %}</th>
<th class="col-sm-2">{% trans "Format" %}</th>
<!-- /ko -->
<!-- ko if: showCaseTileConfigColumns() -->
<th class="col-sm-1">{% trans "Row/Column" %}</th>
<th class="col-sm-1">{% trans "Width/Height" %}</th>
<th class="col-sm-1">{% trans "Style" %}</th>
<th class="col-sm-1">{% trans "Row/Column" %}</th>
<th class="col-sm-1">{% trans "Width/Height" %}</th>
<th class="col-sm-1">{% trans "Style" %}</th>
<!-- /ko -->
<th class="col-sm-1"></th>
</tr>
Expand All @@ -45,65 +45,65 @@
"></i>
</td>
<!--ko if: !isTab -->
<td class="col-sm-2" data-bind="css: {'has-error': showWarning}">
<div data-bind="html: hqImport('app_manager/js/details/utils').getFieldHtml(field.val()), visible: !field.edit"></div>
<div data-bind="jqueryElement: field.ui, visible: field.edit"></div>
<!-- ko if: useXpathExpression -->
<div class="label label-default">{% trans "Calculated Property" %}&nbsp;(#<span data-bind="text: $index() + 1"></span>)</div>
<!-- /ko -->
<div data-bind="visible: showWarning">
<span class="help-block" data-bind="
text: hqImport('app_manager/js/details/utils').fieldFormatWarningMessage
">
</span>
</div>
</td>
<td data-bind="jqueryElement: header.ui, css: {
'col-sm-2': $parent.showCaseTileMappingColumn(),
'col-sm-2': !$parent.showCaseTileMappingColumn(),
}"></td>
<td data-bind="jqueryElement: $format, css: {
'col-sm-3': $parent.showCaseTileMappingColumn(),
'col-sm-2': !$parent.showCaseTileMappingColumn(),
}"></td>
<!-- ko if: $parent.showCaseTileConfigColumns() -->
<td>
<select class="form-control" data-bind="value: tileRowStart, options: tileRowOptions, visible: coordinatesVisible"></select>
<select class="form-control" data-bind="value: tileColumnStart, options: tileColumnOptions, visible: coordinatesVisible"></select>
</td>
<td>
<select class="form-control" data-bind="value: tileWidth, options: tileWidthOptions, visible: coordinatesVisible"></select>
<select class="form-control" data-bind="value: tileHeight, options: tileHeightOptions, visible: coordinatesVisible"></select>
</td>
<td>
<button class="btn btn-default" data-bind="click: openStyleModal, visible: coordinatesVisible">{% trans "Edit" %}</button>
</td>
<!--/ko-->
<td class="col-sm-2" data-bind="css: {'has-error': showWarning}">
<div data-bind="html: hqImport('app_manager/js/details/utils').getFieldHtml(field.val()), visible: !field.edit"></div>
<div data-bind="jqueryElement: field.ui, visible: field.edit"></div>
<!-- ko if: useXpathExpression -->
<div class="label label-default">{% trans "Calculated Property" %}&nbsp;(#<span data-bind="text: $index() + 1"></span>)</div>
<!-- /ko -->
<div data-bind="visible: showWarning">
<span class="help-block" data-bind="
text: hqImport('app_manager/js/details/utils').fieldFormatWarningMessage
">
</span>
</div>
</td>
<td data-bind="jqueryElement: header.ui, css: {
'col-sm-2': $parent.showCaseTileMappingColumn(),
'col-sm-2': !$parent.showCaseTileMappingColumn(),
}"></td>
<td data-bind="jqueryElement: $format, css: {
'col-sm-3': $parent.showCaseTileMappingColumn(),
'col-sm-2': !$parent.showCaseTileMappingColumn(),
}"></td>
<!-- ko if: $parent.showCaseTileConfigColumns() -->
<td>
<select class="form-control" data-bind="value: tileRowStart, options: tileRowOptions, visible: coordinatesVisible"></select>
<select class="form-control" data-bind="value: tileColumnStart, options: tileColumnOptions, visible: coordinatesVisible"></select>
</td>
<td>
<select class="form-control" data-bind="value: tileWidth, options: tileWidthOptions, visible: coordinatesVisible"></select>
<select class="form-control" data-bind="value: tileHeight, options: tileHeightOptions, visible: coordinatesVisible"></select>
</td>
<td>
<button class="btn btn-default" data-bind="click: openStyleModal, visible: coordinatesVisible">{% trans "Edit" %}</button>
</td>
<!--/ko-->
<!--/ko-->
<!--ko if: isTab -->
<!--ko if: $data.hasNodeset -->
<td class="col-sm-3" data-bind="jqueryElement: header.ui"></td>
<td class="col-sm-3 form-group">
<div data-bind="jqueryElement: relevant.ui"></div>
</td>
<td class="col-sm-3 form-group" data-bind="css: {'has-error': showWarning}">
<div data-bind="jqueryElement: nodeset_extra.ui"></div>
<span class="help-block"
data-bind="text: 'Please enter an expression.', visible: showWarning"></span>
</td>
<!--/ko-->
<!--ko ifnot: $data.hasNodeset -->
<td class="col-sm-3" data-bind="jqueryElement: header.ui"></td>
<td class="col-sm-3 form-group">
<div data-bind="jqueryElement: relevant.ui"></div>
</td>
<td class="col-sm-3 form-group" data-bind="css: {'has-error': showWarning}"></td>
<!--/ko-->
<!--ko if: $data.hasNodeset -->
<td class="col-sm-3" data-bind="jqueryElement: header.ui"></td>
<td class="col-sm-3 form-group">
<div data-bind="jqueryElement: relevant.ui"></div>
</td>
<td class="col-sm-3 form-group" data-bind="css: {'has-error': showWarning}">
<div data-bind="jqueryElement: nodeset_extra.ui"></div>
<span class="help-block"
data-bind="text: 'Please enter an expression.', visible: showWarning"></span>
</td>
<!--/ko-->
<!--ko ifnot: $data.hasNodeset -->
<td class="col-sm-3" data-bind="jqueryElement: header.ui"></td>
<td class="col-sm-3 form-group">
<div data-bind="jqueryElement: relevant.ui"></div>
</td>
<td class="col-sm-3 form-group" data-bind="css: {'has-error': showWarning}"></td>
<!--/ko-->
<!--/ko-->
<!-- ko if: $parent.showCaseTileMappingColumn() && $parent.caseTileFieldsForTemplate() -->
<td class="col-sm-2">
<select class="form-control" data-bind="value: case_tile_field, options: $parent.caseTileFieldsForTemplate"></select>
</td>
<td class="col-sm-2">
<select class="form-control" data-bind="value: case_tile_field, options: $parent.caseTileFieldsForTemplate"></select>
</td>
<!-- /ko -->
<td class="col-sm-1 text-center">
<i style="cursor: pointer;"
Expand Down

0 comments on commit 9919492

Please sign in to comment.