Skip to content

Commit

Permalink
Tweak action buttons in the list
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Sep 23, 2013
1 parent 8537ea5 commit 7cf8bdb
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

### 2013-09-23

* change list's action buttons to use ``btn-small`` from twitter bootstrap

### 2013-09-20

* [BC BREAK] added ``getTranslator``, ``getForm``, ``getBreadcrumbs``
Expand Down
6 changes: 3 additions & 3 deletions Resources/views/CRUD/base_list.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,9 @@ file that was distributed with this source code.
<a class="btn" href="{{ admin.generateUrl('list', {filters: 'reset'}) }}">{{ 'link_reset_filter'|trans({}, 'SonataAdminBundle') }}</a>
</div>

{% for paramKey, paramValue in admin.persistentParameters %}
<input type="hidden" name="{{ paramKey }}" value="{{ paramValue }}" />
{% endfor %}
{#{% for paramKey, paramValue in admin.persistentParameters %}#}
{#<input type="hidden" name="{{ paramKey }}" value="{{ paramValue }}" />#}
{#{% endfor %}#}
</fieldset>
</form>
{% endif %}
Expand Down
8 changes: 5 additions & 3 deletions Resources/views/CRUD/list__action.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ file that was distributed with this source code.
{% extends admin.getTemplate('base_list_field') %}

{% block field %}
{% for actions in field_description.options.actions %}
{% include actions.template %}
{% endfor %}
<div class="btn-group">
{% for actions in field_description.options.actions %}
{% include actions.template %}
{% endfor %}
</div>
{% endblock %}
2 changes: 1 addition & 1 deletion Resources/views/CRUD/list__action_delete.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ file that was distributed with this source code.
#}

{% if admin.isGranted('DELETE', object) and admin.hasRoute('delete') %}
<a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn delete_link" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
<a href="{{ admin.generateObjectUrl('delete', object) }}" class="btn delete_link btn-small" title="{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}">
<i class="icon-remove"></i>
{{ 'action_delete'|trans({}, 'SonataAdminBundle') }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/CRUD/list__action_edit.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ file that was distributed with this source code.
#}

{% if admin.isGranted('EDIT', object) and admin.hasRoute('edit') %}
<a href="{{ admin.generateObjectUrl('edit', object) }}" class="btn edit_link" title="{{ 'action_edit'|trans({}, 'SonataAdminBundle') }}">
<a href="{{ admin.generateObjectUrl('edit', object) }}" class="btn edit_link btn-small" title="{{ 'action_edit'|trans({}, 'SonataAdminBundle') }}">
<i class="icon-edit"></i>
{{ 'action_edit'|trans({}, 'SonataAdminBundle') }}
</a>
Expand Down
2 changes: 1 addition & 1 deletion Resources/views/CRUD/list__action_show.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ file that was distributed with this source code.
#}

{% if admin.hasRoute('show') %}
<a href="{{ admin.generateObjectUrl('show', object) }}" class="btn view_link" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
<a href="{{ admin.generateObjectUrl('show', object) }}" class="btn view_link btn-small" title="{{ 'action_show'|trans({}, 'SonataAdminBundle') }}">
<i class="icon-zoom-in"></i>
{{ 'action_show'|trans({}, 'SonataAdminBundle') }}
</a>
Expand Down

0 comments on commit 7cf8bdb

Please sign in to comment.