Modified some page

This commit is contained in:
Keith 2017-02-22 15:35:03 +08:00
parent fc05dcf303
commit 8d2a3225fd
6 changed files with 22 additions and 17 deletions

View File

@ -1,7 +1,8 @@
<% @memberlogs.each do |memberlog| %>
<tr id="<%= dom_id memberlog %>" class="with_action">
<td class="span2"><%= memberlog.member_profile.name rescue "" %></td>
<td class="span2"><%= memberlog.created_at.strftime('%Y-%m-%d (%a) %R') %></td>
<td class="span2"><%= memberlog.created_at.strftime('%Y/%m/%d (%a)') %>
<td><%= memberlog.created_at.strftime('%R') %></td>
<td>
<% if memberlog.finish == true %>
<%= memberlog.checkout.strftime('%R') %></td>

View File

@ -4,8 +4,8 @@
<ul>
<%= b.member_profile.name %>
【<%= b.dayoff_description %>】
<%= b.start_dayoff.strftime('%Y-%m-%d') %>~
<%= b.end_dayoff.strftime('%Y-%m-%d') %>
<%= b.start_dayoff.strftime('%Y/%m/%d') %>~
<%= b.end_dayoff.strftime('%Y/%m/%d') %>
</ul>
<% end %>
<% end %>
@ -13,12 +13,12 @@
<table class="table main-list">
<thead>
<tr>
<th class="span1"><%= t("memberlog.staff") %></th>
<th class="span3"><%= t('memberlog.checkin') %></th>
<th class="span1"><%= t('memberlog.staff') %></th>
<th class="span3"><%= t('memberlog.date') %></th>
<th class="span2"><%= t('memberlog.checkin') %></th>
<th class="span2"><%= t('memberlog.checkout') %></th>
<th class="span4"><%= t('memberlog.todo') %></th>
<th class="span3"><%= t('memberlog.excuse') %></th>
<th class="span2"><%= t('memberlog.todo') %></th>
<th class="span5"><%= t('memberlog.excuse') %></th>
</tr>
</thead>
<tbody id="tbody_writing_journals" class="sort-holder">

View File

@ -38,7 +38,7 @@
<% if @memberlog.finish == true %>
<%= @memberlog.checkout.strftime('%Y-%m-%d %R') %>
<% else %>
<span class="label label-warning">Working....</span>
<span class="label label-warning"><%= t('memberlog.working') %></span>
<% end %>
</td>
</tr>

View File

@ -20,8 +20,8 @@
<% if Time.now.to_date <= b.end_dayoff.to_date+40 %>
<ul>
【<%= b.dayoff_description %>】
<%= b.start_dayoff.strftime('%Y-%m-%d') %>~
<%= b.end_dayoff.strftime('%Y-%m-%d') %>
<%= b.start_dayoff.strftime('%Y/%m/%d') %>~
<%= b.end_dayoff.strftime('%Y/%m/%d') %>
<%= link_to content_tag(:i, nil, :class => 'icon-edit') +' '+ t('edit'),'/admin/members/'+@member.to_param+'/dayoffs/'+b.id+'/edit', :class => "btn btn-danger btn-mini"%>
<!-- <%= link_to content_tag(:i, nil, :class => 'icons-trash') +' '+ t(:delete_), admin_dayoff_path(id: b.id, member_profile_id: @member.id), :class => "btn btn-danger btn-mini", method: :delete, remote: true, data: { confirm: t('sure?') } %>
-->
@ -36,8 +36,9 @@
<!-- <% if has_access? %> -->
<!-- <th><input type="checkbox" /></th> -->
<!-- <% end -%> -->
<th class="span2"><%= t('memberlog.checkin') %></th>
<th class="span2"><%= t('memberlog.checkout') %></th>
<th class="span2"><%= t('memberlog.date') %></th>
<th class="span1"><%= t('memberlog.checkin') %></th>
<th class="span1"><%= t('memberlog.checkout') %></th>
<th class="span3"><%= t('memberlog.excuse') %></th>
</tr>
</thead>
@ -45,7 +46,7 @@
<% @memberlogs.each do |memberlog| %>
<tr id="<%= dom_id memberlog %>">
<td>
<%= link_to memberlog.created_at.strftime('%Y-%m-%d (%a) %R'), admin_memberlog_path(memberlog.id), :data => {"target" => "#logModal", "toggle" => "modal"} %>
<%= link_to memberlog.created_at.strftime('%Y-%m-%d (%a)'), admin_memberlog_path(memberlog.id), :data => {"target" => "#logModal", "toggle" => "modal"} %>
<div class="quick-edit">
<ul class="nav nav-pills hide">
@ -56,11 +57,12 @@
</ul>
</div>
</td>
<td><%= memberlog.created_at.strftime('%R') %></td>
<td>
<% if memberlog.finish == true %>
<%= memberlog.checkout.strftime('%m-%d %R') %></td>
<%= memberlog.checkout.strftime('%R') %></td>
<% else %>
<span class="label label-warning">Working....</span>
<span class="label label-warning"><%= t('memberlog.working') %></span>
<% end %>
</td>
<td>

View File

@ -13,3 +13,4 @@ en:
start_dayoff: Start Dayoff
end_dayoff: End Dayoff
status: Status
date: Date

View File

@ -13,3 +13,4 @@ zh_tw:
start_dayoff: 休假開始日期
end_dayoff: 休假結束日期
status: 狀態
date: 出勤日期