<md-toolbar layout="row" class="md-toolbar-tools md-whiteframe-4dp small-toolbar" >
	<span flex></span>
   	<h5>Anagrafica società ordinante</h5>
    <span flex></span>
   	<div ng-if="largeScreen()" layout="row">
	     <md-button ng-click="ctrl.stampaLogStatiFlusso()" aria-label="Log stati flusso" class="hilight" style="margin-left:8px" layout="row">
	      	<md-icon  md-font-icon="fa-print" class="fa"></md-icon>
	       	Stampa log stati flusso
			<md-tooltip>Stampa log stati flusso</md-tooltip>
	     </md-button>
	</div>    
	<md-menu md-offset="0 50" ng-if="!largeScreen()" style="margin-top: -8px;">
		<md-button aria-label="Opzioni" class="md-icon-button" ng-click="$mdMenu.open($event)">
           	<md-icon  md-font-icon="fa-ellipsis-v" class="fa"></md-icon>
         	</md-button>
		<md-menu-content width="4">
  			<md-button ng-click="ctrl.stampaLogStatiFlusso()" aria-label="Log stati flusso" class="hilight" style="margin-left:8px" layout="row">
		      	<md-icon  md-font-icon="fa-print" class="fa"></md-icon>
	       		Stampa log stati flusso
				<md-tooltip>Stampa log stati flusso</md-tooltip>
	     	</md-button>	          
         </md-menu-content>
    </md-menu>
	    		
 </md-toolbar>
 
 <div layout="row" flex="100" style="width:100%">
	<md-list id="list" flex>
 		<md-subheader layout="row">
 			<div flex="100" layout="row" id="header">
				<div style="width:20px">&nbsp;</div>				
	 		 	<md-button ng-click="ctrl.setOrderField('iddistintaFlusso')" ng-style="ctrl.getColumnWidth(0)">
	 				N.acquisizione
	 				<md-icon md-font-icon="fa fa-sort" class="fa"></md-icon>
 				</md-button>
		 		<md-button ng-click="ctrl.setOrderField('dataCreazione')" ng-style="ctrl.getColumnWidth(1)">
		 			Data creazione
		 			<i class="fa fa-sort"></i>
	 			</md-button>
 			</div>
		</md-subheader>
 		
		<div class="virtualRepeatVerticalUsage" id="container" ng-style="ctrl.getListHeight()" ng-style="ctrl.getMaxListWidth()">
			<md-virtual-repeat-container id="vertical-container" ng-style="ctrl.getMaxListWidth()">
			     <div class="md-1-line hilight" md-on-demand md-virtual-repeat="data in ctrl.infiniteItems" md-item-size="40" style="margin-left:30px;height:40px" ng-style="ctrl.getMaxListWidth()">
				     <div class="md-1-line hilight" style="min-height:40px;" layout="row"   
				     		ng-class="{'status-unknown':data.statoDistinta=='In carico','status-error':data.statoDistinta=='Annullato', 'status-ok': data.statoDistinta=='Elaborato', 'odd-row':$index%2==1,'even-row':$index%2==0, 'selectedRow': ctrl.selectedIndex===$index}"
				     		 layout-align="start center" 
				     		 ng-click="ctrl.showCommands(data, $index, $event)">
 						<div style="width:0;height:40px"></div>
				     	<div ng-style="ctrl.getColumnWidth(0)" style="text-align:right"><span >{{data.iddistintaFlusso}}</span></div>
				     	<div ng-style="ctrl.getColumnWidth(1)"><span >{{data.dataCreazione.formatAsDateTime()}}</span></div>
				     </div>
			     </div>
		     </md-virtual-repeat-container>
	     </div>
			 	
 	</md-list> 
 </div>				     		 	 			