Commit fcad9380 authored by Dave Griffiths's avatar Dave Griffiths
Browse files

removed residence after marriage for those not married

parent b962245c
......@@ -506,7 +506,12 @@
(lambda (c) (fn c)))))
(define (mspinner-other id types fn)
(make-id (string-append (symbol->string id) "-container"))
(layout 'fill-parent 'wrap-content 1 'centre 5)
(list 0 0 0 0)
(text-view (symbol->id id)
(mtext-lookup id)
......@@ -524,7 +529,7 @@
(edit-text (make-id (string-append (symbol->string id) "-edit-text"))
"" 30 "normal"
(layout 'fill-parent 'wrap-content 1 'centre 0)
(lambda (t) (fn t))))))
(lambda (t) (fn t)))))))
(define (mspinner-other-vert id text-id types fn)
......@@ -65,7 +65,7 @@
(define tribes-list '(khasi other))
(define subtribe-list '(khynriam pnar bhoi war other))
(define education-list '(primary middle high secondary university))
(define married-list '(ever-married currently-married currently-single seperated))
(define married-list '(currently-married currently-single seperated))
(define residence-list '(birthplace spouse-village))
(define gender-list '(male female))
(define house-type-list '(concrete tin thatched other))
......@@ -982,7 +982,12 @@
(mspinner 'head-of-house gender-list (lambda (v) (entity-set-value! "head-of-house" "varchar" (spinner-choice gender-list v)) '()))
(mspinner 'marital-status married-list (lambda (v) (entity-set-value! "marital-status" "varchar" (spinner-choice married-list v)) '()))
(medit-text 'times-married "numeric" (lambda (v) (entity-set-value! "times-married" "int" v) '())))
(medit-text 'times-married "numeric"
(lambda (v)
(entity-set-value! "times-married" "int" v)
(update-widget 'linear-layout (get-id "residence-after-marriage-container")
(if (equal? v "0") 'hide 'show) 0)))))
(build-person-selector 'spouse "id-spouse" (list) spouse-request-code)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment