Commits

Alexander Vershilov committed 6370518

Fixing append form

Fail on no field fixed
Styles added

  • Participants
  • Parent commits 139f4ad

Comments (0)

Files changed (3)

             database.db.session.add(q)
             database.db.session.commit()
             return render_template('sucess.html', quote=q)
+        else:
+            return render_template('append.html', form=form);
     else:
-        abort(404)
+        return abort(404);
 
 @quoteapp.route('/list/')
 def list_all():
         font-style: italic;
         font-size: 9pt;
 }
+ul.errors li {
+    color: red;
+}

templates/base.html

     <meta http-equiv="content-type" content="text/html; charset=utf-8" />
     <title>Gentoo.Ru fortunes</title>
     <meta name="description" content="Цитаты и особо выдающиеся выражения участников и гостей русскоязычного сообщества Gentoo Linux" />
+    <link rel="stylesheet" type="text/css" href="/static/base.css"/>
 </head>
 <body>
 {% block content %}