b89cca197e
This is implemented for most fields but not all. The reason is that there are
some fields for which this does not make sense because no entry is a valid entry.
The supported fields are:
checkbox
file
latlong
menu
number
picture
radio
text
textarea
url
The unsupported fields are:
date
multimenu
27 lines
1.7 KiB
HTML
27 lines
1.7 KiB
HTML
<table width="100%" cellpadding="5">
|
|
<tr>
|
|
<td class="c0"><label for="name"><?php echo get_string('fieldname', 'data'); ?></label></td>
|
|
<td class="c1"> <input class="fieldname" type="text" name="name" id="name" value="<?php p($this->field->name); ?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="c0"><label for="description"><?php echo get_string('fielddescription', 'data'); ?></label></td>
|
|
<td class="c1"><input class="fielddescription" type="text" name="description" id="description" value="<?php p($this->field->description);?>" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="c0"><label for="param1"><?php echo get_string('autolinkurl', 'data') ?></label></td>
|
|
<td class="c1"><input type="checkbox" name="param1" id="param1" <?php if($this->field->param1) {echo 'checked="checked"';} ?> value="1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="c0"><label for="required"><?php echo get_string('requiredfield', 'data'); ?></label></td>
|
|
<td class="c1"><input class="requiredfield" type="checkbox" name="required" id="required" <?php p($this->field->required?"checked=\"checked\"":""); ?>/></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="c0"><label for="param3"><?php echo get_string('openlinkinnewwindow', 'datafield_url') ?></label></td>
|
|
<td class="c1"><input type="checkbox" name="param3" id="param3" <?php if($this->field->param3) {echo 'checked="checked"';} ?> value="1" /></td>
|
|
</tr>
|
|
<tr>
|
|
<td class="c0"><label for="forcelinkname"><?php echo get_string('forcelinkname', 'data'); ?></label></td>
|
|
<td class="c1"><input class="forcelinkname" type="text" name="param2" id="forcelinkname" value="<?php p($this->field->param2);?>" /></td>
|
|
</tr>
|
|
</table>
|