Modified some page
This commit is contained in:
parent
fc05dcf303
commit
8d2a3225fd
|
@ -1,7 +1,8 @@
|
||||||
<% @memberlogs.each do |memberlog| %>
|
<% @memberlogs.each do |memberlog| %>
|
||||||
<tr id="<%= dom_id memberlog %>" class="with_action">
|
<tr id="<%= dom_id memberlog %>" class="with_action">
|
||||||
<td class="span2"><%= memberlog.member_profile.name rescue "" %></td>
|
<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>
|
<td>
|
||||||
<% if memberlog.finish == true %>
|
<% if memberlog.finish == true %>
|
||||||
<%= memberlog.checkout.strftime('%R') %></td>
|
<%= memberlog.checkout.strftime('%R') %></td>
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
<ul>
|
<ul>
|
||||||
<%= b.member_profile.name %>
|
<%= b.member_profile.name %>
|
||||||
【<%= b.dayoff_description %>】
|
【<%= b.dayoff_description %>】
|
||||||
<%= b.start_dayoff.strftime('%Y-%m-%d') %>~
|
<%= b.start_dayoff.strftime('%Y/%m/%d') %>~
|
||||||
<%= b.end_dayoff.strftime('%Y-%m-%d') %>
|
<%= b.end_dayoff.strftime('%Y/%m/%d') %>
|
||||||
</ul>
|
</ul>
|
||||||
<% end %>
|
<% end %>
|
||||||
<% end %>
|
<% end %>
|
||||||
|
@ -13,12 +13,12 @@
|
||||||
<table class="table main-list">
|
<table class="table main-list">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th class="span1"><%= t("memberlog.staff") %></th>
|
<th class="span1"><%= t('memberlog.staff') %></th>
|
||||||
<th class="span3"><%= t('memberlog.checkin') %></th>
|
<th class="span3"><%= t('memberlog.date') %></th>
|
||||||
|
<th class="span2"><%= t('memberlog.checkin') %></th>
|
||||||
<th class="span2"><%= t('memberlog.checkout') %></th>
|
<th class="span2"><%= t('memberlog.checkout') %></th>
|
||||||
<th class="span4"><%= t('memberlog.todo') %></th>
|
<th class="span2"><%= t('memberlog.todo') %></th>
|
||||||
<th class="span3"><%= t('memberlog.excuse') %></th>
|
<th class="span5"><%= t('memberlog.excuse') %></th>
|
||||||
|
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody id="tbody_writing_journals" class="sort-holder">
|
<tbody id="tbody_writing_journals" class="sort-holder">
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
<% if @memberlog.finish == true %>
|
<% if @memberlog.finish == true %>
|
||||||
<%= @memberlog.checkout.strftime('%Y-%m-%d %R') %>
|
<%= @memberlog.checkout.strftime('%Y-%m-%d %R') %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="label label-warning">Working....</span>
|
<span class="label label-warning"><%= t('memberlog.working') %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
|
@ -20,8 +20,8 @@
|
||||||
<% if Time.now.to_date <= b.end_dayoff.to_date+40 %>
|
<% if Time.now.to_date <= b.end_dayoff.to_date+40 %>
|
||||||
<ul>
|
<ul>
|
||||||
【<%= b.dayoff_description %>】
|
【<%= b.dayoff_description %>】
|
||||||
<%= b.start_dayoff.strftime('%Y-%m-%d') %>~
|
<%= b.start_dayoff.strftime('%Y/%m/%d') %>~
|
||||||
<%= b.end_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 => '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?') } %>
|
<!-- <%= 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? %> -->
|
<!-- <% if has_access? %> -->
|
||||||
<!-- <th><input type="checkbox" /></th> -->
|
<!-- <th><input type="checkbox" /></th> -->
|
||||||
<!-- <% end -%> -->
|
<!-- <% end -%> -->
|
||||||
<th class="span2"><%= t('memberlog.checkin') %></th>
|
<th class="span2"><%= t('memberlog.date') %></th>
|
||||||
<th class="span2"><%= t('memberlog.checkout') %></th>
|
<th class="span1"><%= t('memberlog.checkin') %></th>
|
||||||
|
<th class="span1"><%= t('memberlog.checkout') %></th>
|
||||||
<th class="span3"><%= t('memberlog.excuse') %></th>
|
<th class="span3"><%= t('memberlog.excuse') %></th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
|
@ -45,7 +46,7 @@
|
||||||
<% @memberlogs.each do |memberlog| %>
|
<% @memberlogs.each do |memberlog| %>
|
||||||
<tr id="<%= dom_id memberlog %>">
|
<tr id="<%= dom_id memberlog %>">
|
||||||
<td>
|
<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">
|
<div class="quick-edit">
|
||||||
<ul class="nav nav-pills hide">
|
<ul class="nav nav-pills hide">
|
||||||
|
@ -56,11 +57,12 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
|
<td><%= memberlog.created_at.strftime('%R') %></td>
|
||||||
<td>
|
<td>
|
||||||
<% if memberlog.finish == true %>
|
<% if memberlog.finish == true %>
|
||||||
<%= memberlog.checkout.strftime('%m-%d %R') %></td>
|
<%= memberlog.checkout.strftime('%R') %></td>
|
||||||
<% else %>
|
<% else %>
|
||||||
<span class="label label-warning">Working....</span>
|
<span class="label label-warning"><%= t('memberlog.working') %></span>
|
||||||
<% end %>
|
<% end %>
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
|
|
|
@ -13,3 +13,4 @@ en:
|
||||||
start_dayoff: Start Dayoff
|
start_dayoff: Start Dayoff
|
||||||
end_dayoff: End Dayoff
|
end_dayoff: End Dayoff
|
||||||
status: Status
|
status: Status
|
||||||
|
date: Date
|
||||||
|
|
|
@ -13,3 +13,4 @@ zh_tw:
|
||||||
start_dayoff: 休假開始日期
|
start_dayoff: 休假開始日期
|
||||||
end_dayoff: 休假結束日期
|
end_dayoff: 休假結束日期
|
||||||
status: 狀態
|
status: 狀態
|
||||||
|
date: 出勤日期
|
||||||
|
|
Loading…
Reference in New Issue