<br>
<div class="row">
	<div class="col-md-8 col-md-offset-2">
		<div class="panel panel-default">
			<div class="panel-heading">
			Edit User Resource
			</div>
			<div class="panel-body">
				<?= form_open('user_resource/update', array('class'=>'form-horizontal')); ?>
				<?= hidden_input(array('name'=>'user_resource_type_ID', 'value'=>$user_resource->user_resource_type_ID)); ?>
				<?php 
				$options = array();
				foreach($user_roles as $role) {
					$options[$role->role_ID] = $role->role_name;
				}
				?>
				<?= form_dropdown_horizontal(array(
					'name'=>'user_role',
					'label'=>'User Role :',
					'options'=> $options,
					'placeholder'=> 'Select a User Role',
					'selected'=>$user_resource->role_ID
					)); ?>
				<?= form_input_horizontal(array('name'=>'user_resource_type_name','label'=>'User Resource Name:', 'value'=>$user_resource->user_resource_type_name)); ?>
				<br/>
				<div class="row">
					<div class="col-xs-11">
					<?= form_submit(array('value'=>'Save','class'=>'btn-success')); ?>
					</div>
				</div>
				<br/>
				<?= form_close(); ?>
			</div>
		</div>
	</div>
</div>