- Timestamp:
- Oct 29, 2007, 12:14:12 AM (17 years ago)
- Location:
- trunk/web/templates
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/web/templates/list.tmpl
r228 r229 28 28 <tr> 29 29 <td>Memory</td> 30 <td><input type="text" name="memory" value="$defaults.memory" size=3/> megabytes($max_memory max)</td>30 <td><input type="text" name="memory" value="$defaults.memory" size=3/> MiB ($max_memory max)</td> 31 31 </tr> 32 32 $errorRow('memory', $err) 33 33 <tr> 34 34 <td>Disk</td> 35 <td><input type="text" name="disk" value="$defaults.disk" size=3/> gigabytes(${"%0.1f" % ($max_disk-0.05)} max)</td>35 <td><input type="text" name="disk" value="$defaults.disk" size=3/> GiB (${"%0.1f" % ($max_disk-0.05)} max)</td> 36 36 </tr> 37 37 $errorRow('disk', $err) -
trunk/web/templates/validation.py
r228 r229 113 113 if memory > maxMemory(user, machine, on): 114 114 raise InvalidInput('memory', memory, 115 'Maximum %s MiB' % maxMemory(user, machine)) 115 'Maximum %s MiB for %s' % (maxMemory(user, machine), 116 user)) 116 117 return memory 117 118
Note: See TracChangeset
for help on using the changeset viewer.