<%
if found
%>
>
| |
<%=a('detail', {'key'=>-1}, context)%>new
|
<%
else
bg.succ
%>
| |
<%
end
%>
<%
ary.each do |rec|
bgattr = if rec.key == @edit
bg.succ
'bgcolor="#ddddaa"'
else
bg
end
%>
>
| [<%=a('delete', {'key'=>rec.key.to_s}, context)%>X]
<%=h rec.date %> |
<%=h rec.memo %> |
<%=h rec.value %> |
[<%=a('detail', {'key'=>rec.key.to_s}, context)%>>>] |
<%
end
%>
|
<%
if found
%>
<%=form('update', context)%>
<%
else
date = Time.now.strftime("%Y-%m-%d")
%>
<%=form('add', context)%>
<%
end
%>
|