remove unused color decoration from Questtype ?Textinput?

This commit is contained in:
coderkun 2014-07-31 11:42:12 +02:00
commit 34c7e8ac55
2 changed files with 1 additions and 6 deletions

View file

@ -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 // Pass data to view
$this->set('task', $task); $this->set('task', $task);

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']?>" 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> </li>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>