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')
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')
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)
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)
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)
def exportar(): return render_template('exportar_productos.html', \ datos=current_user.get_mis_datos(), \ is_authenticated=current_user.is_authenticated, \ rol='operador')
def modificar(): return render_template('form_modificar_producto.html', \ datos=current_user.get_mis_datos(), \ is_authenticated=current_user.is_authenticated, \ rol='operador')
def importar(): return render_template('importar_movimientos.html', \ datos=current_user.get_mis_datos(), \ is_authenticated=current_user.is_authenticated, \ rol='operador')
def agregar(): return render_template('form_agregar_movimiento.html', \ datos=current_user.get_mis_datos(), \ is_authenticated=current_user.is_authenticated, \ rol='operador')
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')
def eliminar(): return render_template('form_eliminar_lista_precio.html', \ datos=current_user.get_mis_datos(), \ is_authenticated=current_user.is_authenticated, \ rol='operador')