Пример #1
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('update info success', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
Пример #2
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('个人信息更新成功', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
Пример #3
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash('信息更新成功', 'success')
        return redirect(url_for('user.user_detail'))
    return render_template('user/userprofile.html',form=form)
Пример #4
0
def profile():
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        set_resume.save(form.resume.data, name=form.name_resume())
        form.updated_profile(current_user)
        flash('个人信息更新成功', 'success')
        return redirect(url_for('front.index'))
    return render_template('user/profile.html', form=form)
Пример #5
0
def profile():
    """
    个人信息配置
    """
    form = UserProfileForm(obj=current_user)
    if form.validate_on_submit():
        form.updated_profile(current_user)
        flash("个人信息更新成功", "success")
        return redirect(url_for("front.index"))
    return render_template("user/profile.html", form=form)