<%
year = params["year"]
month = params["month"]
day = params["day"]
user_id = params["user"]
date = Date.new(year.to_i,month.to_i,day.to_i)
wday_name = l(:wt_week_day_names).split(',')
memo=WtDailyMemo.where(["day=:d and user_id=:u",{:d=>date,:u=>user_id}]).first
if memo then
%>
<textarea id="work_time_memo" name="memo" rows="15" cols="100"><%=memo.description -%></textarea>
<%else%>
<textarea id="work_time_memo" name="memo" rows="15" cols="100"></textarea>
<%end%>
<br/>
<%= submit_tag l(:wt_update) %>
<%= wikitoolbar_for 'work_time_memo' %>
