Guys can you help me put the below echo result into label, and not in the dropdown menu? Alternatively can you tell me how to disable the below dropdown menu?
My code looks as follows:
<?php $owner_id = array();
$owner_id['0'] = '-';
foreach ($project->project_has_workers as $workers):
$owner_id[$workers->user_id] = $workers->user->firstname.' '.$workers->user->lastname;
endforeach;
if(isset($project)){$user = $project->owner_id;}else{$user = $this->user->id;}
echo form_dropdown('owner_id', $owner_id, $user,
'style="width:100%" class="label label-default"');
?>
Any help really appreciated :)