|
@@ -1 +1,100 @@
|
|
|
-<p>new-company works!</p>
|
|
|
|
|
|
|
+<h2 class="floating-title">{{ title }}</h2>
|
|
|
|
|
+
|
|
|
|
|
+<div class="main-content">
|
|
|
|
|
+ <div class="container-fluid">
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class="col-12 align-right">
|
|
|
|
|
+ <div class="align-container">
|
|
|
|
|
+ <nav aria-label="breadcrumb">
|
|
|
|
|
+ <ol class="breadcrumb">
|
|
|
|
|
+ <li class="breadcrumb-item">
|
|
|
|
|
+ <a [routerLink]="['/']">Dashboard</a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="breadcrumb-item">
|
|
|
|
|
+ <a [routerLink]="['/companies']">
|
|
|
|
|
+ Empresas
|
|
|
|
|
+ </a>
|
|
|
|
|
+ </li>
|
|
|
|
|
+ <li class="breadcrumb-item">Nuevo</li>
|
|
|
|
|
+ </ol>
|
|
|
|
|
+ </nav>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <br />
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <br />
|
|
|
|
|
+ <div class="row justify-content-center">
|
|
|
|
|
+ <div class="col-12">
|
|
|
|
|
+ <div class="align-container">
|
|
|
|
|
+ <div class="card">
|
|
|
|
|
+ <div class="card-header card-header-icon card-header-rose">
|
|
|
|
|
+ <div class="card-icon"><i class="material-icons">map</i></div>
|
|
|
|
|
+ <h4 class="card-title">
|
|
|
|
|
+ Nueva Empresa
|
|
|
|
|
+ <small class="category">- Complete la información</small>
|
|
|
|
|
+ </h4>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <div class="card-body">
|
|
|
|
|
+ <div class="align-container">
|
|
|
|
|
+ <form
|
|
|
|
|
+ class="form-auth-small ng-untouched ng-pristine ng-valid"
|
|
|
|
|
+ [formGroup]="companyForm"
|
|
|
|
|
+ (ngSubmit)="createCompany()"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div class="row">
|
|
|
|
|
+ <div class=" col-sm-12">
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ <label for="name">Nombre: </label>
|
|
|
|
|
+ <input
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ formControlName="name"
|
|
|
|
|
+ class="form-control"
|
|
|
|
|
+ [ngClass]="{
|
|
|
|
|
+ 'is-invalid': submitted && f.name.errors
|
|
|
|
|
+ }"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div
|
|
|
|
|
+ *ngIf="submitted && f.name.errors"
|
|
|
|
|
+ class="invalid-feedback"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div *ngIf="f.name.errors.required">
|
|
|
|
|
+ Campo requerido
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+
|
|
|
|
|
+ <div class="form-group">
|
|
|
|
|
+ <label for="description">Descripcion: </label>
|
|
|
|
|
+ <input
|
|
|
|
|
+ type="text"
|
|
|
|
|
+ formControlName="description"
|
|
|
|
|
+ class="form-control"
|
|
|
|
|
+ [ngClass]="{
|
|
|
|
|
+ 'is-invalid': submitted && f.description.errors
|
|
|
|
|
+ }"
|
|
|
|
|
+ />
|
|
|
|
|
+ <div
|
|
|
|
|
+ *ngIf="submitted && f.description.errors"
|
|
|
|
|
+ class="invalid-feedback"
|
|
|
|
|
+ >
|
|
|
|
|
+ <div *ngIf="f.description.errors.required">
|
|
|
|
|
+ Campo requerido
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ <br />
|
|
|
|
|
+ <button class="btn btn-primary">
|
|
|
|
|
+ Guardar
|
|
|
|
|
+ </button>
|
|
|
|
|
+ <!--<div *ngIf="error" class="alert alert-danger mt-3 mb-0">{{error}}</div>-->
|
|
|
|
|
+ </form>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+ </div>
|
|
|
|
|
+</div>
|