summaryrefslogtreecommitdiff
path: root/app/views/softkeys
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-02-04 13:51:15 +0100
commit636be20a183fac10637fea700f55f89bc371577b (patch)
tree0ccfad9b5ddbaf761dd1121962d2dd5977c4ba93 /app/views/softkeys
parent049b3e62c2ad3e0affac17214baa38afb994b6ba (diff)
Refactoring and bugfixes.
Diffstat (limited to 'app/views/softkeys')
-rw-r--r--app/views/softkeys/_index_core.html.haml23
1 files changed, 12 insertions, 11 deletions
diff --git a/app/views/softkeys/_index_core.html.haml b/app/views/softkeys/_index_core.html.haml
index 4ebb29c..70c96bc 100644
--- a/app/views/softkeys/_index_core.html.haml
+++ b/app/views/softkeys/_index_core.html.haml
@@ -1,5 +1,5 @@
-- cache(['softkeys', I18n.locale, current_user, softkeys]) do
- %table.table.table-striped{ :id => "softkeys" }
+- cache(['softkeys_table', I18n.locale, current_user, softkeys]) do
+ %table.table.table-striped
%thead
%tr
%th
@@ -7,13 +7,14 @@
%th= t('softkeys.index.number')
%th= t('softkeys.index.label')
- %tbody
+ %tbody{ :id => "softkeys", :'data-update-url' => sort_softkeys_url}
- for softkey in softkeys
- = content_tag_for :tr, softkey do
- %td
- %span.handle
- %i.icon-resize-vertical
- %td= softkey.function
- %td= softkey.number
- %td= softkey.label
- =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => softkey.sip_account, :child => softkey} \ No newline at end of file
+ - cache(['softkeys_table_tr', I18n.locale, current_user, softkey]) do
+ = content_tag_for :tr, softkey do
+ %td
+ %span.handle
+ %i.icon-resize-vertical
+ %td= softkey.function
+ %td= softkey.number
+ %td= softkey.label
+ =render :partial => 'shared/index_view_edit_destroy_part', :locals => {:parent => softkey.sip_account, :child => softkey} \ No newline at end of file