diff options
author | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-12-08 20:33:00 -0500 |
---|---|---|
committer | Eugeniy Mikhailov <evgmik@gmail.com> | 2013-12-08 20:33:00 -0500 |
commit | f31a176a808dd64b9bab4cf9a925c2fcaf6d3aed (patch) | |
tree | 8f179142ee80eaebcfc4332676fc5492dc0d4368 /GradeBook_lib.tcl | |
parent | d3a78ae4eb5973aed6cca6d06b3be741f5438305 (diff) | |
download | GradeBook-f31a176a808dd64b9bab4cf9a925c2fcaf6d3aed.tar.gz GradeBook-f31a176a808dd64b9bab4cf9a925c2fcaf6d3aed.zip |
proper indentation in EditGradesCategories
Diffstat (limited to 'GradeBook_lib.tcl')
-rwxr-xr-x | GradeBook_lib.tcl | 58 |
1 files changed, 29 insertions, 29 deletions
diff --git a/GradeBook_lib.tcl b/GradeBook_lib.tcl index 53e904d..43bcb0b 100755 --- a/GradeBook_lib.tcl +++ b/GradeBook_lib.tcl @@ -638,41 +638,41 @@ proc EditGradesCategories { db permission_list user } { puts "<tr>" foreach col $v(*) { puts -nonewline "<th>$col</th>" - } - puts "<tr>" - } else { - puts "<tr>" } - foreach index $v(*) { - if { $index != "*" } { - switch $index { - "CategoryWeight" { - puts "<th><input type=\"text\" name=\"$v(CategoryName)_weight\" value=\"$v(CategoryWeight)\" size=5></th>" - } - "NeedsTotal" { - if { $v(NeedsTotal) eq "true" } { - set checkbox_flag "checked" - } else { - set checkbox_flag "" - } - puts "<th><input type=\"checkbox\" name=\"$v(CategoryName)_needs_total\" value=\"\" $checkbox_flag></th>" - } - "NumberToDrop" { - puts "<td><input type=\"text\" name=\"$v(CategoryName)_NumberToDrop\" value=\"$v(NumberToDrop)\" size=5></td>" - } - default { - puts -nonewline "<td>$v($index)</td>" + puts "<tr>" + } else { + puts "<tr>" + } + foreach index $v(*) { + if { $index != "*" } { + switch $index { + "CategoryWeight" { + puts "<th><input type=\"text\" name=\"$v(CategoryName)_weight\" value=\"$v(CategoryWeight)\" size=5></th>" + } + "NeedsTotal" { + if { $v(NeedsTotal) eq "true" } { + set checkbox_flag "checked" + } else { + set checkbox_flag "" } + puts "<th><input type=\"checkbox\" name=\"$v(CategoryName)_needs_total\" value=\"\" $checkbox_flag></th>" + } + "NumberToDrop" { + puts "<td><input type=\"text\" name=\"$v(CategoryName)_NumberToDrop\" value=\"$v(NumberToDrop)\" size=5></td>" + } + default { + puts -nonewline "<td>$v($index)</td>" } } } - puts "</tr>" } - } errStat ] - puts "</table>" - if { $err } { - htmlErrorMsg $errStat - dbg "the following error happen: $errStat" msg_level_critical + puts "</tr>" + } + } errStat ] + puts "</table>" + if { $err } { + htmlErrorMsg $errStat + dbg "the following error happen: $errStat" msg_level_critical } puts {<input type="hidden" name="action" value="update_grades_categories"/>} puts {<input type="submit" name="subaction" value="Submit" />} |