remove unused color decoration from Questtype ?Textinput?
This commit is contained in:
parent
d92497a800
commit
34c7e8ac55
2 changed files with 1 additions and 6 deletions
|
|
@ -275,11 +275,6 @@
|
|||
}
|
||||
}
|
||||
|
||||
// Set colors for fields
|
||||
foreach($fields as &$field) {
|
||||
$field['color'] = str_pad(sprintf('%x%x%x', rand(0,255), rand(0,255), rand(0,255)), 6, 9);
|
||||
}
|
||||
|
||||
|
||||
// Pass data to view
|
||||
$this->set('task', $task);
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@
|
|||
<option value="<?=$size['size']?>" <?php if($fields[$index]['size'] == $size['size']) : ?>selected="selected"<?php endif ?>><?=$size['size']?></option>
|
||||
<?php endforeach ?>
|
||||
</select>
|
||||
<input type="text" name="fields[<?=$index?>][regex]" value="<?=$field['regex']?>" style="border:1px solid #<?=$field['color']?>" <?php if(!empty($validations) && array_key_exists($index, $validations)) : ?>class="invalid"<?php endif ?> />
|
||||
<input type="text" name="fields[<?=$index?>][regex]" value="<?=$field['regex']?>" <?php if(!empty($validations) && array_key_exists($index, $validations)) : ?>class="invalid"<?php endif ?> />
|
||||
</li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue