NOT FINISHED: Added case for component import

This is not finished. The actual component creation isn’t written yet
This commit is contained in:
snipe 2016-12-22 16:06:55 -08:00
parent 2fe984013b
commit d6b7036518
2 changed files with 4 additions and 1 deletions

View file

@ -111,6 +111,9 @@ class ObjectImportCommand extends Command
case "accessory":
$this->accessories = Accessory::All();
break;
case "component":
$this->components = Component::All();
break;
case "consumable":
$this->consumables = Consumable::All();
break;

View file

@ -66,7 +66,7 @@
<label for="import-type">Import Type:</label>
</div>
<div class="col-md-8 col-xs-12">
{{ Form::select('import-type', array('asset' => 'Assets', 'accessory' => "Accessories", 'consumable' => "Consumables") , 'asset', array('class'=>'select2 parent', 'style'=>'width:100%','id' =>'import-type')) }}
{{ Form::select('import-type', array('asset' => 'Assets', 'accessory' => "Accessories", 'consumable' => "Consumables", 'component' => "Components") , 'asset', array('class'=>'select2 parent', 'style'=>'width:100%','id' =>'import-type')) }}
</div>
</div>
<div class="dynamic-form-row">