Annotation of loncom/html/adm/helper/newslot.helper, revision 1.1
1.1 ! albertel 1: <helper title="Slot Creation" requiredpriv="mgq">
! 2: <state name="START" title="Specify Required Attributes">
! 3: <message nextstate="OPTIONAL">
! 4: <message_text>
! 5: Name: <br />
! 6: </message_text>
! 7: </message>
! 8: <string variable="slotname" size="30">
! 9: <validator>
! 10: if ($val=~/^\s*$/) { return 'Must specify a name'; }
! 11: if ($val=~/\s$/) { return 'Must not contain spaces'; }
! 12: return undef;
! 13: </validator>
! 14: </string>
! 15: <message>
! 16: <message_text><br />Start time:<br /> </message_text>
! 17: </message>
! 18: <date variable="starttime" hoursminutes="1"></date>
! 19: <message>
! 20: <message_text><br />End time:<br /> </message_text>
! 21: </message>
! 22: <date variable="endtime" hoursminutes="1"></date>
! 23: <message>
! 24: <message_text><br />Type:</message_text>
! 25: </message>
! 26: <choices variable="type">
! 27: <choice computer='preassigned'>Instructor asssignable.</choice>
! 28: <choice computer='student_schedulable'>Student selectable.</choice>
! 29: <defaultvalue>
! 30: return 'preassigned';
! 31: </defaultvalue>
! 32: </choices>
! 33: </state>
! 34:
! 35: <state name="OPTIONAL" title="Specify Optional Attributes">
! 36: <message>
! 37: <message_text>
! 38: <p>Time students can start reserving:<br />
! 39: </message_text>
! 40: </message>
! 41: <date variable="startreserve" hoursminutes="1" anytime="1"></date>
! 42: <message>
! 43: <message_text>
! 44: </p><p>IP restrictions:<br />
! 45: </message_text>
! 46: </message>
! 47: <string variable="ip" size="30">
! 48: <validator>
! 49: return undef;
! 50: </validator>
! 51: </string>
! 52: <message>
! 53: <message_text>
! 54: </p><p>Description:<br />
! 55: </message_text>
! 56: </message>
! 57: <string variable="description" size="60"></string>
! 58: <message>
! 59: <message_text>
! 60: </p><p>Maxium number of students allowed in this slot:<br />
! 61: </message_text>
! 62: </message>
! 63: <string variable="maxspace" size="4">
! 64: <validator>
! 65: if ($val ne '' && $val=~/\D/) { return 'Must be numeric.'; }
! 66: return undef;
! 67: </validator>
! 68: </string>
! 69: <message>
! 70: <message_text>
! 71: </p><p>Period of time in which this slot is can only be uniquely chosen:<br /> Start:
! 72: </message_text>
! 73: </message>
! 74: <date variable="startunique" hoursminutes="1" anytime="1"></date>
! 75: <message><message_text><br /> End: </message_text></message>
! 76: <date variable="endunique" hoursminutes="1" anytime="1"></date>
! 77: <message>
! 78: <message_text>
! 79: </p><p>Slot is:
! 80: </message_text>
! 81: </message>
! 82: <choices variable="restricttosymb">
! 83: <choice nextstate="FINISH" computer='any'>usable for any resource.</choice>
! 84: <choice nextstate="RESOURCESELECT" computer='resource'>restricted to a specific resource.</choice>
! 85: <defaultvalue>'any'</defaultvalue>
! 86: </choices>
! 87: <message> <message_text> </p> </message_text> </message>
! 88: </state>
! 89: <state name="RESOURCESELECT" title="Specify Optional Attributes">
! 90: <resource variable="symb">
! 91: <filterfunc>return $res->is_problem()</filterfunc>
! 92: <valuefunc>return $res->symb()</valuefunc>
! 93: <nextstate>FINISH</nextstate>
! 94: </resource>
! 95: </state>
! 96: <state name="FINISH" title="Specify Optional Attributes">
! 97: <message> <message_text> fin </message_text> </message>
! 98: </state>
! 99: </helper>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>