mirror of
https://github.com/moodle/moodle.git
synced 2025-03-11 11:19:50 +01:00
Finally, we have an early version good enough for everyone to start banging on to help us polish it up and find bugs. Please take a look and file bugs in the bug tracker under "Database module". We urgently need - new icons for existing field types - testing on PostgreSQL install Coming soon (?): - Many more field types: calculation, checkbox, relation, date, datetime, time, email, group, list, user, number, richtext (Please let us know if you are interested in developing any of these) - A way to save and restore "presets", which are field/template sets - Backup/Restore support - Groups Support - RSS support Many thanks to Yu for all the hard work under my whip.
15 lines
1.0 KiB
HTML
Executable File
15 lines
1.0 KiB
HTML
Executable File
<table width="100%"><tr><td span="2">
|
|
<form name="fieldsubform" action="<?php echo $CFG->wwwroot; ?>/mod/data/fields.php?d=<?php echo ($field->dataid); ?>" method="POST">
|
|
<?php echo ($this->name()); ?></td></tr>
|
|
<tr><td>Name:</td><td><input type="text" name="name" id="name" value = "<?php echo($field->name); ?>" /></td></tr>
|
|
<tr><td>Description:</td><td><input type="text" name="description" id="description" value = "<? echo ($field->description);?>" /></td></tr>
|
|
<tr><td></td><td><input type="submit" value="<?php if ($newfield) {echo get_string('add');} else {echo get_string('save','data');} ?>" \>
|
|
<input type="hidden" name="fid" value="<?php echo ($field->id); ?>" />
|
|
<input type="hidden" name="mode" value="<?php if ($newfield) {echo 'add';} else {echo 'update';} ?>" />
|
|
<input type="hidden" name="type" value="<?php echo $this->type; ?>" />
|
|
<input type="submit" value="<?php echo get_string('cancel'); ?>" onclick="document.fieldsubform.mode.value='void';" \>
|
|
<input name="sesskey" value="<?php echo sesskey(); ?>" type="hidden"></td>
|
|
</form>
|
|
</td></tr></table>
|
|
|