<div class="well">
	<fieldset>
		<legend><h4>Bulk Importer</h4></legend>
		<form role="form">
			<div class="form-group">
				<label for="bulkPathInput" class="control-label">BaseURL Directory:</label>
				<input type="text" class="form-control" id="bulkPathInput" ng-model="path" />
			</div>
			<div class="checkbox" style="margin-top: 20px">
				<label>
					<input type="checkbox" ng-model="profiles" /> <b>Import profiles:</b> <i>{{path}}/**/*.xml</i>
				</label>
			</div>
			<div class="checkbox" style="margin-top: 20px;">
				<label>
					<input type="checkbox" ng-model="schemas" /> <b>Import schemas:</b> <i>{{path}}/**/*.xsd</i>
				</label>
			</div>
			<div style="margin-top: 30px;">
				<b>Examples:</b>
				<pre>file:///tmp/dnet_import			
classpath*:/eu/dnetlib/test (use CAREFULLY to reload default profiles and schemas)</pre>
			</div>
			<button class="btn btn-default" ng-click="bulkImport()" style="margin-top: 30px;">Import</button>
		</form>
		
		<table class="table" ng-show="(response.schemasTotal != null) || (response.profilesTotal != null)">
			<thead>
				<tr>
					<th></th>
					<th class="text-center col-xs-3">Total</th>
					<th class="text-center col-xs-3">Added</th>
					<th class="text-center col-xs-3">Discarded</th>
				</tr>
			</thead>
			<tbody>
				<tr ng-show="response.schemasTotal != null">
					<th>Schemas</th>
					<td class="text-center col-xs-1">{{response.schemasTotal}}</td>
					<td class="text-center col-xs-1">{{response.schemasDone}}</td>
					<td class="text-center col-xs-1" ng-class="{'text-danger' : response.schemasDone < response.schemasTotal}">{{response.schemasTotal - response.schemasDone}}</td>
				</tr>
				<tr ng-show="response.profilesTotal != null">
					<th>Profiles</th>
					<td class="text-center col-xs-1">{{response.profilesTotal}}</td>
					<td class="text-center col-xs-1">{{response.profilesDone}}</td>
					<td class="text-center col-xs-1" ng-class="{'text-danger' : response.profilesDone < response.profilesTotal}">{{response.profilesTotal - response.profilesDone}}</td>
				</tr>
			</tbody>		
		</table>			
		
		
	</fieldset>
</div>