company review
This commit is contained in:
parent
ab29dd4335
commit
bc38e24259
|
@ -1,17 +1,17 @@
|
||||||
<br />
|
<br />
|
||||||
<div class="offset1">
|
<div class="site-map">
|
||||||
<h4><%= t :category, :scope => :dictionary %></h4>
|
<h4><%= t :category, :scope => :dictionary %></h4>
|
||||||
<%= f.collection_select :dictionary_vocab_category_id, @categories, :id, :title %>
|
<%= f.collection_select :dictionary_vocab_category_id, @categories, :id, :title %>
|
||||||
</div>
|
</div>
|
||||||
<div class="offset1">
|
<div class="site-map">
|
||||||
<h4><%= t :word, :scope => :dictionary %></h4>
|
<h4><%= t :word, :scope => :dictionary %></h4>
|
||||||
<%= f.text_field :word %>
|
<%= f.text_field :word %>
|
||||||
</div>
|
</div>
|
||||||
<div class="offset1">
|
<div class="site-map">
|
||||||
<h4><%= t :definition, :scope => :dictionary %></h4>
|
<h4><%= t :definition, :scope => :dictionary %></h4>
|
||||||
<%= f.text_area :definition %>
|
<%= f.text_field :definition %>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div class="offset1">
|
<div class="site-map">
|
||||||
<%= f.submit t('submit'), class: 'btn btn-primary'%>
|
<%= f.submit t('submit'), class: 'btn btn-primary'%>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
<div class="row">
|
|
||||||
<div class="span8 offset1">
|
|
||||||
<% flash.each do |key, value| %>
|
<% flash.each do |key, value| %>
|
||||||
<div class="alert alert-<%= key %>"><%= value %></div>
|
<div class="alert alert-<%= key %>"><%= value %></div>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -32,5 +30,3 @@
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -1,5 +1,3 @@
|
||||||
<div class="row">
|
|
||||||
<div class="span8 offset1">
|
|
||||||
<table class="table" align ="center">
|
<table class="table" align ="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td ><%= t :category, :scope => :dictionary %></td>
|
<td ><%= t :category, :scope => :dictionary %></td>
|
||||||
|
@ -29,5 +27,3 @@
|
||||||
<%= link_to t(:back), panel_dictionary_back_end_dictionary_vocabs_path%></td>
|
<%= link_to t(:back), panel_dictionary_back_end_dictionary_vocabs_path%></td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
|
@ -6,7 +6,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<th class="span2"><%= t :category, :scope => :dictionary %></th>
|
<th class="span2"><%= t :category, :scope => :dictionary %></th>
|
||||||
<th class="span2"><%= t :word, :scope => :dictionary %></th>
|
<th class="span2"><%= t :word, :scope => :dictionary %></th>
|
||||||
<th class="span2"><%= t :time, :scope => :dictionary %></th>
|
<th class="span2"><%= t :definition, :scope => :dictionary %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
|
||||||
|
@ -15,14 +15,7 @@
|
||||||
<tr>
|
<tr>
|
||||||
<td><%= vocab.dictionary_vocab_category.title %></td>
|
<td><%= vocab.dictionary_vocab_category.title %></td>
|
||||||
<td><%= link_to truncate(vocab.word,length: 25), panel_dictionary_front_end_dictionary_vocab_path(vocab) %></td>
|
<td><%= link_to truncate(vocab.word,length: 25), panel_dictionary_front_end_dictionary_vocab_path(vocab) %></td>
|
||||||
<td>
|
<td><%= link_to truncate(vocab.definition,length: 25), panel_dictionary_front_end_dictionary_vocab_path(vocab) %></td>
|
||||||
<% if vocab.created_at > Time.now.beginning_of_day %>
|
|
||||||
<%="#{time_ago_in_words(vocab.created_at)}"%>
|
|
||||||
<%=t :ago,:scope => :dictionary%>
|
|
||||||
<% else %>
|
|
||||||
<%= vocab.created_at.strftime("%Y/%m/%d") %>
|
|
||||||
<% end %>
|
|
||||||
</td>
|
|
||||||
</tr>
|
</tr>
|
||||||
<% end %>
|
<% end %>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
@ -30,4 +23,4 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<%= paginate(@vocabs, :param_name => :page_main, :params => {:inner => 'false'} ) rescue nil %>
|
<%= paginate(@vocabs, :param_name => :page_main, :params => {:inner => 'false'} ) rescue nil %>
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
<table class="table" align ="center">
|
<table class="table" align ="center">
|
||||||
<tr>
|
<tr>
|
||||||
<td ><%= t :category, :scope => :dictionary %></td>
|
<td ><%= t :category, :scope => :dictionary %></td>
|
||||||
<td><%= @vocab.dictionary_vocab_category.key %></td>
|
<td><%= @vocab.dictionary_vocab_category.title %></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td ><%= t :word, :scope => :dictionary %></td>
|
<td ><%= t :word, :scope => :dictionary %></td>
|
||||||
|
|
|
@ -21,8 +21,8 @@ zh_tw:
|
||||||
dictionary: 字典前台
|
dictionary: 字典前台
|
||||||
dictionary: 字彙辭典
|
dictionary: 字彙辭典
|
||||||
category: 類別
|
category: 類別
|
||||||
word: 字彙
|
word: 字彙中文
|
||||||
definition: 定義
|
definition: 英文定義
|
||||||
time: 建立時間
|
time: 建立時間
|
||||||
ago: 前
|
ago: 前
|
||||||
new: 新增
|
new: 新增
|
||||||
|
|
Loading…
Reference in New Issue