<%=javascript_include_tag "work_time", :plugin=>'redmine_work_time' %> <%=stylesheet_link_tag 'work_time', :plugin => 'redmine_work_time' %> <%= @message.html_safe %>
<%= render :partial=>'select_project' %> <%if User.current.allowed_to?(:view_work_time_other_member, @project) then%> <%= render :partial=>'select_user', :locals=>{:link_params=>@link_params} %> <%= link_to(l(:wt_relay_total), @link_params.merge(:action=>"relay_total")) %> <%end%> <%if User.current.admin then%> <%if WtHolidays.where(["holiday=:h and deleted_on is null",{:h=>@this_date}]).all.size == 0 then %> <%else%> <%end%> <%end%>
<%= render :partial=>'user_month_table' %>

<%= form_tag @link_params do %>

<%=l(:wt_daily_report)%> <%=@this_date.strftime("%Y-%m-%d")%>

<%= hidden_field_tag('year', @this_date.year) %> <%= hidden_field_tag('month', @this_date.month) %> <%= hidden_field_tag('day', @this_date.day) %> <%= hidden_field_tag('user', @this_uid) %> <%= hidden_field_tag('prj', @restrict_project) %>
<%=l(:wt_legend)%>: <%=l(:wt_style_default)%> <%=l(:wt_style_assigned)%> <%=l(:wt_style_worked)%> <%=l(:wt_style__assigned_worked)%> <%=l(:wt_style_overdue)%> <%=l(:wt_style_assigned_overdue)%> <%=l(:wt_style_overdue_worked)%> <%=l(:wt_style_assigned_overdue_worked)%>
<%= render :partial=>'user_day_table' %> <%if @this_uid==@crnt_uid || User.current.allowed_to?(:edit_work_time_other_member, @project) %> : '" value="<%=l(:wt_delete_closed_tickets)%>" />
', data:{asynchronous:true, method:'get'}, success: function(response){ jQuery('#add_ticket_area').replaceWith(response); } }); return false;" value="<%=l(:wt_add_ticket)%>" />
<%end%> <%#------------------------- Legend for the daily table%>


<%=link_to(@this_date.strftime("%Y-%m-%d")+'('+@wday_name[@this_date.wday]+') '+@this_user.to_s, @link_params.merge(:anchor=>"memo")) %>

<%#------------------------------------------- Wiki表示#%>
<% memo=WtDailyMemo.where(["day=:d and user_id=:u",{:d=>@this_date,:u=>@this_uid}]).first if memo then # この日のメモがある場合 %>
<%=textilizable(memo.description) %>
(update:<%=memo.updated_on.localtime.strftime("%Y-%m-%d %H:%M")%>)
<%end%> <% memo=WtDailyMemo.where(["day<:d and user_id=:u",{:d=>@this_date,:u=>@this_uid}]).order("day DESC").first if memo then d = memo.day %> [<%=link_to(l(:wt_pre_memo), @link_params.merge(:anchor=>"memo", :day=>d.day, :month=>d.month, :year=>d.year))%>] <%end%> <%if @this_uid==@crnt_uid then%> [ <%=l(:wt_edit_memo)%> ] <%end%> <% memo=WtDailyMemo.where(["day>:d and user_id=:u",{:d=>@this_date,:u=>@this_uid}]).order("day").first if memo then d = memo.day %> [<%= link_to(l(:wt_next_memo), @link_params.merge(:anchor=>"memo", :day=>d.day, :month=>d.month, :year=>d.year))%>] <%end%>

<%if User.current.allowed_to?(:view_work_time_other_member, @project) then%> <%= render :partial=>'select_user', :locals=>{:link_params=>@link_params.merge(:anchor=>"memo")} %> <%end%> <%end%>