Skip to content

Commit

Permalink
bootstrap ready
Browse files Browse the repository at this point in the history
  • Loading branch information
gerard2perez committed Mar 27, 2015
1 parent 089c86d commit c18471e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions addon/templates/components/crud-table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
</div>
<div class="col-sm-4 m-b-xs">
<div data-toggle="buttons" class="btn-group">
<label class="btn btn-sm btn-white">
<label class="btn btn-sm btn-page">
<input type="radio" id="option1" name="options"> Day </label>
<label class="btn btn-sm btn-white active">
<label class="btn btn-sm btn-page active">
<input type="radio" id="option2" name="options"> Week </label>
<label class="btn btn-sm btn-white">
<label class="btn btn-sm btn-page">
<input type="radio" id="option3" name="options"> Month </label>
</div>
</div>
Expand Down Expand Up @@ -47,10 +47,10 @@
{{#if row}} {{render 'crud-table-row' row}} {{/if}} {{#if this.editdelete}}
<td>
{{#if this.updateRecord}}
<button data-action="edit" class="btn btn-info btn-circle" {{action 'internal_edit' row}}><i class="fa fa-edit"></i>
<button data-action="edit" class="btn btn-info btn-action" {{action 'internal_edit' row}}><i class="fa fa-edit"></i>
</button>
{{/if}} {{#if this.deleteRecord}}
<button data-action="delete" class="btn btn-danger btn-circle" {{action 'internal_delete' row}}><i class="fa fa-trash"></i>
<button data-action="delete" class="btn btn-danger btn-action" {{action 'internal_delete' row}}><i class="fa fa-trash"></i>
</button>
{{/if}}
</td>
Expand All @@ -68,13 +68,13 @@

<div class="row text-center">
<div class="btn-group">
<button {{action 'goto' this.pagination.previous}} {{bind-attr class="this.pagination.previous::disabled :btn :btn-white" }} type="button">Previous</button>
<button {{action 'goto' this.pagination.previous}} {{bind-attr class="this.pagination.previous::disabled :btn :btn-page" }} type="button">Previous</button>
{{#each page in this.pagination.links}}
<button {{bind-attr data-page=page.page}} {{action 'goto' page.page}} {{bind-attr class=":btn page.current:btn-primary:btn-white" }} type="button">
<button {{bind-attr data-page=page.page}} {{action 'goto' page.page}} {{bind-attr class=":btn page.current:btn-primary:btn-page" }} type="button">
{{page.page}}
</button>
{{/each}}
<button {{action 'goto' this.pagination.next}} {{bind-attr class="this.pagination.next::disabled :btn :btn-white" }} type="button">Next</button>
<button {{action 'goto' this.pagination.next}} {{bind-attr class="this.pagination.next::disabled :btn :btn-page" }} type="button">Next</button>
</div>
</div>
{{yield}} {{render 'crud-table-modal' this}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ember-cli-crudtable",
"version": "0.3.27.2",
"version": "0.3.273",
"description": "This addon allows you to easly create a CRUD Table, it will take you only 5s!.",
"directories": {
"doc": "doc",
Expand Down

0 comments on commit c18471e

Please sign in to comment.