Changeset 5848

Show
Ignore:
Timestamp:
07/15/08 09:04:24 (4 months ago)
Author:
uta
Message:

2008/07/15 sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubricks_core/trunk/app/models/rubricks_trail.rb

    r5759 r5848  
    7575      end 
    7676      if filter_conditions[:trails_user_name].blank? 
    77         queries << 'user_login_name != ?' 
    78         conditions << '' 
     77        queries << 'user_login_name is not null' 
    7978      else 
    8079        queries << 'user_login_name = ?' 
  • rubricks_core/trunk/components/system/account_controller.rb

    r5820 r5848  
    136136        ru.ignore_csrf_validation = true 
    137137        ru.save! 
    138         rubricks_logger({:action_type => :update, :component_name => 'auth', :component_display_name => '[_Common_Authentication]', :data => ru}) 
     138        rubricks_logger({:action_type => :update, :component_name => 'auth', :component_display_name => '[_Common_Authentication]', :note => '[_System_Account_ReissuePassword]', :data => ru}) 
    139139      end 
    140140      flash[:login_message] = RubricksLib.hl('[_System_Account_MessageReissue]') + RubricksLib.get_password_messages 
     
    239239  def user_image_delete 
    240240    options = merge_options 
    241     ru_id = current_user.id 
    242     begin 
    243       ActiveRecord::Base.transaction do 
    244         RubricksUserImage.destroy_all(['rubricks_user_id = ?', ru_id]) 
    245         @detail = simple_render_component_as_string('/org/index', 'user_show', {:id => ru_id}) 
    246       end 
     241    @ru = current_user 
     242    begin 
     243      ActiveRecord::Base.transaction do 
     244        RubricksUserImage.destroy_all(['rubricks_user_id = ?', @ru.id]) 
     245        @detail = simple_render_component_as_string('/org/index', 'user_show', {:id => @ru.id}) 
     246      end 
     247      rubricks_logger({:action_type => :delete, :note => '[_System_UserManagement_UserImageDelete]', :data => @ru}) 
    247248      flash[:user_management_message] = options[:msg_user_image_delete] 
    248249    rescue Exception => ex 
     
    260261        RubricksUserImage.save_file(params[:user_image_upload][:file], {:user => @ru}) 
    261262      end 
     263      rubricks_logger({:action_type => :upload, :note => '[_System_UserManagement_UserImageUpload]', :data => @ru}) 
    262264      flash[:user_management_message] = options[:msg_user_image_upload] 
    263265    rescue Exception => ex 
  • rubricks_core/trunk/components/system/admin_config_controller.rb

    r5781 r5848  
    2525        rch_list = params[:holidays].json2ruby.map do |d| 
    2626          date = Date::new(d['year'].to_i, d['month'].to_i, d['day'].to_i) 
    27           rch = RubricksCalendarHoliday.find_by_date(date) 
    28           rch.destroy unless rch.nil? 
     27          RubricksCalendarHoliday.find_by_date(date) 
    2928        end 
     29        rch_list.compact! 
    3030        @holidays = rch_list.to_json 
    3131        rubricks_logger({:action_type => :delete, :note => '[_System_AdminConfig_TabHoliday]', :data => rch_list}) 
     32        RubricksCalendarHoliday.destroy_all(['id in (?)', rch_list.map{|rch| rch.id}]) 
    3233      end 
    3334    end 
     
    8384    begin 
    8485      ActiveRecord::Base.transaction do 
    85         rubricks_logger({:action_type => :delete, :note => '[_System_AdminConfig_TabHoliday]'}) 
     86        rubricks_logger({:action_type => :delete, :note => '[_System_AdminConfig_MessageHolidayInitialize]'}) 
    8687        RubricksCalendarHoliday.destroy_all 
    8788      end 
  • rubricks_core/trunk/components/system/calendar/show.rhtml

    r5056 r5848  
    11<script type="text/javascript"> 
    22  if ($('calendar_block')) { 
    3     rubricks.system.calendar.show_detail_calendar = true; 
    4     rubricks.system.calendar.calendarBlock = new Calendar( 
    5       'calendar_block', 
    6       { 
    7         size:              'small', 
    8         holidays:          <%= @holidays.to_json %>, 
    9         schedules:         <%= @schedules.to_json %>, 
    10         initDate:          new Date(<%= hl(@today.year) %>, <%= hl(@today.month - 1) %>, <%= hl(@today.day) %>), 
    11         cssPrefix:         'custom_block_', 
    12         changeCalendar:    rubricks.common.CalendarComponent.changeCalendar('rubricks.system.calendar.calendarBlock', '<%= url_for(:controller => '/system/calendar', :action => 'change_calendar') %>'), 
    13         monthHeaderFormat: '<%= hl('[_Common_YearMonth_Format_String]') %>', 
    14         dayOfWeek: [ 
    15           '<%= hl('[_Common_Sunday]') %>', 
    16           '<%= hl('[_Common_Monday]') %>', 
    17           '<%= hl('[_Common_Tuesday]') %>', 
    18           '<%= hl('[_Common_Wednesday]') %>', 
    19           '<%= hl('[_Common_Thursday]') %>', 
    20           '<%= hl('[_Common_Friday]') %>', 
    21           '<%= hl('[_Common_Saturday]') %>', 
    22         ], 
    23         afterSelect: function(date, calendar) { 
    24           if (!rubricks.system.calendar.show_detail_calendar) return; 
    25           var params = {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()}; 
    26           new Ajax.Updater( 
    27             'system_calendar_container', 
    28             '<%= url_for(:controller => '/system/calendar', :action => 'show_detail') %>', 
    29             { 
    30               asynchronous: true, 
    31               evalScripts:  true, 
    32               onLoaded:     function() { rubricks.common.rubricks_wait_message_close() }, 
    33               onLoading:    function() { rubricks.common.rubricks_wait_message_open() }, 
    34               onSuccess:    function() { rubricks.system.calendar.calendar_window.center(); rubricks.system.calendar.calendar_window.open(); }, 
    35               parameters:   params 
    36             } 
    37           ); 
     3    (function() { 
     4      rubricks.system.calendar.show_detail_calendar = true; 
     5      rubricks.system.calendar.calendarBlock = new Calendar( 
     6        'calendar_block', 
     7        { 
     8          size:              'small', 
     9          holidays:          <%= @holidays.to_json %>, 
     10          schedules:         <%= @schedules.to_json %>, 
     11          initDate:          new Date(<%= hl(@today.year) %>, <%= hl(@today.month - 1) %>, <%= hl(@today.day) %>), 
     12          cssPrefix:         'custom_block_', 
     13          changeCalendar:    rubricks.common.CalendarComponent.changeCalendar('rubricks.system.calendar.calendarBlock', '<%= url_for(:controller => '/system/calendar', :action => 'change_calendar') %>'), 
     14          monthHeaderFormat: '<%= hl('[_Common_YearMonth_Format_String]') %>', 
     15          dayOfWeek: [ 
     16            '<%= hl('[_Common_Sunday]') %>', 
     17            '<%= hl('[_Common_Monday]') %>', 
     18            '<%= hl('[_Common_Tuesday]') %>', 
     19            '<%= hl('[_Common_Wednesday]') %>', 
     20            '<%= hl('[_Common_Thursday]') %>', 
     21            '<%= hl('[_Common_Friday]') %>', 
     22            '<%= hl('[_Common_Saturday]') %>' 
     23          ], 
     24          afterSelect: function(date, calendar) { 
     25            if (!rubricks.system.calendar.show_detail_calendar) return; 
     26            var params = {year: date.getFullYear(), month: date.getMonth() + 1, day: date.getDate()}; 
     27            new Ajax.Updater( 
     28              'system_calendar_container', 
     29              '<%= url_for(:controller => '/system/calendar', :action => 'show_detail') %>', 
     30              { 
     31                asynchronous: true, 
     32                evalScripts:  true, 
     33                onLoaded:     function() { rubricks.common.rubricks_wait_message_close() }, 
     34                onLoading:    function() { rubricks.common.rubricks_wait_message_open() }, 
     35                onSuccess:    function() { rubricks.system.calendar.calendar_window.center(); rubricks.system.calendar.calendar_window.open(); }, 
     36                parameters:   params 
     37              } 
     38            ); 
     39          } 
    3840        } 
    39       } 
    40     ); 
     41      ); 
     42    }).callAfterLoading(); 
    4143  } 
    4244</script> 
  • rubricks_core/trunk/components/system/languages/english.rb

    r5820 r5848  
    459459      '_System_UserManagement_UserCreate'                           => 'User Create', 
    460460      '_System_UserManagement_UserExport'                           => 'User Export', 
     461      '_System_UserManagement_UserImageDelete'                      => 'User Image Delete', 
     462      '_System_UserManagement_UserImageUpload'                      => 'User Image Upload', 
    461463      '_System_UserManagement_UserImport'                           => 'User Import', 
    462464      '_System_UserManagement_UserInvalidate'                       => 'User Invalidate', 
  • rubricks_core/trunk/components/system/languages/japanese.rb

    r5834 r5848  
    498498      '_System_Login_PasswordConfirm'                               => '[確認å 
    499499¥åŠ›]', 
    500       '_System_Login_PasswordNew'                                   => '新しいパスワヌド', 
     500      '_System_Login_PasswordNew'                                   => '新パスワヌド', 
    501501      '_System_Login_Success'                                       => 'ログむン成功', 
    502502      '_System_Menu_Rubricks'                                       => 'Rubricks', 
     
    578578      '_System_UserManagement_UserExport'                           => 'ナヌザ惠
    579579報゚クスポヌト', 
     580      '_System_UserManagement_UserImageDelete'                      => 'ナヌザ画像削陀', 
     581      '_System_UserManagement_UserImageUpload'                      => 'ナヌザ画像アップロヌド', 
    580582      '_System_UserManagement_UserImport'                           => 'ナヌザ惠
    581583報むンポヌト', 
  • rubricks_core/trunk/components/system/login/_change_password_form.rhtml

    r5781 r5848  
    22  <div class="rubricks_login_form"> 
    33    <dl> 
    4       <dt style="width:120px;"><%= hl('[_System_Login_PasswordNew]') %></dt> 
    5       <dd><%= password_field 'change_password', 'raw_password', :size => 16, :class => 'input_text_inactive focus' %></dd> 
    6       <dt style="width:120px;"><%= hl('[_System_Login_PasswordConfirm]') %></dt> 
    7       <dd><%= password_field 'change_password', 'raw_password_confirm', :size => 16, :class => 'input_text_inactive focus' %></dd> 
     4      <dt style="width:90px;"><%= hl('[_System_Login_PasswordNew]') %></dt> 
     5      <dd style="margin-left:90px;"><%= password_field 'change_password', 'raw_password', :size => 16, :class => 'input_text_inactive focus' %></dd> 
     6      <dt style="width:90px;"><%= hl('[_System_Login_PasswordConfirm]') %></dt> 
     7      <dd style="margin-left:90px;"><%= password_field 'change_password', 'raw_password_confirm', :size => 16, :class => 'input_text_inactive focus' %></dd> 
    88    </dl> 
    99    <div class="rubricks_layout_buttons"> 
  • rubricks_core/trunk/components/system/login/_reissue_password_form.rhtml

    r5781 r5848  
    33    <dl> 
    44      <dt style="width:120px;"><%= hl('[_System_Account_ReissueMail]') %></dt> 
    5       <dd><%= text_field 'reissue', 'email', :size => 16, :class => 'input_text_inactive focus' %></dd> 
     5      <dd style="margin-left:120px;"><%= text_field 'reissue', 'email', :size => 16, :class => 'input_text_inactive focus' %></dd> 
    66    </dl> 
    77    <div class="rubricks_layout_buttons"> 
  • rubricks_core/trunk/vendor/plugins/rubricks/lib/action_controller_user_management.rb

    r5819 r5848  
    424424        begin 
    425425          ActiveRecord::Base.transaction do 
    426             RubricksUserImage.destroy_all(['rubricks_user_id = ?', params[:id].to_i]) 
    427             @detail = simple_render_component_as_string(params[:controller].sub(%r(^/?), '/'), 'user_show', {:id => params[:id]}) 
    428           end 
     426            @ru = RubricksUser.find(params[:id]) 
     427            RubricksUserImage.destroy_all(['rubricks_user_id = ?', @ru.id]) 
     428            @detail = simple_render_component_as_string(params[:controller].sub(%r(^/?), '/'), 'user_show', {:id => @ru.id}) 
     429          end 
     430          rubricks_logger({:action_type => :delete, :note => '[_System_UserManagement_UserImageDelete]', :data => @ru}) 
    429431          flash[:user_management_message] = options[:msg_user_image_delete] 
    430432        rescue Exception => ex 
     
    443445            RubricksUserImage.save_file(params[:user_image_upload][:file], {:user => @ru}) 
    444446          end 
     447          rubricks_logger({:action_type => :upload, :note => '[_System_UserManagement_UserImageUpload]', :data => @ru}) 
    445448          flash[:user_management_message] = options[:msg_user_image_upload] 
    446449        rescue Exception => ex