From ec23fc16cbae241736b58561fe4791d4c6c4ef0a Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Thu, 4 Jul 2013 14:18:05 +0200 Subject: [PATCH] Migrate Sounds to new Datatables button definition --- share/templates/sound/list.tt | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/share/templates/sound/list.tt b/share/templates/sound/list.tt index 33a4769c23..f1d30db712 100644 --- a/share/templates/sound/list.tt +++ b/share/templates/sound/list.tt @@ -10,15 +10,21 @@ helper.create_flag = create_flag; helper.edit_flag = edit_flag; helper.form_object = form; - helper.has_edit = has_edit; - helper.has_delete = has_delete; helper.ajax_uri = c.uri_for_action( "/sound/ajax" ); - helper.base_uri = c.uri_for_action( "/sound/root" ); helper.extra_buttons = [ [ 'Files', 'handles'], ]; + helper.dt_buttons = [ + { name = 'Edit', uri = "/sound/'+full[\"id\"]+'/edit", class = 'btn-small btn-primary', icon = 'icon-edit' }, + { name = 'Delete', uri = "/sound/'+full[\"id\"]+'/delete", class = 'btn-small btn-secondary', icon = 'icon-trash' }, + { name = 'Files', uri = "/sound/'+full[\"id\"]+'/handles", class = 'btn-small btn-tertiary', icon = 'icon-list' }, + ]; + helper.top_buttons = [ + { name = 'Create Sound Set', uri = c.uri_for('/sound/create'), icon = 'icon-star' }, + ]; + PROCESS 'helpers/datatables.tt'; -%] [% # vim: set tabstop=4 syntax=html expandtab: -%]