always renders cancel button even when eval.file = null

 rule page showOrgininalEvasysPDF (eval : Evaluation) {
	mayView(eval) && eval.evasysPDF != null
}
define page editOrgininalEvasysPDF(eval : Evaluation) {		
	title{ "Upload Evasys PDF" }
	var msg := "";
	var file : File

	bmain{ 
		pageHeader{ output(eval.course.name) }
		horizontalForm("Upload Evasys PDF") {
			controlGroup("PDF file") { input(file) } 
			formActions{
				submit action {eval.evasysPDF := file; return showEvaluation(eval);} [class = "btn btn-primary"] { iOk() "Save" } " "
				navigate showOrgininalEvasysPDF(eval) [class = "btn"] { iStop() "Cancel" }
			}
		}
	}
}
Submitted by chris melman on 11 February 2013 at 13:04

Log in to post comments