implement lists for Seminary fields
This commit is contained in:
parent
6a310cb9b0
commit
7531065af8
1 changed files with 8 additions and 0 deletions
|
|
@ -65,7 +65,15 @@
|
||||||
case 'Text': ?>
|
case 'Text': ?>
|
||||||
<textarea name="fields[<?=$field['url']?>]"></textarea>
|
<textarea name="fields[<?=$field['url']?>]"></textarea>
|
||||||
<?php break;
|
<?php break;
|
||||||
|
case 'List': ?>
|
||||||
|
<select name="fields[<?=$field['url']?>]">
|
||||||
|
<?php foreach(explode('|', substr($field['regex'],1,strrpos($field['regex'],$field['regex'][0])-1)) as $option) : ?>
|
||||||
|
<option value="<?=$option?>"><?=mb_eregi_replace('\\\\','',$option)?></option>
|
||||||
|
<?php endforeach?>
|
||||||
|
</select>
|
||||||
|
<?php break;
|
||||||
} ?>
|
} ?>
|
||||||
|
<br />
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
</fieldset>
|
</fieldset>
|
||||||
<input type="submit" name="create" value="<?=_('create')?>" />
|
<input type="submit" name="create" value="<?=_('create')?>" />
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue