From 667b7f2bd5ad37261d628ea0dafcdca6125a4177 Mon Sep 17 00:00:00 2001 From: thomaschen <99703040@nccu.edu.tw> Date: Thu, 22 Aug 2013 16:46:38 +0800 Subject: [PATCH] add back_end show vocab --- .../back_end/dictionary_vocabs/index.html.erb | 2 -- .../back_end/dictionary_vocabs/show.html.erb | 24 +++++++++++++++++++ .../dictionary/config/locales/en.yml | 3 ++- .../dictionary/config/locales/zh_tw.yml | 1 + 4 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/show.html.erb diff --git a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb index 98a4b8a44..055f20eb3 100644 --- a/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb +++ b/vendor/built_in_modules/dictionary/app/views/panel/dictionary/back_end/dictionary_vocabs/index.html.erb @@ -9,7 +9,6 @@
<%= t :category, :scope => :dictionary %> | +<%= @vocab.dictionary_vocab_category.key %> | +
<%= t :word, :scope => :dictionary %> | +<%= @vocab.word %> | +
<%= t :definition, :scope => :dictionary %> | +<%= @vocab.definition %> |
+
+ | <%= link_to t(:edit),edit_panel_dictionary_back_end_dictionary_vocab_path(@vocab) %> | + <%= link_to t(:delete), panel_dictionary_back_end_dictionary_vocab_path(@vocab), method: :delete , :data => { :confirm => 'Are you sure?'} %> | + <%= link_to t(:back), panel_dictionary_back_end_dictionary_vocabs_path%> | +