Changeset 749
- Timestamp:
- 02/21/08 18:50:54 (11 months ago)
- Files:
-
- trunk/app/controllers/action_key_controller.rb (modified) (1 diff)
- trunk/app/controllers/application.rb (modified) (1 diff)
- trunk/app/controllers/asset_type_controller.rb (modified) (1 diff)
- trunk/app/controllers/asset_type_icon_controller.rb (modified) (1 diff)
- trunk/app/controllers/attachment_controller.rb (modified) (2 diffs)
- trunk/app/controllers/customer_controller.rb (modified) (1 diff)
- trunk/app/controllers/form_type_controller.rb (modified) (1 diff)
- trunk/app/controllers/keyring_controller.rb (modified) (2 diffs)
- trunk/app/controllers/task_controller.rb (modified) (3 diffs)
- trunk/app/controllers/task_type_controller.rb (modified) (1 diff)
- trunk/app/controllers/type_attachment_controller.rb (modified) (2 diffs)
- trunk/app/controllers/user_group_controller.rb (modified) (2 diffs)
- trunk/app/models/attachment_methods.rb (modified) (2 diffs)
- trunk/app/views/shared/_list_items.rhtml (modified) (1 diff)
- trunk/po/fi_FI/norfello_cmms.po (modified) (54 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/app/controllers/action_key_controller.rb
r718 r749 15 15 def list 16 16 @title = _('Keys') 17 @fields = [['Name (controller/action)', :name, 'name'], ['Information', :info, 'info']] 18 @items = items_for_page(ActionKey) 17 @fields = [ 18 [_('Name (controller/action)'), :name, 'name'], 19 [_('Information'), :info, 'info'] 20 ] 21 @items = items_for_page(ActionKey, :order => 'name') 19 22 common_list 20 23 end trunk/app/controllers/application.rb
r747 r749 660 660 @items_limit ||= 20 661 661 @items_offset ||= (params[:items_offset].to_i || 0) 662 sort_sql = (@fields.collect { |f| f[2] })[params[:sort_column].to_i] if @fields and params[:sort_column] 663 sort_sql += ' DESC' if sort_sql and params[:sort_desc] 664 @sort_column = params[:sort_column].to_i if params[:sort_column] 665 @sort_desc = 1 if params[:sort_desc] 666 return finder.send(finder_method, :all, {:readonly => true, :limit => @items_limit, :offset => @items_offset, :order => sort_sql}.merge(options)) 662 # Sorting params overwrite :order in options 663 if @fields and params[:sort_column] 664 @sort_column = params[:sort_column].to_i 665 if @sort_column < @fields.size 666 sort_sql = (@fields.collect { |f| f[2] })[@sort_column] 667 if params[:sort_desc] 668 sort_sql += ' DESC' 669 @sort_desc = 1 670 end 671 options[:order] = sort_sql 672 end 673 end 674 return finder.send(finder_method, :all, {:readonly => true, :limit => @items_limit, :offset => @items_offset}.merge(options)) 667 675 end 668 676 trunk/app/controllers/asset_type_controller.rb
r718 r749 16 16 @title = _('Asset types') 17 17 @fields = [ 18 [_('Name'), :name ],19 [_('Icon'), :asset_type_icon ],18 [_('Name'), :name, 'name'], 19 [_('Icon'), :asset_type_icon, 'asset_type_icon_id'], 20 20 ] 21 21 @actions = [ trunk/app/controllers/asset_type_icon_controller.rb
r718 r749 21 21 [_('Icon'), :self] 22 22 ] 23 @items = items_for_page(AssetTypeIcon )23 @items = items_for_page(AssetTypeIcon, :order => 'id') 24 24 @actions = [ ] 25 25 common_list trunk/app/controllers/attachment_controller.rb
r701 r749 20 20 def list 21 21 @fields = [ 22 [_('Attachment'), :self ],22 [_('Attachment'), :self, 'attachments.id'], 23 23 [_('Name'), :name_or_filename], 24 [_('Creator'), :creator ],25 [_('Creation date'), :created_at ],26 [_('Asset'), :asset ]24 [_('Creator'), :creator, 'created_by'], 25 [_('Creation date'), :created_at, 'attachments.created_at'], 26 [_('Asset'), :asset, 'asset_id'] 27 27 ] 28 28 @actions = [ … … 38 38 find_selected_assets 39 39 40 @items_limit = 20 41 @items_offset = params[:items_offset].to_i || 0 42 @items = Attachment.find_authorized_to_read_without(:data, :all, :conditions => @selected_assets_condition, :offset => @items_offset, :limit => @items_limit, :order => 'attachments.created_at DESC', :include => [:asset, :creator]) 40 @items = items_for_page(Attachment, :finder_method => :find_authorized_to_read_without_data, :conditions => @selected_assets_condition, :order => 'attachments.id DESC', :include => [:asset, :creator]) 41 43 42 @items_count = (@items.size < @items_limit) ? @items_offset + @items.size : Attachment.count_authorized_to(:read, @selected_assets_condition) 44 43 trunk/app/controllers/customer_controller.rb
r725 r749 26 26 @title = _('Customers') 27 27 @fields = [ 28 [_('Name'), :name ],29 [_('Username'), :login ],28 [_('Name'), :name, 'full_name'], 29 [_('Username'), :login, 'login'], 30 30 [_('Assets'), :asset_count] 31 31 ] trunk/app/controllers/form_type_controller.rb
r718 r749 25 25 [_('Template'), :form_template] 26 26 ] 27 @items = items_for_page(FormType, :conditions => ['ready = ?', true] )27 @items = items_for_page(FormType, :conditions => ['ready = ?', true], :order => 'name') 28 28 @actions ||= [ 29 29 [_('Edit'), {:action=> 'edit', :image=>'16x16/edit.gif'}], trunk/app/controllers/keyring_controller.rb
r718 r749 15 15 def list 16 16 @title = _('Keyrings') 17 @fields = [ 18 [_('Name'), :name, 'name'], 19 [_('Information'), :info, 'info'] 20 ] 17 21 @items = items_for_page(Keyring, :order => 'name') 18 @fields = [19 [_('Name'), :name],20 [_('Information'), :info]21 ]22 22 @actions = [ 23 [_('Keys'), {:action=>'edit_keys', :image=>'16x16/keys.png'}],24 [_('Owners'), {:action=>'edit_owners', :image=>'16x16/user_group.png'}],25 [_('Edit'), {:action=>'edit', :image=>'16x16/edit.gif'}]23 [_('Keys'), {:action=>'edit_keys', :image=>'16x16/keys.png'}], 24 [_('Owners'), {:action=>'edit_owners', :image=>'16x16/user_group.png'}], 25 [_('Edit'), {:action=>'edit', :image=>'16x16/edit.gif'}] 26 26 ] 27 27 common_list … … 66 66 @keyring = Keyring.find params[:id], :readonly => true 67 67 @items_count = @keyring.action_keys.count 68 @items = items_for_page(@keyring.action_keys)69 68 @title = _('Keys in the keyring %s', @keyring.name) 70 69 @fields = [ 71 [_('Key'), :name ],72 [_('Information'), :info ]70 [_('Key'), :name, 'name'], 71 [_('Information'), :info, 'info'] 73 72 ] 73 @items = items_for_page(@keyring.action_keys) 74 74 @actions = [] 75 75 @check_title = _('Remove') trunk/app/controllers/task_controller.rb
r747 r749 64 64 conditions.push(TaskType.get_service_request_type.id) 65 65 66 @items = items_for_page(Task, :finder_method => :find_authorized_to_read, :conditions => conditions, : readonly => true)66 @items = items_for_page(Task, :finder_method => :find_authorized_to_read, :conditions => conditions, :order => 'id') 67 67 common_list 68 68 end … … 390 390 conditions.push(TaskType.get_service_request_type.id) 391 391 392 @items = items_for_page(Task, :finder_method => :find_authorized_to_read, :conditions => conditions, : readonly => true)392 @items = items_for_page(Task, :finder_method => :find_authorized_to_read, :conditions => conditions, :order => 'id') 393 393 common_list 394 394 end … … 404 404 405 405 @items = items_for_page(Task, :finder_method => :find_authorized_to_read, 406 :conditions => ['task_type_id = ? AND state = ?', TaskType.get_service_request_type.id, Task.NEW], 407 :readonly => true) 406 :conditions => ['task_type_id = ? AND state = ?', TaskType.get_service_request_type.id, Task.NEW]) 408 407 common_list 409 408 end trunk/app/controllers/task_type_controller.rb
r718 r749 18 18 def list 19 19 @title = _('Task types') 20 @fields = [ [_('Name'), :name ],21 [_('Notification address'), :notification_email ],22 [_('Description'), :description ],20 @fields = [ [_('Name'), :name, 'name'], 21 [_('Notification address'), :notification_email, 'notification_email'], 22 [_('Description'), :description, 'description'], 23 23 [_('Template'), :task_template], 24 24 [_('Task count'), :task_count] trunk/app/controllers/type_attachment_controller.rb
r701 r749 17 17 def list 18 18 @fields = [ 19 [_('Attachment'), :self ],19 [_('Attachment'), :self, 'type_attachments.id'], 20 20 [_('Name'), :name_or_filename], 21 [_('Creator'), :creator ],22 [_('Creation date'), :created_at ],23 [_('Asset type'), :asset_type ]21 [_('Creator'), :creator, 'created_by'], 22 [_('Creation date'), :created_at, 'type_attachments.created_at'], 23 [_('Asset type'), :asset_type, 'asset_type_id'] 24 24 ] 25 25 @actions = [ 26 26 [_('Download'), {:action => 'download', :image => '16x16/download.png'}] 27 27 ] 28 29 find_selected_assets30 28 31 29 if session[:select_branches] … … 35 33 end 36 34 35 find_selected_assets 37 36 38 @items_limit = 20 39 @items_offset = params[:items_offset].to_i || 0 40 @items = TypeAttachment.find_authorized_to_read_without(:data, :all, :conditions => @selected_asset_types_condition, :order => 'type_attachments.created_at DESC', :include => [:asset_type, :creator]) 37 @items = items_for_page(TypeAttachment, :finder_method => :find_authorized_to_read_without_data, :conditions => @selected_asset_types_condition, :order => 'type_attachments.id DESC', :include => [:asset_type, :creator]) 41 38 42 # FIXME: We should use :limit and :offset on the finds above instead of doing this. But this way we get the count easily... 43 @items_count = @items.size 44 @items = @items[@items_offset..(@items_offset + @items_limit - 1)] 39 @items_count = (@items.size < @items_limit) ? @items_offset + @items.size : TypeAttachment.count_authorized_to(:read, @selected_asset_types_condition) 45 40 46 41 # Render remove items form? trunk/app/controllers/user_group_controller.rb
r718 r749 19 19 def list 20 20 @title = _('User groups') 21 @fields = [ [_('Name'), :name, 'name'], 22 [_('Information'), :info, 'info'] 23 ] 21 24 @items = items_for_page(UserGroup, :order => 'name') 22 @fields = [ [_('Name'), :name],23 [_('Information'), :info]24 ]25 25 @actions = [ [_('Users'), {:action => 'users', :image => '16x16/user_group.png' }], 26 26 [_('Edit'), {:action => 'edit', :image => '16x16/edit.gif' }] … … 28 28 # Render remove user groups form? 29 29 @check = session[:user].authorized?(LoginSystem::ActionKeyMapper.keys_for('user_group', 'remove')) 30 common_list30 common_list 31 31 end 32 32 trunk/app/models/attachment_methods.rb
r508 r749 5 5 module AttachmentMethods 6 6 MAX_SIZE = 5.megabytes # TODO: Discuss this! 7 8 # Method: included 9 # =================== 10 # Hook that creates the class method(s) 11 def self.included(klass) 12 # Method: klass.find_authorized_to_read_without_data 13 # ================================================== 14 # Returns objects, which the user is authorized to read (like 15 # find_authorized_to_read), without the data attribute. 16 # 17 def klass.find_authorized_to_read_without_data(*args) 18 find_authorized_to_read_without(:data, *args) 19 end 20 end 7 21 8 22 # Setter for file field data … … 46 60 47 61 # Returns true if the attachment is an image file 48 def is_image? 62 def is_image? 49 63 self.content_type.match(/^image\//) != nil 50 64 end trunk/app/views/shared/_list_items.rhtml
r701 r749 321 321 when 'Attachment' 322 322 link_to_attachment(value, true) 323 when 'TypeAttachment' 324 link_to_type_attachment(value, true) 323 325 when 'FormTemplate' 324 326 image_tag('16x16/download.png') + trunk/po/fi_FI/norfello_cmms.po
r743 r749 2 2 msgstr "" 3 3 "Project-Id-Version: NorfelloCMMS SVN trunk\n" 4 "POT-Creation-Date: 2008-0 1-31 19:21+0200\n"5 "PO-Revision-Date: 2008-0 1-31 19:33+0200\n"4 "POT-Creation-Date: 2008-02-21 13:57+0200\n" 5 "PO-Revision-Date: 2008-02-21 13:59+0200\n" 6 6 "Last-Translator: Markku Oksanen <markku.oksanen@norfello.com>\n" 7 7 "Language-Team: Norfello Ltd. <contact@norfello.com>\n" … … 132 132 133 133 #: app/models/form_field.rb:41 134 #: app/controllers/customer_interface_controller.rb:4 6134 #: app/controllers/customer_interface_controller.rb:47 135 135 #: app/controllers/asset_field_controller.rb:114 136 136 msgid "Time" … … 319 319 #: app/helpers/customer_interface_helper.rb:176 320 320 #: app/helpers/customer_interface_helper.rb:195 321 #: app/controllers/customer_interface_controller.rb:16 1321 #: app/controllers/customer_interface_controller.rb:162 322 322 #: app/views/task/_display_task_event.rhtml:6 323 323 #: app/views/task/_display_task_event.rhtml:8 … … 674 674 #: app/helpers/customer_interface_helper.rb:71 675 675 #: app/helpers/application_helper.rb:428 676 #: app/controllers/form_controller.rb:48 0676 #: app/controllers/form_controller.rb:483 677 677 msgid "Form" 678 678 msgstr "Lomake" … … 688 688 689 689 #: app/helpers/customer_interface_helper.rb:100 690 #: app/controllers/customer_interface_controller.rb:25 5690 #: app/controllers/customer_interface_controller.rb:256 691 691 msgid "Comment service request %s" 692 692 msgstr "Kommentoi palvelupyyntöÀ %s" … … 897 897 #: app/views/task/_form.rhtml:96 898 898 #: app/views/task/_form.rhtml:98 899 #: app/views/task/print_view.rhtml: 69900 #: app/views/task/print_view.rhtml: 71899 #: app/views/task/print_view.rhtml:36 900 #: app/views/task/print_view.rhtml:38 901 901 #: app/views/task/create.rhtml:39 902 902 msgid "hours" … … 914 914 msgid "no" 915 915 msgstr "ei" 916 917 #: app/helpers/application_helper.rb:844 918 #: app/views/shared/_list_items.rhtml:313 919 #: app/views/shared/export_items_csv.rhtml:39 920 #: app/views/form/remove.rhtml:5 921 #: app/views/customer_interface/_item_list.rhtml:66 922 msgid "Yes" 923 msgstr "KyllÀ" 924 925 #: app/helpers/application_helper.rb:844 926 #: app/views/shared/_list_items.rhtml:311 927 #: app/views/shared/export_items_csv.rhtml:37 928 #: app/views/customer_interface/_item_list.rhtml:64 929 msgid "No" 930 msgstr "Ei" 916 931 917 932 #: app/helpers/asset_field_helper.rb:52 … … 941 956 942 957 #: app/controllers/asset_controller.rb:30 943 #: app/views/task/print_view.rhtml: 81958 #: app/views/task/print_view.rhtml:54 944 959 msgid "Asset information" 945 960 msgstr "Kohteen tiedot " … … 966 981 967 982 #: app/controllers/asset_controller.rb:61 968 #: app/controllers/customer_interface_controller.rb:4 7969 #: app/controllers/customer_interface_controller.rb:16 4970 #: app/controllers/form_controller.rb:4 79983 #: app/controllers/customer_interface_controller.rb:48 984 #: app/controllers/customer_interface_controller.rb:165 985 #: app/controllers/form_controller.rb:482 971 986 #: app/controllers/task_controller.rb:43 972 987 #: app/controllers/task_controller.rb:52 … … 977 992 #: app/views/attachment/view.rhtml:4 978 993 #: app/views/task/_form.rhtml:51 994 #: app/views/debug.rhtml:4 979 995 #: app/views/form/view.rhtml:13 980 996 #: app/views/customer_interface/comment_service_request.rhtml:4 … … 989 1005 #: app/controllers/task_type_controller.rb:37 990 1006 #: app/controllers/task_type_controller.rb:52 991 #: app/controllers/customer_interface_controller.rb:21 0992 #: app/controllers/user_group_controller.rb:2 21007 #: app/controllers/customer_interface_controller.rb:211 1008 #: app/controllers/user_group_controller.rb:21 993 1009 #: app/controllers/user_group_controller.rb:40 994 1010 #: app/controllers/user_group_controller.rb:62 … … 1000 1016 #: app/controllers/customer_controller.rb:50 1001 1017 #: app/controllers/customer_controller.rb:77 1002 #: app/controllers/action_key_controller.rb:2 51003 #: app/controllers/action_key_controller.rb:3 41018 #: app/controllers/action_key_controller.rb:28 1019 #: app/controllers/action_key_controller.rb:37 1004 1020 #: app/controllers/asset_field_controller.rb:21 1005 1021 #: app/controllers/asset_field_controller.rb:41 … … 1014 1030 #: app/controllers/form_type_controller.rb:22 1015 1031 #: app/controllers/type_attachment_controller.rb:20 1016 #: app/controllers/keyring_controller.rb:1 91032 #: app/controllers/keyring_controller.rb:18 1017 1033 #: app/controllers/keyring_controller.rb:33 1018 1034 #: app/controllers/keyring_controller.rb:51 … … 1020 1036 #: app/views/attachment/attach.rhtml:9 1021 1037 #: app/views/asset_tree/search.rhtml:4 1022 #: app/views/task/print_view.rhtml: 901038 #: app/views/task/print_view.rhtml:64 1023 1039 #: app/views/form_type/create_step2.rhtml:6 1024 1040 #: app/views/form_type/create_step4.rhtml:9 … … 1066 1082 #: app/controllers/asset_controller.rb:140 1067 1083 #: app/controllers/asset_controller.rb:247 1068 #: app/views/task/print_view.rhtml: 861084 #: app/views/task/print_view.rhtml:60 1069 1085 #: app/views/asset/_view_table.rhtml:16 1070 1086 msgid "Code" … … 1073 1089 #: app/controllers/asset_controller.rb:143 1074 1090 #: app/controllers/asset_controller.rb:250 1075 #: app/views/task/print_view.rhtml: 951091 #: app/views/task/print_view.rhtml:69 1076 1092 #: app/views/asset/_view_table.rhtml:25 1077 1093 msgid "Customer" … … 1083 1099 #: app/controllers/task_type_controller.rb:38 1084 1100 #: app/controllers/task_type_controller.rb:53 1085 #: app/controllers/customer_interface_controller.rb:16 51101 #: app/controllers/customer_interface_controller.rb:166 1086 1102 #: app/controllers/asset_type_controller.rb:46 1087 1103 #: app/controllers/asset_type_controller.rb:56 … … 1093 1109 #: app/controllers/user_controller.rb:112 1094 1110 #: app/views/task/_form.rhtml:108 1095 #: app/views/task/print_view.rhtml: 731096 #: app/views/task/print_view.rhtml: 1121111 #: app/views/task/print_view.rhtml:46 1112 #: app/views/task/print_view.rhtml:86 1097 1113 #: app/views/asset/_view_table.rhtml:40 1098 1114 msgid "Description" … … 1105 1121 #: app/controllers/asset_controller.rb:160 1106 1122 #: app/controllers/asset_controller.rb:182 1107 #: app/controllers/form_controller.rb:4 551123 #: app/controllers/form_controller.rb:438 1108 1124 #: app/controllers/task_controller.rb:308 1109 1125 #: app/controllers/attachment_controller.rb:128 … … 1143 1159 #: app/controllers/asset_controller.rb:265 1144 1160 #: app/controllers/asset_controller.rb:315 1145 #: app/controllers/form_controller.rb:15 21161 #: app/controllers/form_controller.rb:154 1146 1162 #: app/controllers/task_controller.rb:149 1147 1163 #: app/controllers/task_controller.rb:259 … … 1188 1204 #: app/controllers/user_group_controller.rb:26 1189 1205 #: app/controllers/asset_type_controller.rb:23 1190 #: app/controllers/form_controller.rb:48 41206 #: app/controllers/form_controller.rb:487 1191 1207 #: app/controllers/customer_controller.rb:33 1192 1208 #: app/controllers/asset_field_controller.rb:27 … … 1274 1290 msgstr "Muokkaa oikeuksienhallinnan asetuksia" 1275 1291 1276 #: app/controllers/customer_interface_controller.rb:4 81292 #: app/controllers/customer_interface_controller.rb:49 1277 1293 msgid "Action" 1278 1294 msgstr "Tapahtuma" 1279 1295 1280 #: app/controllers/customer_interface_controller.rb:11 01296 #: app/controllers/customer_interface_controller.rb:111 1281 1297 #: app/controllers/message_controller.rb:21 1282 1298 #: app/views/message/send_message.rhtml:21 … … 1285 1301 msgstr "Aihe" 1286 1302 1287 #: app/controllers/customer_interface_controller.rb:11 11303 #: app/controllers/customer_interface_controller.rb:112 1288 1304 msgid "Status" 1289 1305 msgstr "Tila" 1290 1306 1291 #: app/controllers/customer_interface_controller.rb:11 21307 #: app/controllers/customer_interface_controller.rb:113 1292 1308 msgid "Last updated" 1293 1309 msgstr "Muokattu" 1294 1310 1295 #: app/controllers/customer_interface_controller.rb:15 81311 #: app/controllers/customer_interface_controller.rb:159 1296 1312 #: app/views/layouts/customer_interface.rhtml:58 1297 1313 msgid "Submit service request" 1298 1314 msgstr "LÀhetÀ palvelupyyntö" 1299 1315 1300 #: app/controllers/customer_interface_controller.rb:16 31316 #: app/controllers/customer_interface_controller.rb:164 1301 1317 msgid "Summary" 1302 1318 msgstr "Yhteenveto" 1303 1319 1304 #: app/controllers/customer_interface_controller.rb:18 61320 #: app/controllers/customer_interface_controller.rb:187 1305 1321 msgid "Service request %s successfully received" 1306 1322 msgstr "Palvelupyyntö %s vastaanotettu" 1307 1323 1308 #: app/controllers/customer_interface_controller.rb:19 01324 #: app/controllers/customer_interface_controller.rb:191 1309 1325 msgid "Submitting" 1310 1326 msgstr "LÀhetys" 1311 1327 1312 #: app/controllers/customer_interface_controller.rb:19 81328 #: app/controllers/customer_interface_controller.rb:199 1313 1329 #: app/views/customer_interface/comment_service_request.rhtml:15 1314 1330 msgid "Submit" 1315 1331 msgstr "LÀhetÀ" 1316 1332 1317 #: app/controllers/customer_interface_controller.rb:20 61333 #: app/controllers/customer_interface_controller.rb:207 1318 1334 #: app/controllers/user_controller.rb:314 1319 1335 #: app/views/layouts/customer_interface.rhtml:50 … … 1322 1338 msgstr "Omat tiedot" 1323 1339 1324 #: app/controllers/customer_interface_controller.rb:21 11340 #: app/controllers/customer_interface_controller.rb:212 1325 1341 #: app/controllers/customer_controller.rb:29 1326 1342 #: app/controllers/customer_controller.rb:47 … … 1335 1351 msgstr "KÀyttÀjÀnimi" 1336 1352 1337 #: app/controllers/customer_interface_controller.rb:21 21353 #: app/controllers/customer_interface_controller.rb:213 1338 1354 #: app/controllers/customer_controller.rb:52 1339 1355 #: app/controllers/customer_controller.rb:79 … … 1345 1361 msgstr "SÀhköpostiosoite" 1346 1362 1347 #: app/controllers/customer_interface_controller.rb:21 31363 #: app/controllers/customer_interface_controller.rb:214 1348 1364 #: app/controllers/customer_controller.rb:53 1349 1365 #: app/controllers/customer_controller.rb:80 … … 1355 1371 msgstr "Puhelinnumero" 1356 1372 1357 #: app/controllers/customer_interface_controller.rb:21 41373 #: app/controllers/customer_interface_controller.rb:215 1358 1374 #: app/controllers/customer_controller.rb:54 1359 1375 #: app/controllers/customer_controller.rb:81 … … 1365 1381 msgstr "Kaupunki" 1366 1382 1367 #: app/controllers/customer_interface_controller.rb:21 51383 #: app/controllers/customer_interface_controller.rb:216 1368 1384 #: app/controllers/customer_controller.rb:55 1369 1385 #: app/controllers/customer_controller.rb:82 … … 1375 1391 msgstr "Maa" 1376 1392 1377 #: app/controllers/customer_interface_controller.rb:21 61393 #: app/controllers/customer_interface_controller.rb:217 1378 1394 msgid "Send me notification when a service request is created" 1379 1395 msgstr "LÀhetÀ minulle ilmoitus kun palvelupyyntö luodaan" 1380 1396 1381 #: app/controllers/customer_interface_controller.rb:21 71397 #: app/controllers/customer_interface_controller.rb:218 1382 1398 msgid "Send me notification when a service request is assigned to a person" 1383 1399 msgstr "LÀhetÀ minulle ilmoitus kun palvelupyyntö mÀÀrÀtÀÀn henkilölle" 1384 1400 1385 #: app/controllers/customer_interface_controller.rb:21 81401 #: app/controllers/customer_interface_controller.rb:219 1386 1402 msgid "Send me notification when a service request is accepted by a person" 1387 1403 msgstr "LÀhetÀ minulle ilmoitus kun palvelupyyntö hyvÀksytÀÀn" 1388 1404 1389 #: app/controllers/customer_interface_controller.rb:2 191405 #: app/controllers/customer_interface_controller.rb:220 1390 1406 msgid "Send me notification when a service request is closed" 1391 1407 msgstr "LÀhetÀ minulle ilmoitus kun palvelupyyntö suljetaan" 1392 1408 1393 #: app/controllers/customer_interface_controller.rb:22 01409 #: app/controllers/customer_interface_controller.rb:221 1394 1410 msgid "Send me notification when a service request is reopened" 1395 1411 msgstr "LÀhetÀ minulle ilmoitus kun palvelupyyntö avataan uudelleen" 1396 1412 1397 #: app/controllers/customer_interface_controller.rb:22 11413 #: app/controllers/customer_interface_controller.rb:222 1398 1414 #: app/controllers/customer_controller.rb:61 1399 1415 #: app/controllers/customer_controller.rb:88 … … 1403 1419 msgstr "Kieli" 1404 1420 1405 #: app/controllers/customer_interface_controller.rb:23 31421 #: app/controllers/customer_interface_controller.rb:234 1406 1422 #: app/controllers/user_controller.rb:344 1407 1423 msgid "Your information has been updated" 1408 1424 msgstr "Tiedot pÀivitetty" 1409 1425 1410 #: app/controllers/customer_interface_controller.rb:23 61426 #: app/controllers/customer_interface_controller.rb:237 1411 1427 #: app/controllers/user_controller.rb:346 1412 1428 msgid "Unable to update your information" 1413 1429 msgstr "Tietojen pÀivittÀminen epÀonnistui" 1414 1430 1415 #: app/controllers/customer_interface_controller.rb:25 81431 #: app/controllers/customer_interface_controller.rb:259 1416 1432 msgid "Service request %s not found!" 1417 1433 msgstr "PalvelupyyntöÀ %s ei löydy!" 1418 1434 1419 #: app/controllers/customer_interface_controller.rb:26 61435 #: app/controllers/customer_interface_controller.rb:267 1420 1436 msgid "Comment successfully received" 1421 1437 msgstr "Kommentti vastaanotettu" 1422 1438 1423 #: app/controllers/customer_interface_controller.rb:27 21439 #: app/controllers/customer_interface_controller.rb:273 1424 1440 msgid "Comment can't be empty. Please provide one." 1425 1441 msgstr "Kommentti ei voi olla tyhjÀ. Ole hyvÀ ja tÀytÀ se." 1426 1442 1427 #: app/controllers/customer_interface_controller.rb: 2901428 #: app/controllers/form_controller.rb: 3551443 #: app/controllers/customer_interface_controller.rb:335 1444 #: app/controllers/form_controller.rb:552 1429 1445 msgid "Filled-out form %s (%s)" 1430 1446 msgstr "TÀytetty lomake %s (%s)" … … 1524 1540 msgstr "KÀyttÀjÀryhmÀt" 1525 1541 1526 #: app/controllers/user_group_controller.rb:2 31542 #: app/controllers/user_group_controller.rb:22 1527 1543 #: app/controllers/user_group_controller.rb:41 1528 1544 #: app/controllers/user_group_controller.rb:63 1529 1545 #: app/controllers/asset_permission_controller.rb:51 1530 #: app/controllers/action_key_controller.rb:26 1531 #: app/controllers/action_key_controller.rb:35 1532 #: app/controllers/keyring_controller.rb:20 1546 #: app/controllers/action_key_controller.rb:19 1547 #: app/controllers/action_key_controller.rb:29 1548 #: app/controllers/action_key_controller.rb:38 1549 #: app/controllers/keyring_controller.rb:19 1533 1550 #: app/controllers/keyring_controller.rb:34 1534 1551 #: app/controllers/keyring_controller.rb:52 1535 #: app/controllers/keyring_controller.rb:7 21552 #: app/controllers/keyring_controller.rb:71 1536 1553 msgid "Information" 1537 1554 msgstr "Tiedot" … … 1631 1648 msgstr "Muokkaa kohdetyyppiÀ" 1632 1649 1633 #: app/controllers/form_controller.rb:3 31650 #: app/controllers/form_controller.rb:35 1634 1651 msgid "Filled-out forms for selected assets in branch %s" 1635 1652 msgstr "Haaran %s valittujen kohteiden tÀytetyt lomakkeet" 1636 1653 1637 #: app/controllers/form_controller.rb:3 51654 #: app/controllers/form_controller.rb:37 1638 1655 msgid "Filled-out forms for asset %s" 1639 1656 msgstr "Kohteen %s tÀytetyt lomakkeet" 1640 1657 1641 #: app/controllers/form_controller.rb:5 01642 #: app/controllers/form_controller.rb:7 11658 #: app/controllers/form_controller.rb:52 1659 #: app/controllers/form_controller.rb:73 1643 1660 msgid "create form" 1644 1661 msgstr "luo lomake" 1645 1662 1646 #: app/controllers/form_controller.rb:5 61663 #: app/controllers/form_controller.rb:58 1647 1664 msgid "Select the form type to fill out" 1648 1665 msgstr "Valitse tÀytettÀvÀn lomakkeen tyyppi" 1649 1666 1650 #: app/controllers/form_controller.rb:6 01667 #: app/controllers/form_controller.rb:62 1651 1668 msgid "No form types defined." 1652 1669 msgstr "YhtÀÀn lomaketyyppiÀ ei ole mÀÀritelty." 1653 1670 1654 #: app/controllers/form_controller.rb:6 21671 #: app/controllers/form_controller.rb:64 1655 1672 msgid "Form type" 1656 1673 msgstr "Lomaketyyppi" 1657 1674 1658 #: app/controllers/form_controller.rb:6 51675 #: app/controllers/form_controller.rb:67 1659 1676 #: config/menu.rb:37 1660 1677 msgid "Fill out" 1661 1678 msgstr "TÀytÀ" 1662 1679 1663 #: app/controllers/form_controller.rb:7 51680 #: app/controllers/form_controller.rb:77 1664 1681 msgid "Fill out a form" 1665 1682 msgstr "TÀytÀ lomake" 1666 1683 1667 #: app/controllers/form_controller.rb:9 11684 #: app/controllers/form_controller.rb:93 1668 1685 msgid "A closing form has already been filled for this task" 1669 1686 msgstr "TÀlle tehtÀvÀlle on jo tÀytetty sulkemislomake" 1670 1687 1671 #: app/controllers/form_controller.rb:1 481688 #: app/controllers/form_controller.rb:150 1672 1689 #: app/views/data_permission/preview.rhtml:5 1673 1690 #: app/views/data_permission/edit.rhtml:5 … … 1676 1693 msgstr "Muuta lomaketta" 1677 1694 1678 #: app/controllers/form_controller.rb:26 71695 #: app/controllers/form_controller.rb:269 1679 1696 msgid "Search for filled-out forms in branch %s (%s)" 1680 1697 msgstr "Etsi tÀytettyjÀ lomakkeita haarasta %s (%s)" 1681 1698 1682 #: app/controllers/form_controller.rb:2 691699 #: app/controllers/form_controller.rb:271 1683 1700 msgid "Search for filled-out forms in asset %s (%s)" 1684 1701 msgstr "Etsi tÀytettyjÀ lomakkeita kohteesta %s (%s)" 1685 1702 1686 #: app/controllers/form_controller.rb:3 671703 #: app/controllers/form_controller.rb:350 1687 1704 msgid "Displaying the form" 1688 1705 msgstr "Lomakkeen nÀyttÀminen" 1689 1706 1690 #: app/controllers/form_controller.rb:4 471707 #: app/controllers/form_controller.rb:430 1691 1708 msgid "Preparing the document for download" 1692 1709 msgstr "Dokumentin valmistelu latausta varten" 1693 1710 1694 #: app/controllers/form_controller.rb:48 11711 #: app/controllers/form_controller.rb:484 1695 1712 #: app/controllers/attachment_controller.rb:24 1696 1713 #: app/controllers/type_attachment_controller.rb:21 … … 1700 1717 msgstr "Luoja" 1701 1718 1702 #: app/controllers/form_controller.rb:48 21719 #: app/controllers/form_controller.rb:485 1703 1720 #: app/controllers/attachment_controller.rb:25 1704 1721 #: app/controllers/type_attachment_controller.rb:22 … … 1708 1725 msgstr "Luotu" 1709 1726 1710 #: app/controllers/form_controller.rb:48 51727 #: app/controllers/form_controller.rb:488 1711 1728 #: app/controllers/attachment_controller.rb:29 1712 1729 #: app/controllers/type_attachment_controller.rb:26 … … 1793 1810 #: app/controllers/task_controller.rb:39 1794 1811 #: app/views/task/_form.rhtml:79 1795 #: app/views/task/print_view.rhtml: 621812 #: app/views/task/print_view.rhtml:29 1796 1813 #: app/views/task/create.rhtml:26 1797 1814 msgid "Priority" … … 1804 1821 #: app/controllers/task_controller.rb:41 1805 1822 #: app/views/task/_form.rhtml:72 1806 #: app/views/task/print_view.rhtml: 581823 #: app/views/task/print_view.rhtml:25 1807 1824 #: app/views/task/create.rhtml:30 1808 1825 msgid "Starting time" … … 1811 1828 #: app/controllers/task_controller.rb:42 1812 1829 #: app/views/task/_form.rhtml:87 1813 #: app/views/task/print_view.rhtml: 641830 #: app/views/task/print_view.rhtml:31 1814 1831 #: app/views/task/create.rhtml:34 1815 1832 msgid "Deadline" … … 1838 1855 1839 1856 #: app/controllers/task_controller.rb:71 1840 #: app/controllers/task_controller.rb:41 71857 #: app/controllers/task_controller.rb:416 1841 1858 msgid "Task %s (%s)" 1842 1859 msgstr "TehtÀvÀ %s (%s)" … … 1963 1980 #: app/controllers/task_controller.rb:458 1964 1981 #: app/views/task/_form.rhtml:59 1965 #: app/views/task/print_view.rhtml: 521982 #: app/views/task/print_view.rhtml:19 1966 1983 #: app/views/shared/_edit_account.rhtml:4 1967 1984 msgid "Created at" … … 2089 2106 msgstr "Avaimet" 2090 2107 2091 #: app/controllers/action_key_controller.rb:23 2108 #: app/controllers/action_key_controller.rb:18 2109 msgid "Name (controller/action)" 2110 msgstr "Nimi (kontrolleri/toiminto)" 2111 2112 #: app/controllers/action_key_controller.rb:26 2092 2113 msgid "Create a new key" 2093 2114 msgstr "Luo uusi avain" 2094 2115 2095 #: app/controllers/action_key_controller.rb:3 22116 #: app/controllers/action_key_controller.rb:35 2096 2117 msgid "Edit key" 2097 2118 msgstr "Muokkaa avainta" … … 2463 2484 #: app/controllers/type_attachment_controller.rb:23 2464 2485 #: app/views/attachment/view.rhtml:9 2465 #: app/views/task/print_view.rhtml: 1012486 #: app/views/task/print_view.rhtml:75 2466 2487 msgid "Asset type" 2467 2488 msgstr "Kohdetyyppi" … … 2513 2534 msgstr "Muokkaa avainrengasta" 2514 2535 2515 #: app/controllers/keyring_controller.rb:6 92536 #: app/controllers/keyring_controller.rb:68 2516 2537 msgid "Keys in the keyring %s" 2517 2538 msgstr "Avainrenkaan %s avaimet" 2518 2539 2519 #: app/controllers/keyring_controller.rb:7 12540 #: app/controllers/keyring_controller.rb:70 2520 2541 msgid "Key" 2521 2542 msgstr "Avain" … … 2905 2926 2906 2927 #: app/views/task/_form.rhtml:45 2907 #: app/views/task/print_view.rhtml: 442928 #: app/views/task/print_view.rhtml:11 2908 2929 #: app/views/task/create.rhtml:13 2909 2930 msgid "Short description" … … 2911 2932 2912 2933 #: app/views/task/_form.rhtml:55 2913 #: app/views/task/print_view.rhtml: 502934 #: app/views/task/print_view.rhtml:17 2914 2935 msgid "Created by" 2915 2936 msgstr "Luonut" 2916 2937 2917 2938 #: app/views/task/_form.rhtml:70 2918 #: app/views/task/print_view.rhtml: 562939 #: app/views/task/print_view.rhtml:23 2919 2940 msgid "Responsible user" 2920 2941 msgstr "Vastuussa oleva kÀyttÀjÀ" 2921 2942 2922 2943 #: app/views/task/_form.rhtml:71 2923 #: app/views/task/print_view.rhtml: 572944 #: app/views/task/print_view.rhtml:24 2924 2945 msgid "accepted" 2925 2946 msgstr "hyvÀksytty" 2926 2947 2927 2948 #: app/views/task/_form.rhtml:95 2928 #: app/views/task/print_view.rhtml: 682949 #: app/views/task/print_view.rhtml:35 2929 2950 msgid "Initial working<br/>time estimate" 2930 2951 msgstr "Alustava työaika-arvio" 2931 2952 2932 2953 #: app/views/task/_form.rhtml:97 2933 #: app/views/task/print_view.rhtml: 702954 #: app/views/task/print_view.rhtml:37 2934 2955 msgid "Spent working time" 2935 2956 msgstr "KÀytetty työaika" … … 2944 2965 2945 2966 #: app/views/task/_form.rhtml:140 2967 #: app/views/task/print_view.rhtml:42 2946 2968 msgid "Assigned users" 2947 2969 msgstr "MÀÀrÀtyt kÀyttÀjÀt" … … 3003 3025 3004 3026 #: app/views/task/view.rhtml:56 3005 #: app/views/task/print_view.rhtml: 1213027 #: app/views/task/print_view.rhtml:95 3006 3028 msgid "Change history" 3007 3029 msgstr "Muutoshistoria" … … 3012 3034 3013 3035 #: app/views/task/view.rhtml:84 3036 #: app/views/form/view.rhtml:45 3037 #: app/views/customer_interface/view_form.rhtml:14 3014 3038 msgid "Printer-friendly" 3015 3039 msgstr "Tulostettava" … … 3019 3043 msgstr "%s asetettu vastuulliseksi kÀyttÀjÀn %s toimesta" 3020 3044 3021 #: app/views/task/print_view.rhtml:33 3022 msgid "Print" 3023 msgstr "Tulosta" 3024 3025 #: app/views/task/print_view.rhtml:82 3026 #: app/views/task/print_view.rhtml:122 3045 #: app/views/task/print_view.rhtml:55 3046 #: app/views/task/print_view.rhtml:96 3027 3047 msgid "Show" 3028 3048 msgstr "NÀytÀ" 3029 3049 3030 #: app/views/task/print_view.rhtml: 823031 #: app/views/task/print_view.rhtml: 1223050 #: app/views/task/print_view.rhtml:55 3051 #: app/views/task/print_view.rhtml:96 3032 3052 msgid "Hide" 3033 3053 msgstr "Piilota" … … 3305 3325 msgstr "KÀÀnnÀ" 3306 3326 3307 #: app/views/shared/_list_items.rhtml:3113308 #: app/views/shared/export_items_csv.rhtml:373309 #: app/views/customer_interface/_form_field_values.rhtml:143310 #: app/views/customer_interface/_item_list.rhtml:643311 msgid "No"3312 msgstr "Ei"3313 3314 #: app/views/shared/_list_items.rhtml:3133315 #: app/views/shared/export_items_csv.rhtml:393316 #: app/views/form/remove.rhtml:53317 #: app/views/customer_interface/_form_field_values.rhtml:143318 #: app/views/customer_interface/_item_list.rhtml:663319 msgid "Yes"3320 msgstr "KyllÀ"3321 3322 3327 #: app/views/shared/_list_items.rhtml:363 3323 3328 msgid "Perform action on the selected items" … … 3428 3433 msgstr "%i uutta palvelupyyntöÀ vastaanotettu" 3429 3434 3435 #: app/views/layouts/print.rhtml:13 3436 msgid "Print" 3437 msgstr "Tulosta" 3438 3430 3439 #: app/views/layouts/customer_interface.rhtml:3 3431 3440 msgid "NorfelloCMMS Customer Interface" … … 3468 3477 msgstr "Valmis" 3469 3478 3479 #: app/views/form/_form_field_values.rhtml:10 3480 msgid "View image" 3481 msgstr "NÀytÀ kuva" 3482 3470 3483 #: app/views/form