Skip to content

Commit

Permalink
Fixes for new Bootstrap
Browse files Browse the repository at this point in the history
  • Loading branch information
pedro-teixeira committed Jun 6, 2014
1 parent d184e6d commit 2f3f5e6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions Grid/Render/YesNo.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ public function render()
return (int) $this->getValue();
} else {
if ($this->getValue() && $this->getShowYes()) {
return '<i class="icon-ok"></i>';
return '<i class="glyphicon glyphicon-ok"></i>';
} else if ($this->getShowNo()) {
return '<i class="icon-remove"></i>';
return '<i class="glyphicon glyphicon-remove"></i>';
}
}

Expand Down
4 changes: 2 additions & 2 deletions Resources/public/js/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,9 +189,9 @@
})

if (this.sortOrder == 'DESC') {
element.append(' <i class="icon-chevron-down"></i>')
element.append(' <i class="glyphicon glyphicon-chevron-down"></i>')
} else {
element.append(' <i class="icon-chevron-up"></i>')
element.append(' <i class="glyphicon glyphicon-chevron-up"></i>')
}

return this
Expand Down
20 changes: 10 additions & 10 deletions Resources/views/block.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -29,27 +29,27 @@
<tr class="row-footer">
<td colspan="{{ view.grid.getColumnsCount }}">
{# Without submit button the form is not submitted with the enter key #}
<button id="refresh-button" class="btn btn-mini" type="submit">
<i class="icon-refresh"></i> {% trans %}Update{% endtrans %}
<button id="refresh-button" class="btn btn-default btn-xs" type="submit">
<i class="glyphicon glyphicon-refresh"></i> {% trans %}Update{% endtrans %}
</button>

<button id="refresh-filters-button" class="btn btn-mini" type="button">
<i class="icon-filter"></i> {% trans %}Refresh Filters{% endtrans %}
<button id="refresh-filters-button" class="btn btn-default btn-xs" type="button">
<i class="glyphicon glyphicon-filter"></i> {% trans %}Refresh Filters{% endtrans %}
</button>

{% if view.grid.exportable %}
<button id="export-button" class="btn btn-mini" type="button">
<i class="icon-download"></i> {% trans %}Export{% endtrans %}
<button id="export-button" class="btn btn-default btn-xs" type="button">
<i class="glyphicon glyphicon-download"></i> {% trans %}Export{% endtrans %}
</button>
{% endif %}

<div id="pagination" class="pull-right">
<button id="pagination-back-button" class="btn btn-mini" type="button">
<i class="icon-chevron-left"></i>
<button id="pagination-back-button" class="btn btn-default btn-xs" type="button">
<i class="glyphicon glyphicon-chevron-left"></i>
</button>
<input id="pagination-page" type="text" value="0">
<button id="pagination-forward-button" class="btn btn-mini" type="button">
<i class="icon-chevron-right"></i>
<button id="pagination-forward-button" class="btn btn-default btn-xs" type="button">
<i class="glyphicon glyphicon-chevron-right"></i>
</button>

{% trans %}of{% endtrans %}
Expand Down

0 comments on commit 2f3f5e6

Please sign in to comment.