|
@@ -2,45 +2,50 @@
|
|
|
<ion-navbar>
|
|
|
<ion-title>{{ title }}</ion-title>
|
|
|
<ion-buttons end>
|
|
|
- <button ion-button icon-only type="submit" form="details-form">
|
|
|
+ <button ion-button icon-only type="submit" form="details-form" [disabled]="!formIsValid()">
|
|
|
<i class="fa fa-save fa-lg"></i>
|
|
|
</button>
|
|
|
</ion-buttons>
|
|
|
</ion-navbar>
|
|
|
</ion-header>
|
|
|
<ion-content>
|
|
|
- <form id="details-form">
|
|
|
+ <form id="details-form" (ngSubmit)="submit()">
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Asunto</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.name" name="name"></ion-input>
|
|
|
</ion-item>
|
|
|
- <ion-item (tap)="selectCustomer()">
|
|
|
+ <ion-item>
|
|
|
<ion-label stacked>Cliente</ion-label>
|
|
|
- <ion-input type="text" value="{{ lead.customer.name }}"></ion-input>
|
|
|
+ <ion-input type="text" [value]="lead.customer?.name" name="customer"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Dirección</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.street" name="street"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Ciudad</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.city" name="city"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Nombre de Contacto</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.contact_name" name="lead.contact_name"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Correo Electrónico</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.email" name="lead.email"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Teléfono</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.phone" name="lead.phone"></ion-input>
|
|
|
</ion-item>
|
|
|
<ion-item>
|
|
|
<ion-label stacked>Celular</ion-label>
|
|
|
- <ion-input type="text"></ion-input>
|
|
|
+ <ion-input type="text" [(ngModel)]="lead.mobile" name="lead.mobile"></ion-input>
|
|
|
</ion-item>
|
|
|
</form>
|
|
|
+ <ion-fab right bottom>
|
|
|
+ <button ion-fab (click)="selectCustomer()">
|
|
|
+ <ion-icon name="person"></ion-icon>
|
|
|
+ </button>
|
|
|
+ </ion-fab>
|
|
|
</ion-content>
|