Changeset 4199
- Timestamp:
- 07/14/07 07:35:53 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
components/todo_list/trunk/todo_list/todo/reminder_block.rhtml
r4143 r4199 1 <div class="inner_style" id='reminder_block_list'>1 <div id="reminder_block_list" class="inner_style"> 2 2 <div style="margin:0px; padding:0px;"> 3 3 <%= @reminder_block_list_str %> 4 4 </div> 5 6 <div id="todo_edit_window" style=" visibility: hidden;">5 <%= link_block_to_component('[_Todo_Reminder_ToHome]', {:controller => '/todo_list/todo', :action => 'main'}) %> 6 <div id="todo_edit_window" style="display:none;"> 7 7 <div class="rubricks_general_window_title"><%= hl("[_Todo_Reminder_Detail]") %></div> 8 8 <div class="rubricks_general_window_content" style="text-align: left;"> 9 <div id= 'todo_edit_window_content'></div>9 <div id="todo_edit_window_content"></div> 10 10 </div> 11 11 </div> 12 <script type="text/javascript">13 rubricks.todo_list.block.todo_edit_window = new Window('todo_edit_window',{displayNone:true, width:600, height:630,closeButton:true, maxButton:false, minButton:false, resize:false, modal:true, appendToBody:true});14 </script>12 <script type="text/javascript"> 13 rubricks.todo_list.block.todo_edit_window = new Window('todo_edit_window',{width:600, height:630, closeButton:true, maxButton:false, minButton:false, resize:false, modal:true, appendToBody:true}); 14 </script> 15 15 </div> components/todo_list/trunk/todo_list/todo/reminder_block_list.rhtml
r4143 r4199 1 <table class= 'rubricks_general_table_borderless' style="width:100%; border-collapse:separate;">1 <table class="rubricks_general_table_borderless" style="width:100%; border-collapse:separate;"> 2 2 <% if @remind_tasks.empty? %> 3 <tr class=''> 4 <td class='' valign="top"> 5 <%= hl("[_Todo_Reminder_NotFound]") %> 3 <tr> 4 <td valign="top"><%= hl("[_Todo_Reminder_NotFound]") %></td> 5 </tr> 6 <% else %> 7 <% @remind_tasks.each do |remind_task| %> 8 <tr> 9 <td valign="top"> 10 <div id="block_todo_<%= hl(remind_task.id) %>"> 11 <div> 12 <span style="margin: 0pt 10px 0pt 0pt; color: red;"><%= hl("[_Todo_TileView_label_closeOn]") %><%= hl(remind_task.close_on.strftime("%Y/%m/%d")) %></span> 13 <span valign="middle" class="icon_finish" style="padding-left:30px; padding-top:2px; padding-bottom:2px; margin: 2px 0px 2px 0px;"><img width=1 height=16><a style="cursor:pointer;" onclick="rubricks.todo_list.block.todo_edit_window_open('<%= remind_task.id %>')"><%= hl(remind_task.title) %></a> </span> 14 </div> 15 </div> 6 16 </td> 7 </tr> 8 <% else %> 9 <% @remind_tasks.each do |remind_task| %> 10 <tr class=''> 11 <td class='' valign="top"> 12 <div id='block_todo_<%= hl(remind_task.id) %>'> 13 <div style=''> 14 <span style="margin: 0pt 10px 0pt 0pt; color: red;"><%= hl("[_Todo_TileView_label_closeOn]") %><%= hl(remind_task.close_on.strftime("%Y/%m/%d")) %></span> 15 <span valign="middle" class="icon_finish" style="padding-left:30px; padding-top:2px; padding-bottom:2px; margin: 2px 0px 2px 0px;"><img width=1 height=16><a style="cursor:pointer;" onClick='rubricks.todo_list.block.todo_edit_window_open("<%= remind_task.id %>")'><%= hl(remind_task.title) %></a> </span> 16 </div> 17 </div> 18 </td> 19 </tr> 20 <% end %> 17 </tr> 18 <% end %> 21 19 <% end %> 22 <tr>23 <td class='rubricks_general_table_cell_dotted'>24 <span style="float: right;"><img width=1 height=16><%= link_to_main_with_menu hl("[_Todo_Reminder_ToHome]"), :url => {:controller => '/todo_list/todo', :action => 'main'} %></span>25 <%= link_to_main_with_menu '<span id="news_block_button" class="buttons icon_arrow_right" style="float: right;padding-top: 0px;padding-bottom: 0px;"class="buttons icon_arrow_right" style="float: right;padding-top: 0px;padding-bottom: 0px;"> </span>', :url => {:controller => '/todo_list/todo', :action => 'main'} %>26 </td>27 </tr>28 20 </table> components/todo_list/trunk/todo_list/todo_controller.rb
r4149 r4199 779 779 780 780 def reminder_block 781 @theme = current_user.rubricks_theme.name782 781 @reminder_block_list_str = simple_render_component_as_string('/todo_list/todo', 'reminder_block_list', {}) 783 782 end 784 783 785 784 def reminder_block_list 786 unless TodoList::TodoListConfig.instance.site_reminder_flag? 785 if TodoList::TodoListConfig.instance.site_reminder_flag? 786 @remind_tasks = TodoList::TodoListTodo.find_remind_tasks_by_user(true, current_user.id) 787 else 787 788 @remind_tasks = [] 788 else789 @remind_tasks = TodoList::TodoListTodo.find_remind_tasks_by_user(true, current_user.id)790 789 end 791 790 end
