Exemplo n.º 1
0
def index():
    if current_user.has_role('Operador'):
        return render_template('home_cta_corriente.html', \
         datos=current_user.get_mis_datos(),\
         is_authenticated=current_user.is_authenticated, \
         rol='operador', \
                  site='Gestión Ctas Corrientes')
Exemplo n.º 2
0
def index():
    if current_user.has_role('Operador'):
        return render_template('home_producto.html', \
         datos=current_user.get_mis_datos(),\
         is_authenticated=current_user.is_authenticated, \
         rol='operador', \
                  site='Gestión de Productos')
Exemplo n.º 3
0
def importar():
    form = ImportarProducto()
    return render_template('importar_producto.html', \
        datos=current_user.get_mis_datos(), \
        is_authenticated=current_user.is_authenticated, \
        rol='operador', \
        site='Importar Producto', \
        form=form)
Exemplo n.º 4
0
def importar():
    form = ImportarListaPrecio()
    return render_template('importar_lista_precio.html',\
    datos=current_user.get_mis_datos(),\
    is_authenticated=current_user.is_authenticated,\
    rol='operador',\
    site='Importar Lista de Precios',\
    form=form)
Exemplo n.º 5
0
def home_cliente():
    """
    Vista home del usuario de tipo Cliente
    """
    site = 'Home {}'.format(current_user.get_username())
    return render_template('home_cliente.html', \
        datos=current_user.get_mis_datos(), \
        is_authenticated=current_user.is_authenticated, \
        rol='cliente',
        site=site)
Exemplo n.º 6
0
def exportar():
    return render_template('exportar_productos.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
Exemplo n.º 7
0
def modificar():
    return render_template('form_modificar_producto.html', \
    datos=current_user.get_mis_datos(), \
    is_authenticated=current_user.is_authenticated, \
    rol='operador')
Exemplo n.º 8
0
def importar():
    return render_template('importar_movimientos.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
Exemplo n.º 9
0
def agregar():
    return render_template('form_agregar_movimiento.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
Exemplo n.º 10
0
def consultar_cta_corriente():
    return render_template('form_consultar_cta_corriente.html', \
    datos=current_user.get_mis_datos(), \
    is_authenticated=current_user.is_authenticated, \
    rol='operador')
Exemplo n.º 11
0
def eliminar():
    return render_template('form_eliminar_lista_precio.html', \
    datos=current_user.get_mis_datos(), \
    is_authenticated=current_user.is_authenticated, \
    rol='operador')