set some attributes for input fields for task editing of Questtype ?Textinput?

This commit is contained in:
coderkun 2014-07-31 14:31:31 +02:00
commit e888e0ac25

View file

@ -35,7 +35,7 @@
<option value="<?=$size['size']?>" <?php if($fields[$index]['size'] == $size['size']) : ?>selected="selected"<?php endif ?>><?=$size['size']?></option> <option value="<?=$size['size']?>" <?php if($fields[$index]['size'] == $size['size']) : ?>selected="selected"<?php endif ?>><?=$size['size']?></option>
<?php endforeach ?> <?php endforeach ?>
</select> </select>
<input type="text" name="fields[<?=$index?>][regex]" value="<?=$field['regex']?>" <?php if(!empty($validations) && array_key_exists($index, $validations)) : ?>class="invalid"<?php endif ?> /> <input type="text" name="fields[<?=$index?>][regex]" required="required" placeholder="/regex/i" value="<?=$field['regex']?>" <?php if(!empty($validations) && array_key_exists($index, $validations)) : ?>class="invalid"<?php endif ?> />
</li> </li>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>