Skip to content

Commit

Permalink
updating template for Phurion
Browse files Browse the repository at this point in the history
  • Loading branch information
orneryd committed Dec 15, 2012
1 parent 81226e5 commit 4042795
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 4 deletions.
4 changes: 4 additions & 0 deletions workbench/Phurion/combinedCellTemplate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<div class="colt1">
<span class="colt1" style="float: left; display: block;" data-bind="text: $parent.getProperty('From')"></span>
<span class="colt1" style="clear: both; display: block;" data-bind="text: $parent.getProperty('Subject')"></span>
</div>
9 changes: 9 additions & 0 deletions workbench/Phurion/combinedHeaderTemplate.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<div class="col1 kgHeaderSortColumn">
<span style="position: absolute; left: 200px; top:4px;">
<div class="kgSortButtonDown" style="top: 8px; right: 100px;" data-bind="visible: $parent.columns()[1].showSortButtonDown"></div>
<div class="kgSortButtonUp" style="top: 8px; right: 100px;" data-bind="visible: $parent.columns()[1].showSortButtonUp"></div>
<span style="margin-left: 15px;" data-bind="click: $parent.columns()[1].sort">From</span> / <span data-bind="click: $parent.columns()[2].sort">Subject</span>
<div class="kgSortButtonDown" style="top: 8px; left: 115px;" data-bind="visible: $parent.columns()[2].showSortButtonDown"></div>
<div class="kgSortButtonUp" style="top: 8px; left: 115px;" data-bind="visible: $parent.columns()[2].showSortButtonUp"></div>
</span>
</div>
9 changes: 5 additions & 4 deletions workbench/Phurion/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,12 @@ function mainViewModel() {
beforeSelectionChange: self.markEmailRead,
rowTemplate: 'rowTemplate.html',
selectedItems: self.selectedItems,
showColumnMenu: false,
columnDefs: [
{ field: '', width: '*', cellTemplate: 'imageCellTemplate.html' },
{ field: 'From', width: '***' },
{ field: 'Subject', width: '***************' },
{ field: 'Date', width: '***' }]
{ field: '', width: 50, cellTemplate: 'imageCellTemplate.html', resizable: false, sortable: false },
{ field: 'From', width: 691, resizable: false, cellTemplate: 'combinedCellTemplate.html', headerCellTemplate: 'combinedHeaderTemplate.html' },
{ field: 'Subject', width: 0, visible: false }, // fake column for sorting.
{ field: 'Date', width: 200, resizable: false }]
};
}
ko.applyBindings(new mainViewModel());

0 comments on commit 4042795

Please sign in to comment.