<md-dialog aria-label="Gestione banche" style="height:665px;min-height:665px;width:620px" layout="column">
		<md-toolbar class="small-toolbar" layout="row">
		   <div class="md-toolbar-tools small-toolbar">
		     <h3>Anagrafica ordinante</h3>
		     <span flex></span>
		     <md-icon ng-click="cancelDialog()" md-font-icon="fa-times" class="fa button-icon" style="color:white">
					<md-tooltip>Chiudi</md-tooltip>
			 </md-icon>
		   </div>
		 </md-toolbar>

	<md-dialog-content style="min-height:550px">
		<ng-form name="form">
			<div class="md-dialog-content" layout-gt-xs="column" layout="row">
				<div layout-gt-xs="row" layout="column">
					<md-input-container style="width:66%">
						<label>Società ordinante</label>
						<input type="text" maxlength="96" ng-model="ordinante.ordinante" ng-required="true" md-autofocus >
					</md-input-container>
					<md-input-container  style="width:33%">
						<label>Codice bonifici postali</label>
						<input type="text" maxlength="3" ng-model="ordinante.codiceSocietaBancoPosta">
					</md-input-container>
				</div>
				<div layout-gt-xs="row" layout="column">
					<md-input-container flex>
						<label>Codice fiscale / Partita IVA</label>
						<input type="text" maxlength="16" ng-model="ordinante.codiceFiscale" ng-blur="controllaCF()" ng-required="true">
					</md-input-container>
					<md-input-container flex>
						<label>Codice SIA</label>
						<input type="text" maxlength="5" ng-model="ordinante.codiceSia" ng-required="true" required="required">
					</md-input-container>
					<md-input-container flex>
						<label>Firma emittente</label>
						<input type="text" maxlength="20" ng-model="ordinante.firmaEmittente">
					</md-input-container>
		      	</div>
		      	<div layout-gt-xs="row" layout="column">
					<md-input-container flex>
						<label>Indirizzo</label>
						<input type="text" maxlength="30" ng-model="ordinante.indirizzo" >
					</md-input-container>
					<md-input-container flex>
						<label>Comune</label>
						<input type="text" maxlength="30" ng-model="ordinante.comune" >
					</md-input-container>
	      		</div>
	      		<div layout-gt-xs="row" layout="column">
					<md-input-container style="width:15%">
						<label>Cap</label>
						<input type="text" maxlength="5" ng-model="ordinante.cap" >
					</md-input-container>
					<md-input-container style="width:15%">
						<label>Prov</label>
						<input type="text" maxlength="2" ng-model="ordinante.provincia" style="width:100%">
					</md-input-container>
					<md-input-container style="width:25%">
						<label>Codice CUC</label>
						<input type="text" maxlength="35" ng-model="ordinante.codiceCucOrdinante" style="width:100%">
					</md-input-container>
					<md-input-container style="width:45%">
						<label>Idenfiicativo creditore</label>
						<input type="text" maxlength="35" ng-model="ordinante.identificativoCreditore" style="width:100%">
					</md-input-container>
				</div>
				<div layout-gt-xs="row" layout="column">
					<h5 class="title-label">Addebito bonifici postali domiciliati</h5>
				</div>
		      		<div layout-gt-xs="row" layout="column">
						<md-input-container style="width:20%">
							<label>Abi</label>
							<input type="text" maxlength="5" ng-model="ordinante.abi" ng-keypress="checkDigit($event, 5)">
						</md-input-container>
						<md-input-container style="width:20%">
							<label>Cab</label>
							<input type="text" maxlength="5" ng-model="ordinante.cab" ng-keypress="checkDigit($event, 5)" style="width:100%">
						</md-input-container>
						<md-input-container style="width:60%">
							<label>Conto</label>
							<input type="text" maxlength="12" ng-model="ordinante.conto" style="width:100%" pattern="[A-Z0-9]+" ng-change="ordinante.conto=ordinante.conto.toUpperCase()"> 
						</md-input-container>
					</div>
	      	</div>
      	</ng-form>			
	</md-dialog-content>
	
	<md-dialog-actions layout="row" >
		<span flex></span>
   		<md-button type="submit" ng-click="confirmDialog()" aria-label="Chiudi" class="md-raised md-primary" title="Conferma" >
	       	<md-icon md-font-icon="fa-check" class="fa" aria-label="Conferma"></md-icon>
    	    Conferma
      	</md-button>
   		<md-button type="submit" ng-click="cancelDialog()" aria-label="Chiudi" class="md-raised md-warn" title="Annulla" >
	       	<md-icon md-font-icon="fa-check" class="fa" aria-label="Annulla"></md-icon>
    	    Annulla
      	</md-button>
 	</md-dialog-actions>		
  			
</md-dialog>
