Rev 8024 | Blame | Compare with Previous | Last modification | View Log | RSS feed
<!DOCTYPE html><html lang="en-US"><head><title>Create Expert Review</title><script type="text/javascript" src="../jquery/jquery-1.4.2.js"></script><script type="text/javascript" src="../js/common.js"></script><script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.core.js"></script><script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.widget.js"></script><script type="text/javascript" src="../jquery/jqueryui/ui/jquery.ui.dialog.js"></script><script type="text/javascript" src="../js/events.js"></script><script type="text/javascript">$(document).ready(function(){$("#updateslides").click(function(){var changed = false;var isValid = true;$("tr").find("input").each(function(i, val){var newVal = val.value.trim();if (isNaN(newVal)){isValid = false;alert("Non numbers are not allowed");return false;}else if(Number(newVal)>10 || Number(newVal)<0){alert("Numbers should be between 0 and 10");isValid = false;return false;}var customVal = $(val).closest("tr").find("td.mk_custom").html() == "-" ? "" : $(val).closest("tr").find("td.mk_custom").html();if(Number(customVal) != Number(newVal)){changed = true;}});if(!isValid){return false;}if(!changed){alert("Nothing has been changed");return false;}});});</script><link type="text/css" href="../jquery/jqueryui/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" /><style type="text/css">* { font-family: Verdana; font-size: 96%; }fieldset.label { width: 10em; float: left; }label.error { float: none; color: red; padding-left: .5em; vertical-align: top; }p { clear: both; }.submit { margin-left: 12em; }em { font-weight: bold; padding-right: 1em; vertical-align: top; }table {border-width: 1px 1px 1px 1px;border-spacing: 0px;border-color: gray gray gray gray;border-collapse: separate;border-style: solid;background-color: white;}th {border-width: 1px 1px 1px 1px;border-style: solid;padding: 3px;border-color: gray gray gray gray;background-color: white;-moz-border-radius: 0px 0px 0px 0px;}td {border-style: solid;border-width: 1px 1px 1px 1px;padding: 3px 4px;border-color: gray gray gray gray;background-color: white;-moz-border-radius: 0px 0px 0px 0px;}div.dialog {padding:12px;font-family: "Trebuchet MS", "Arial", "Helvetica", "Verdana", "sans-serif";}</style></head><body><div><span align="right"> Welcome $action.getUsername() <a href="$request.contextPath/logout">logout</a></span></div><div><h2>Slide Scores - $action.id - $entityName</h2><form method="POST" action="/content/cmp-scores!update"><input type="hidden" name="id" value="$action.id" /><table><tr><th>Slide name</th><th>Evaluated score</th><th>Custom score</th>#if($action.canEdit())<th>New score</th>#end</tr>#set ($iter = -1)#foreach($entry in $scores.get("actual").entrySet())<tr><td>$action.getSlideLabel($entry.getKey())</td><td>$entry.getValue()</td>#if($scores.get("custom").containsKey($entry.getKey()))<td class="mk_custom">$scores.get("custom").get($entry.getKey())</td>#if($action.canEdit())#if($entry.getKey()==0)<td></td>#else<td><input type="text" name="$entry.getKey()" value='$scores.get("custom").get($entry.getKey())'/></td>#end#end#else<td class="mk_custom">-</td><td><input type="text" name="$entry.getKey()" value=""/></td>#end</tr>#end</table><div style="padding:8px"><input id="updateslides" type="submit" value="Update"></div></form></div></body></html>