From 3a3c5701b7409c3e0d464ad12ccd88156b35abcd Mon Sep 17 00:00:00 2001 From: guanghongwei <hongwei.guang@yolu-inc.com> Date: Sat, 10 Jan 2015 15:04:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9vbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/juser/user_add.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/templates/juser/user_add.html b/templates/juser/user_add.html index dd2f0ae4..1aa9bbca 100644 --- a/templates/juser/user_add.html +++ b/templates/juser/user_add.html @@ -27,7 +27,13 @@ </div> </div> <div class="ibox-content"> - <form method="post" class="form-horizontal"> + <form method="post" class="form-horizontal" action=""> + {% if error %} + <div class="alert alert-warning text-center">{{ error }}</div> + {% endif %} + {% if msg %} + <div class="alert alert-success text-center">{{ msg }}</div> + {% endif %} <div class="form-group"> <label for="j_username" class="col-sm-2 control-label">用户å<span class="red-fonts">*</span></label> <div class="col-sm-8"> -- 2.18.0