#916: birth_date must have select boxes (menus)

Type: FeatureItem Feature:   Tags: zen3
ScheduledFor: 0.14.0? Assigned to: MoisesMachado, DanielaFeitosa Task Points: 2
Priority: 10 Status: Done  

birth date field must have separate select boxes for day, month and year

-- TheoBondolfi - 13 Jan 2009

todo: check how that field is being stored; if it's not a proper date field, check what happens if the stored format is not compatible with the new form control.

-- AntonioTerceiro - 14 Jan 2009

must study the current data to not lost user data.

year: pick from (Date.today.year - 10) to (Date.today.year - 100)

-- AntonioTerceiro - 16 Jan 2009

Person.find(:>> Person.find(:all).map { |p| [p.id,p.birth_date] }
=> [[22079, nil], [22128, nil], [22151, ""], [22134, nil], [22157, nil], [22173, nil], [22174, nil], [22184, nil], [22196, "06/06/1973"], [22197, nil], [22194, nil], [22086, nil], [22199, nil], [22087, nil], [22206, nil], [22212, nil], [22227, nil], [22232, "08/02/1981"], [22089, nil], [22233, nil], [22260, nil], [22263, nil], [22264, ""], [22269, nil], [22091, nil], [22107, nil], [22098, nil], [22099, nil], [22111, "06/01/1955"], [22120, nil], [22121, nil], [169, "06 de dezembro "], [22080, nil], [22082, nil], [22078, nil], [197, nil], [196, nil], [204, nil], [15, nil], [19, nil], [21, nil], [22, nil], [24, nil], [25, nil], [26, nil], [27, nil], [28, nil], [29, nil], [30, nil], [31, nil], [32, nil], [35, nil], [37, nil], [38, nil], [39, nil], [40, nil], [43, nil], [44, nil], [41, nil], [33, nil], [34, nil], [36, nil], [42, nil], [50, nil], [52, nil], [23, nil], [53, nil], [54, nil], [55, nil], [56, nil], [57, nil], [58, nil], [59, nil], [60, nil], [61, nil], [62, nil], [64, nil], [65, nil], [67, nil], [69, nil], [70, nil], [71, nil], [72, nil], [117, nil], [74, nil], [75, nil], [78, nil], [80, nil], [76, nil], [82, nil], [83, nil], [85, nil], [86, nil], [88, nil], [90, nil], [93, nil], [99, nil], [100, nil], [116, nil], [119, nil], [120, nil], [121, nil], [123, nil], [124, nil], [125, nil], [126, nil], [128, nil], [131, nil], [133, nil], [134, nil], [137, nil], [140, nil], [91, nil], [94, nil], [95, nil], [97, nil], [98, nil], [101, nil], [104, nil], [107, nil], [109, nil], [110, nil], [111, nil], [89, nil], [113, nil], [118, nil], [103, nil], [127, nil], [129, nil], [132, nil], [135, nil], [138, nil], [141, nil], [142, nil], [143, nil], [145, nil], [147, nil], [149, nil], [151, nil], [152, nil], [144, nil], [146, nil], [148, nil], [154, nil], [156, nil], [157, nil], [159, nil], [81, nil], [160, nil], [161, nil], [166, nil], [167, nil], [168, nil], [170, nil], [171, nil], [176, nil], [177, nil], [178, nil], [179, nil], [180, nil], [181, nil], [183, nil], [184, nil], [185, nil], [186, nil], [187, nil], [188, nil], [189, nil], [190, nil], [191, nil], [193, nil], [203, nil], [205, nil], [206, nil], [208, nil], [209, nil], [210, nil], [211, nil], [212, nil], [213, nil], [214, nil], [216, nil], [218, nil], [22127, ""], [66, "01/10/2980"], [22129, "06/03/68"], [22130, "21/07/1975"], [22131, "13/11/1985"], [22133, nil], [22139, ""], [22141, nil], [22143, nil], [22144, "17/11/2007"], [22135, ""], [22136, nil], [79, "19/10/1982"], [22140, ""], [22137, "22/07/1973"], [164, "17/02"], [22153, ""], [22154, "24/03/1966"], [22155, "02-07-62"], [22138, "11/071987"], [22142, "10/01/1978"], [217, "04/07/1981"], [22146, ""], [22150, nil], [20, "14/06/00"], [22148, "06/05"], [22149, "21/12/1941"], [22152, "04/04"], [22160, "02.01.1956"], [87, ""], [207, "06/02/1986"], [22156, "11/03/1981"], [22159, "17.08.1956"], [17, ""], [22158, nil], [194, ""], [22161, ""], [22162, nil], [22163, nil], [22164, nil], [22083, "14/12/1981"], [22166, "29/10/1962"], [22167, "13/01/1982"], [22169, "14/07/1984"], [22170, nil], [22172, nil], [22081, ""], [22176, nil], [22171, nil], [22182, "05/02/1976"], [106, ""], [22175, nil], [22177, nil], [22178, nil], [22179, "02-07-1962"], [22180, nil], [22181, nil], [22084, nil], [22183, nil], [22191, nil], [22185, "15/11/1976"], [22187, nil], [22188, nil], [22190, "06/10/1970"], [22192, nil], [22189, ""], [22195, nil], [22198, "23/ 12/ 1999"], [22203, "10/05/1972"], [22204, "26/06/1951"], [22210, "19/11/1954"], [22200, "14/03/2002"], [155, ""], [22214, nil], [22215, ""], [22207, ""], [22208, nil], [22209, nil], [22211, "17/06/1979"], [18, "07/08/1976"], [22218, nil], [22088, "19/09/1990"], [22219, nil], [22217, "21/06/1958"], [22224, ""], [45, "09/10/1968"], [22223, nil], [63, "17/11/1984"], [22225, "21/02/1989"], [22226, nil], [22216, "18 de março"], [22229, ""], [22220, "23/03/1984"], [22222, "18/08/1969"], [22228, nil], [22230, nil], [22231, "01/07/1991"], [22221, "22/02/1981"], [22234, "02/05/1984"], [22243, nil], [22247, nil], [165, ""], [22235, "19/10/1988"], [22236, "04 de maio"], [22237, nil], [22238, ""], [22240, ""], [22248, nil], [22254, nil], [163, ""], [22239, nil], [22242, ""], [22213, "25/09/1985"], [22244, nil], [22090, nil], [22250, nil], [22255, "29/04/1991"], [22123, ""], [22245, nil], [22246, "21/09/1975"], [22251, nil], [22252, nil], [22253, nil], [22256, "15/06/1976"], [22201, "23/04/1983"], [22257, nil], [22258, "15/08/1981"], [22261, "15/06/1972"], [105, ""], [22259, ""], [22262, nil], [22105, "AGOSTO"], [22273, nil], [22279, "01/02"], [22281, nil], [22265, nil], [22266, nil], [22267, ""], [22271, "24/10/1980"], [22272, nil], [22274, nil], [22277, "11/07/1976"], [22268, ""], [22270, nil], [22276, nil], [22282, nil], [22275, ""], [22280, "01/02"], [22278, ""], [22092, ""], [22093, ""], [112, ""], [22096, "03/09/1982"], [46, ""], [92, nil], [114, nil], [136, nil], [139, nil], [182, nil], [153, ""], [16, "13/03/1985"], [22103, ""], [22097, ""], [84, "03/10/1974"], [202, "14.08.1981"], [22100, nil], [199, ""], [22114, nil], [22102, "14/11/1979"], [13, ""], [22112, ""], [22104, "30/07/1981"], [22109, ""], [22110, nil], [22116, nil], [22118, nil], [22119, ""], [14, "13/09/1979"], [22122, "14/06/1978"], [22125, "05/09/1957"], [22124, nil], [12, ""], [22085, nil], [22095, ""], [22285, nil]]

-- AntonioTerceiro - 16 Jan 2009

data from unifreire

>> Person.find(:all).map{|p|[p.id, p.birth_date]}.select{|i| !i[1].blank?}
=> [[8, "03/09/1982"], [21, "12/01/1987"], [17, "13/03/1986"], [29, "9/12/80"], [34, "21/12/1982"], [37, "15/12/85"], [25, "07/05/84"], [24, "21/10/1983"], [27, "4/07/1984"], [28, "17/04/1977"], [33, "9 junio 86"], [32, "12 diciembre 1983"], [43, "25/04/1959"], [44, "08/08/1972"], [52, "12/01/1986"], [55, "13/09/1979"], [49, "19/01/1986"], [58, "05/04/1982"], [60, "24/12/1958"], [62, "07 / 05 / 1956"], [65, "02/05/1984"], [10, "14/06/1980"]]

-- MoisesMachado - 22 Jan 2009

Add comment
You need to login to be able to comment.
 

ActionItemForm edit

Title birth_date must have select boxes (menus)
ActionItemType? FeatureItem
Priority 10
Tags zen3
TaskPoints? 2
ResponsibleDevelopers MoisesMachado, DanielaFeitosa
ScheduledFor? 0.14.0?
AffectsVersion?
Status Done
Topic revision: r12 - 18 Nov 2009 - 19:38:38 - AntonioTerceiro

irc Talk with Devs Now!

 
Translations: English
Search on Docs:
   
ActionItem Search:

Copyright © 2007-2014 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres