More Survey refactoring

refactored out repetitive checking of takenCount
added i18n template variables to Survey template so that user is told what happened for timeouts etc..
This commit is contained in:
Patrick Donelan 2009-05-13 02:10:57 +00:00
parent 6815cd76aa
commit c9861bdf8f
5 changed files with 71 additions and 52 deletions

View file

@ -924,14 +924,30 @@ directly inside the answer_loop for other types of questions.|,
context => q|The title of a template Help page.|,
lastUpdated => 1078223096
},
'lastResponseCompleted' => {
message => q|You completed this Survey|,
lastUpdated => 1242180657,
},
'lastResponseTimedOut' => {
message => q|Your last Survey response timed out|,
lastUpdated => 1242180657,
},
'lastResponseCompleted help' => {
message => q|A boolean indicating whether the current user's last response was completed.|,
context => q|Description of a template variable for a template Help page.|,
lastUpdated => 0,
},
'lastResponseEndDate help' => {
message => q|The date that the user's last response was completed.|,
context => q|Description of a template variable for a template Help page.|,
lastUpdated => 0,
},
'lastResponseTimedOut' => {
'lastResponseTimedOut help' => {
message => q|A boolean indicating whether the current user's last response timed out.|,
context => q|Description of a template variable for a template Help page.|,
lastUpdated => 0,