This repository has been archived by the owner on Nov 25, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(project): translate columns, search and actions
- Loading branch information
VMBindraban
committed
Jun 21, 2016
1 parent
aff38cc
commit e9f668b
Showing
1 changed file
with
9 additions
and
7 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 |
---|---|---|
|
@@ -4,10 +4,12 @@ | |
<!-- Search bar --> | ||
<div if.bind="searchable !== null" class="row"> | ||
<div class="col-xs-2"> | ||
<select value.bind="searchColumn" class="form-control" id="columnSelect" title="Search"> | ||
<option model.bind="columnLabel.column" repeat.for="columnLabel of columnLabels | columnsFilter"> | ||
${columnLabel.label} | ||
</option> | ||
<select value.bind="searchColumn" class="form-control" id="columnSelect"> | ||
<option | ||
model.bind="columnLabel.column" | ||
repeat.for="columnLabel of columnLabels | columnsFilter" | ||
t="${columnLabel.label}" | ||
></option> | ||
</select> | ||
</div> | ||
|
||
|
@@ -16,7 +18,7 @@ | |
class="form-control" | ||
type="text" | ||
id="search" | ||
placeholder="search" | ||
t="[placeholder]Search" | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
VMBindraban
Member
|
||
value.bind="search" | ||
keyup.delegate="doSearch() & debounce:500"> | ||
</div> | ||
|
@@ -29,11 +31,11 @@ | |
<!-- Labels --> | ||
<th click.delegate="doSort(columnLabel)" repeat.for="columnLabel of columnLabels"> | ||
<!-- Just show the label --> | ||
<span if.bind="sortable === null || columnLabel.nested" t="${columnLabel.label}">${columnLabel.label}</span> | ||
<span if.bind="sortable === null || columnLabel.nested" t="${columnLabel.label}"></span> | ||
|
||
<!-- Show label and make it sortable (click) --> | ||
<a if.bind="sortable !== null && !columnLabel.nested"> | ||
${columnLabel.label} | ||
<span t="${columnLabel.label}"></span> | ||
<i class="fa fa-${criteria.sort[columnLabel.column] ? (criteria.sort[columnLabel.column] === 'desc' ? 'caret-down' : 'caret-up') : 'sort'}"> | ||
</i> | ||
</a> | ||
|
that makes i18n a dependecy, which currently it isn.t. shouldn.t the other line stay?