-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4060 from JLLeitschuh/templateFixup
Makes AllTemplates Multiline
- Loading branch information
Showing
30 changed files
with
267 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,10 @@ | ||
<div> | ||
<form name="inputForm"> | ||
<input type="INPUT_TYPE" ng-class="'colt' + col.uid" ui-grid-editor ng-model="MODEL_COL_FIELD" /> | ||
</form> | ||
<form | ||
name="inputForm"> | ||
<input | ||
type="INPUT_TYPE" | ||
ng-class="'colt' + col.uid" | ||
ui-grid-editor | ||
ng-model="MODEL_COL_FIELD" /> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
<div> | ||
<form name="inputForm"> | ||
<select ng-class="'colt' + col.uid" ui-grid-edit-dropdown ng-model="MODEL_COL_FIELD" ng-options="field[editDropdownIdLabel] as field[editDropdownValueLabel] CUSTOM_FILTERS for field in editDropdownOptionsArray"></select> | ||
<form | ||
name="inputForm"> | ||
<select | ||
ng-class="'colt' + col.uid" | ||
ui-grid-edit-dropdown | ||
ng-model="MODEL_COL_FIELD" | ||
ng-options="field[editDropdownIdLabel] as field[editDropdownValueLabel] CUSTOM_FILTERS for field in editDropdownOptionsArray"> | ||
</select> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,12 @@ | ||
<div> | ||
<form name="inputForm"> | ||
<input ng-class="'colt' + col.uid" ui-grid-edit-file-chooser type="file" id="files" name="files[]" ng-model="MODEL_COL_FIELD"/> | ||
<form | ||
name="inputForm"> | ||
<input | ||
ng-class="'colt' + col.uid" | ||
ui-grid-edit-file-chooser | ||
type="file" | ||
id="files" | ||
name="files[]" | ||
ng-model="MODEL_COL_FIELD"/> | ||
</form> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
<div ui-grid-expandable-row ng-if="expandableRow.shouldRenderExpand()" class="expandableRow" | ||
style="float:left; margin-top: 1px; margin-bottom: 1px" | ||
ng-style="{width: (grid.renderContainers.body.getCanvasWidth()) + 'px' | ||
, height: grid.options.expandableRowHeight + 'px'}"></div> | ||
<div | ||
ui-grid-expandable-row | ||
ng-if="expandableRow.shouldRenderExpand()" | ||
class="expandableRow" | ||
style="float:left; margin-top: 1px; margin-bottom: 1px" | ||
ng-style="{width: (grid.renderContainers.body.getCanvasWidth()) + 'px', height: grid.options.expandableRowHeight + 'px'}"> | ||
</div> |
16 changes: 10 additions & 6 deletions
16
src/features/expandable/templates/expandableRowHeader.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<div class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div class="ui-grid-cell-contents"> | ||
<i ng-class="{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }" | ||
ng-click="grid.api.expandable.toggleRowExpansion(row.entity)"></i> | ||
</div> | ||
</div> | ||
<div | ||
class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div | ||
class="ui-grid-cell-contents"> | ||
<i | ||
ng-class="{ 'ui-grid-icon-plus-squared' : !row.isExpanded, 'ui-grid-icon-minus-squared' : row.isExpanded }" | ||
ng-click="grid.api.expandable.toggleRowExpansion(row.entity)"> | ||
</i> | ||
</div> | ||
</div> |
18 changes: 9 additions & 9 deletions
18
src/features/expandable/templates/expandableScrollFiller.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<div ng-if="expandableRow.shouldRenderFiller()" | ||
ng-class="{scrollFiller:true, scrollFillerClass:(colContainer.name === 'body')}" | ||
ng-style="{ width: (grid.getViewportWidth()) + 'px', | ||
height: grid.options.expandableRowHeight + 2 + 'px', 'margin-left': grid.options.rowHeader.rowHeaderWidth + 'px' }" | ||
> | ||
<i class="ui-grid-icon-spin5 ui-grid-animate-spin" ng-style= | ||
"{ 'margin-top': ( grid.options.expandableRowHeight/2 - 5) + 'px', | ||
'margin-left' : ((grid.getViewportWidth() - grid.options.rowHeader.rowHeaderWidth)/2 - 5) + 'px' }"> | ||
</i></div> | ||
<div | ||
ng-if="expandableRow.shouldRenderFiller()" | ||
ng-class="{scrollFiller:true, scrollFillerClass:(colContainer.name === 'body')}" | ||
ng-style="{ width: (grid.getViewportWidth()) + 'px', height: grid.options.expandableRowHeight + 2 + 'px', 'margin-left': grid.options.rowHeader.rowHeaderWidth + 'px' }"> | ||
<i | ||
class="ui-grid-icon-spin5 ui-grid-animate-spin" | ||
ng-style="{'margin-top': ( grid.options.expandableRowHeight/2 - 5) + 'px', 'margin-left' : ((grid.getViewportWidth() - grid.options.rowHeader.rowHeaderWidth)/2 - 5) + 'px'}"> | ||
</i> | ||
</div> |
16 changes: 10 additions & 6 deletions
16
src/features/expandable/templates/expandableTopRowHeader.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<div class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div class="ui-grid-cell-contents"> | ||
<i ng-class="{ 'ui-grid-icon-plus-squared' : !grid.expandable.expandedAll, 'ui-grid-icon-minus-squared' : grid.expandable.expandedAll }" | ||
ng-click="grid.api.expandable.toggleAllRows()"></i> | ||
</div> | ||
</div> | ||
<div | ||
class="ui-grid-row-header-cell ui-grid-expandable-buttons-cell"> | ||
<div | ||
class="ui-grid-cell-contents"> | ||
<i | ||
ng-class="{ 'ui-grid-icon-plus-squared' : !grid.expandable.expandedAll, 'ui-grid-icon-minus-squared' : grid.expandable.expandedAll }" | ||
ng-click="grid.api.expandable.toggleAllRows()"> | ||
</i> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<span class="ui-grid-exporter-csv-link-span"> | ||
<a href="data:text/csv;charset=UTF-8,CSV_CONTENT" download="FILE_NAME"> | ||
LINK_LABEL | ||
</a> | ||
<span | ||
class="ui-grid-exporter-csv-link-span"> | ||
<a | ||
href="data:text/csv;charset=UTF-8,CSV_CONTENT" | ||
download="FILE_NAME"> | ||
LINK_LABEL | ||
</a> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,10 @@ | ||
<li class="ui-grid-menu-item"><form><input class="ui-grid-importer-file-chooser" type="file" id="files" name="files[]" /></form></li> | ||
<li | ||
class="ui-grid-menu-item"> | ||
<form> | ||
<input | ||
class="ui-grid-importer-file-chooser" | ||
type="file" | ||
id="files" | ||
name="files[]"/> | ||
</form> | ||
</li> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<span ng-if="grid.selection.selectedCount !== 0 && grid.options.enableFooterTotalSelected">({{"search.selectedItems" | t}} {{grid.selection.selectedCount}})</span> | ||
<span | ||
ng-if="grid.selection.selectedCount !== 0 && grid.options.enableFooterTotalSelected"> | ||
({{"search.selectedItems" | t}} {{grid.selection.selectedCount}}) | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,10 @@ | ||
<div> | ||
<!-- <div class="ui-grid-vertical-bar"> </div> --> | ||
<div class="ui-grid-cell-contents" col-index="renderIndex"> | ||
<ui-grid-selection-select-all-buttons ng-if="grid.options.enableSelectAll"></ui-grid-selection-select-all-buttons> | ||
<div | ||
class="ui-grid-cell-contents" | ||
col-index="renderIndex"> | ||
<ui-grid-selection-select-all-buttons | ||
ng-if="grid.options.enableSelectAll"> | ||
</ui-grid-selection-select-all-buttons> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<div class="ui-grid-disable-selection"> | ||
<div class="ui-grid-cell-contents"> | ||
<ui-grid-selection-row-header-buttons></ui-grid-selection-row-header-buttons> | ||
<div | ||
class="ui-grid-disable-selection"> | ||
<div | ||
class="ui-grid-cell-contents"> | ||
<ui-grid-selection-row-header-buttons> | ||
</ui-grid-selection-row-header-buttons> | ||
</div> | ||
</div> | ||
</div> |
7 changes: 5 additions & 2 deletions
7
src/features/selection/templates/selectionRowHeaderButtons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
<div class="ui-grid-selection-row-header-buttons ui-grid-icon-ok" ng-class="{'ui-grid-row-selected': row.isSelected}" ng-click="selectButtonClick(row, $event)"> | ||
<div | ||
class="ui-grid-selection-row-header-buttons ui-grid-icon-ok" | ||
ng-class="{'ui-grid-row-selected': row.isSelected}" | ||
ng-click="selectButtonClick(row, $event)"> | ||
| ||
</div> | ||
</div> |
7 changes: 5 additions & 2 deletions
7
src/features/selection/templates/selectionSelectAllButtons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
<div class="ui-grid-selection-row-header-buttons ui-grid-icon-ok" ng-class="{'ui-grid-all-selected': grid.selection.selectAll}" ng-click="headerButtonClick($event)"> | ||
</div> | ||
<div | ||
class="ui-grid-selection-row-header-buttons ui-grid-icon-ok" | ||
ng-class="{'ui-grid-all-selected': grid.selection.selectAll}" | ||
ng-click="headerButtonClick($event)"> | ||
</div> |
7 changes: 5 additions & 2 deletions
7
src/features/tree-base/templates/treeBaseExpandAllButtons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
<div class="ui-grid-tree-base-row-header-buttons" ng-class="{'ui-grid-icon-minus-squared': grid.treeBase.numberLevels > 0 && grid.treeBase.expandAll, 'ui-grid-icon-plus-squared': grid.treeBase.numberLevels > 0 && !grid.treeBase.expandAll}" ng-click="headerButtonClick($event)"> | ||
</div> | ||
<div | ||
class="ui-grid-tree-base-row-header-buttons" | ||
ng-class="{'ui-grid-icon-minus-squared': grid.treeBase.numberLevels > 0 && grid.treeBase.expandAll, 'ui-grid-icon-plus-squared': grid.treeBase.numberLevels > 0 && !grid.treeBase.expandAll}" | ||
ng-click="headerButtonClick($event)"> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
<div> | ||
<div class="ui-grid-cell-contents" col-index="renderIndex"> | ||
<ui-grid-tree-base-expand-all-buttons ></ui-grid-tree-base-expand-all-buttons> | ||
<div | ||
class="ui-grid-cell-contents" | ||
col-index="renderIndex"> | ||
<ui-grid-tree-base-expand-all-buttons> | ||
</ui-grid-tree-base-expand-all-buttons> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
<div class="ui-grid-cell-contents"> | ||
<ui-grid-tree-base-row-header-buttons></ui-grid-tree-base-row-header-buttons> | ||
<div | ||
class="ui-grid-cell-contents"> | ||
<ui-grid-tree-base-row-header-buttons> | ||
</ui-grid-tree-base-row-header-buttons> | ||
</div> |
12 changes: 9 additions & 3 deletions
12
src/features/tree-base/templates/treeBaseRowHeaderButtons.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
<div class="ui-grid-tree-base-row-header-buttons" ng-class="{'ui-grid-tree-base-header': row.treeLevel > -1 }" ng-click="treeButtonClick(row, $event)"> | ||
<i ng-class="{'ui-grid-icon-minus-squared': ( ( grid.options.showTreeExpandNoChildren && row.treeLevel > -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'expanded', 'ui-grid-icon-plus-squared': ( ( grid.options.showTreeExpandNoChildren && row.treeLevel > -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'collapsed'}" ng-style="{'padding-left': grid.options.treeIndent * row.treeLevel + 'px'}"></i> | ||
<div | ||
class="ui-grid-tree-base-row-header-buttons" | ||
ng-class="{'ui-grid-tree-base-header': row.treeLevel > -1 }" | ||
ng-click="treeButtonClick(row, $event)"> | ||
<i | ||
ng-class="{'ui-grid-icon-minus-squared': ( ( grid.options.showTreeExpandNoChildren && row.treeLevel > -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'expanded', 'ui-grid-icon-plus-squared': ( ( grid.options.showTreeExpandNoChildren && row.treeLevel > -1 ) || ( row.treeNode.children && row.treeNode.children.length > 0 ) ) && row.treeNode.state === 'collapsed'}" | ||
ng-style="{'padding-left': grid.options.treeIndent * row.treeLevel + 'px'}"> | ||
</i> | ||
| ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<div class="ui-grid-footer-info ui-grid-grid-footer"> | ||
<span>{{'search.totalItems' | t}} {{grid.rows.length}}</span> | ||
<span ng-if="grid.renderContainers.body.visibleRowCache.length !== grid.rows.length" | ||
class="ngLabel">({{"search.showingItems" | t}} {{grid.renderContainers.body.visibleRowCache.length}}) | ||
</span> | ||
<span>{{'search.totalItems' | t}} {{grid.rows.length}}</span> | ||
<span | ||
ng-if="grid.renderContainers.body.visibleRowCache.length !== grid.rows.length" | ||
class="ngLabel"> | ||
({{"search.showingItems" | t}} {{grid.renderContainers.body.visibleRowCache.length}}) | ||
</span> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<div | ||
ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.uid" | ||
ui-grid-one-bind-id-grid="rowRenderIndex + '-' + col.uid + '-cell'" | ||
class="ui-grid-cell" | ||
ng-class="{ 'ui-grid-row-header-cell': col.isRowHeader }" | ||
role="{{col.isRowHeader ? 'rowheader' : 'gridcell'}}" | ||
ui-grid-cell></div> | ||
ng-repeat="(colRenderIndex, col) in colContainer.renderedColumns track by col.uid" | ||
ui-grid-one-bind-id-grid="rowRenderIndex + '-' + col.uid + '-cell'" | ||
class="ui-grid-cell" | ||
ng-class="{ 'ui-grid-row-header-cell': col.isRowHeader }" | ||
role="{{col.isRowHeader ? 'rowheader' : 'gridcell'}}" | ||
ui-grid-cell> | ||
</div> |
Oops, something went wrong.