<md-dialog aria-label="Selezione conto corrente" style="height:470px;min-height:470px;width:620px" layout="column">
		<md-toolbar class="small-toolbar" layout="row">
		   <div class="md-toolbar-tools small-toolbar">
		     <h3>Conto</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:380px">
		<ng-form name="form">
			<div class="md-dialog-content" layout="column">
				<div layout-gt-sm="row" layout="column">
						<md-input-container flex-gt-sm="25" flex="100">
							<label>ABI</label>
							<input type="text" maxlength="5" ng-keypress="checkDigit($event,5)" ng-model="conto.abi" md-autofocus>
						</md-input-container>
						<md-input-container flex>
							<label>CAB</label>
							<input type="text" maxlength="5" ng-model="conto.cab" ng-keypress="checkDigit($event, 5)">
						</md-input-container>
						<md-input-container flex>
							<label>Conto</label>
							<input type="text" maxlength="12" ng-model="conto.conto" ng-keypress="toUpperCase($event)"  style="text-transform:uppercase" >
						</md-input-container>
						<md-icon ng-click="piazzatura($event)" md-font-icon="fa-bank" class="fa button-icon">
							<md-tooltip>Convalida e Ricerca Coordinate Bancarie</md-tooltip>
						</md-icon>
				</div>
				<div layout-gt-sm="row" layout="column">
					<md-input-container flex-gt-sm="25" flex="100">
						<md-checkbox ng-model="conto.contoDefault" ng-change="checkDefaultPresente()">Default</md-checkbox>
					</md-input-container>
					<md-input-container flex="100">
						<label>Coordinate IBAN</label>
						<input type="text" maxlength="42" ng-model="conto.coordinateIban" ng-keypress="toUpperCase($event)" ng-blur="controlloIban()">
					</md-input-container>
				</div>
				<div layout-gt-sm="row" layout="column">
					<md-input-container flex-gt-sm="25" flex="100">
						<label>Codice BIC</label>
						<input type="text" maxlength="11" ng-model="conto.codiceBic">
					</md-input-container>
					<md-input-container flex-gt-sm="60" flex="100">
						<label>Denominazione banca</label>
						<input type="text" maxlength="50" ng-model="conto.descrizioneBanca">
					</md-input-container>
					<md-input-container flex-gt-sm="15" flex="100">
						<label>CIN</label>
						<input type="text" maxlength="1" ng-model="conto.cin">
					</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>
