[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

cousteau[page] dive log

Details

The Dive Log page let the user fill a Dive Log form and summit the results to the server.

Diving Logs are customized for each region
MediterraneanMediterraneanMetric.pdf
MediterraneanImperial.pdf
MediterraneanManual.pdf
CaribbeanCaribbeanMetric.pdf
CaribbeanImperial.pdf
CaribbeanManual.pdf
GalapagosGalapagosMetric.pdf
GalapagosImperial.pdf
GalapagosManual.pdf
Red SeaRedSeaMetric.pdf
RedSeaImperial.pdf
RedSeaManual.pdf
South East AsiaSouthEastAsiaMetric.pdf
SouthEastAsiaImperial.pdf
SouthEastAsiaManual.pdf

Each region has a manual page, that explain how to log a diving experience/event.
The UI of the page must be equivalent to fill the forms in the PDF document.

Implementation

"Dive Log page"

! CousteauDivers class methodsFor: #specs !
diveLogSpec
	" Private - Return the page spec. "

	^(#class -> #MobileEditor ),
 	(#configuration -> (
  		(#listeners -> ((#needsTitle -> [:coordinator | 'Dive Log' ]),
  	 			(#built: -> [:coordinator | coordinator--'diveLog built' ]) 
  	 	)),
		(#navigationBar -> (
			(#right -> (#right -> [:coordinator | coordinator--'diveLog--right' ]) )
   	 	)),
		(#widgets -> (
			(#theText -> (
				(#type -> #textArea ),
				(#configuration ->(
					(#order -> 1),
					(#listeners -> (
						(#needsText -> ['Dive log form. needs work'] )
					))
				))
			)) 
                ))
 	)),
        (#listeners -> (
		(#built: -> [:coordinator | coordinator--'DiveLog page built' ])
    	))! !