mirror of
https://github.com/moodle/moodle.git
synced 2025-03-11 03:15:24 +01:00
15 lines
1.0 KiB
HTML
15 lines
1.0 KiB
HTML
|
<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>
|
||
|
|