コード例 #1
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
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')
コード例 #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')
コード例 #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)
コード例 #4
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
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)
コード例 #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)
コード例 #6
0
def exportar():
    return render_template('exportar_productos.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
コード例 #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')
コード例 #8
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
def importar():
    return render_template('importar_movimientos.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
コード例 #9
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
def agregar():
    return render_template('form_agregar_movimiento.html', \
       datos=current_user.get_mis_datos(), \
       is_authenticated=current_user.is_authenticated, \
       rol='operador')
コード例 #10
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
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')
コード例 #11
0
ファイル: views.py プロジェクト: viccmedina/unlu_sip
def eliminar():
    return render_template('form_eliminar_lista_precio.html', \
    datos=current_user.get_mis_datos(), \
    is_authenticated=current_user.is_authenticated, \
    rol='operador')