<div class="container-fluid">
    <div class="row align-items-center justify-content-center">
        <div class="col">
            <div ng-if="!show_form" class="text-center">
                <img src="images/searching.gif" class="img-fluid" alt=""/>
            </div>
            <div ng-if="show_form" class="card my-5">
                <div class="card-header">
                    <h3>Agregar TAG</h3>
                </div>
                <div class="card-body">
                    <form name="formTag" ng-submit="submit()" novalidate>
                        <div class="row">
                            <div class="col-md-6">
                                <div class="form-group">
                                    <label>Número de TAG <span class="text-danger">*</span></label>
                                    <input type="text" 
                                           class="form-control" 
                                           ng-model="form.numero_tag"
                                           name="numero_tag"
                                           required
                                           maxlength="50">
                                    <div ng-messages="formTag.numero_tag.$error" ng-if="formTag.numero_tag.$dirty" class="text-danger">
                                        <small ng-message="required">Este campo es requerido</small>
                                        <small ng-message="maxlength">El número de TAG no debe exceder 50 caracteres</small>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="row mt-3">
                            <div class="col">
                                <button type="button" class="btn btn-secondary" ui-sref="main.tags_lista">
                                    <i class="fas fa-times"></i> Cancelar
                                </button>
                                <button type="submit" class="btn btn-primary" ng-disabled="formTag.$invalid">
                                    <i class="fas fa-save"></i> Guardar
                                </button>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>