<div class="col-xs-12 col-lg-2 col-md-12">
    <div class="form-group">
        <?= lang("model_code", "model_code"); ?>
        <?php echo form_input('model_code',set_value('model_code',(isset($form_data['model_code'])?$form_data['model_code']:(isset($model->code)?$model->code:""))) , 'class="form-control" id="model_code" required="required" maxlength="10"'); ?>
    </div>
</div>
<div class="col-xs-12 col-lg-3 col-md-12">
    <div class="form-group">
        <?= lang('model_brand', 'model_brand'); ?>
        <?= form_dropdown('model_brand', $brands, set_value('model_brand',(isset($form_data['model_brand'])?$form_data['model_brand']:(isset($model->id_brand)?$model->id_brand:0))), 'class="form-control tip select2" id="model_brand" required="required"'); ?>
    </div>
</div>
<div class="col-xs-12 col-lg-7 col-md-12">
    <div class="form-group">
        <?= lang("model_name", "model_name"); ?>
        <?php echo form_input('model_name', set_value('model_name',(isset($form_data['model_name'])?$form_data['model_name']:(isset($model->model)?$model->model:""))), 'class="form-control" id="model_name" required="required" maxlength="80"'); ?>
    </div>
</div>