memberlog/app/views/admin/memberlogs/show.html.erb

75 lines
2.5 KiB
Plaintext

<table class="table main-list">
<thead>
<tr>
<th class="span4" style=" color: rgb(255, 255, 255);
text-shadow: rgba(0, 0, 0, 0.498039) 0px -1px 0px;
font-family: 微軟正黑體;
font-size: 14px;
padding: 6px 10px;
background: -webkit-linear-gradient(top, rgb(112, 134, 178) 0%, rgb(63, 76, 107) 100%);
border-bottom: 3px solid rgb(47, 56, 79);
border-top: 1px solid rgb(157, 180, 231);
border-left: 1px solid rgb(64, 73, 98);"><%= t("memberlog.staff") %></th>
<th class="span4" style=" color: rgb(255, 255, 255);
text-shadow: rgba(0, 0, 0, 0.498039) 0px -1px 0px;
font-family: 微軟正黑體;
font-size: 14px;
padding: 6px 10px;
background: -webkit-linear-gradient(top, rgb(112, 134, 178) 0%, rgb(63, 76, 107) 100%);
border-bottom: 3px solid rgb(47, 56, 79);
border-top: 1px solid rgb(157, 180, 231);
border-left: 1px solid rgb(64, 73, 98);"><%= t('memberlog.checkin') %></th>
<th class="span4" style=" color: rgb(255, 255, 255);
text-shadow: rgba(0, 0, 0, 0.498039) 0px -1px 0px;
font-family: 微軟正黑體;
font-size: 14px;
padding: 6px 10px;
background: -webkit-linear-gradient(top, rgb(112, 134, 178) 0%, rgb(63, 76, 107) 100%);
border-bottom: 3px solid rgb(47, 56, 79);
border-top: 1px solid rgb(157, 180, 231);
border-left: 1px solid rgb(64, 73, 98);"><%= t('memberlog.checkout') %></th>
</tr>
</thead>
<tbody>
<tr>
<td><%= @memberlog.member_profile.name rescue "" %></td>
<% if @memberlog.dayoff == true %>
<td><span class="badge badge-important"><%= t('memberlog.dayoff') %> </span></td>
<td></td>
<% else %>
<td><%= @memberlog.created_at.strftime('%Y-%m-%d %R') %></td>
<td>
<% if @memberlog.finish == true %>
<%= @memberlog.checkout.strftime('%Y-%m-%d %R') %>
<% else %>
<span class="label label-warning"><%= t('memberlog.working') %></span>
<% end %>
</td>
<% end %>
</tr>
</tbody>
</table>
<table class="table">
<thead>
</thead>
<tbody>
<tr>
<td class="span2" style="background:#282828; color:white;"><h3><%= t('memberlog.excuse') %>:</h3></td>
<td><%= @memberlog.excuse %></td>
</tr>
<tr>
<td class="span2" style="background:#282828; color:white;"><h3><%= t('memberlog.todo')%>:</h3></td>
<td><%= @memberlog.todo.html_safe %></td>
<td></td>
</tr>
<tr>
<td class="span2" style="background:#282828; color:white;"><h3><%= t('memberlog.complete') %>:</h3></td>
<td ><%= @memberlog.complete.html_safe %></td>
</tr>
</tbody>
</table>