mirror of
https://github.com/moodle/moodle.git
synced 2025-03-10 18:59:55 +01:00
Updated following fields so that they do not pack data into data_content.content, but use data_content.content, data_content.content1, etc: - URL field - File field - Picture field Note that above changes to the way data is stored means that the new implementation is not compatible with previous version. Updated textarea field. Added relevant help messages. Added richtext editor support. Removed ability to restrict allowed formats for the textarea field. Misc bug fixes and display tweaks.
41 lines
1.7 KiB
HTML
Executable File
41 lines
1.7 KiB
HTML
Executable File
<form name="fieldsubform" action="<?php echo $CFG->wwwroot; ?>/mod/data/fields.php?d=<?php echo ($field->dataid); ?>" method="POST">
|
|
<table width="100%">
|
|
<tr>
|
|
<td span="2">
|
|
<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 name="sesskey" value="<?php echo sesskey(); ?>" type="hidden">
|
|
<?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="<?php echo($field->description); ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Allow Autolink:</td>
|
|
<td><input type="checkbox" name="param1" id="param1" <?php if($field->param1) {echo 'checked="checked"';} ?> value="1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td>Width:</td>
|
|
<td><input type="text" name="param2" id="width" value="<?php echo($field->param2); ?>" /> columns</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Height:</td>
|
|
<td><input type="text" name="param3" id="height" value="<?php echo($field->param3); ?>" /> rows</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="submit" value="<?php echo get_string('cancel'); ?>" onclick="document.fieldsubform.mode.value='void';" \>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</form>
|