diff options
Diffstat (limited to 'arduino_blog/templates')
-rw-r--r-- | arduino_blog/templates/dashboard.html | 23 | ||||
-rw-r--r-- | arduino_blog/templates/login.html | 2 |
2 files changed, 24 insertions, 1 deletions
diff --git a/arduino_blog/templates/dashboard.html b/arduino_blog/templates/dashboard.html new file mode 100644 index 0000000..a4528a8 --- /dev/null +++ b/arduino_blog/templates/dashboard.html @@ -0,0 +1,23 @@ +{% extends "base.html" %} + +{% block css%} + <link rel="stylesheet" href="{{ URL_ROOT }}/static/yaksh/css/dashboard.css" type="text/css" /> +{% endblock %} +{% block content %} +{% if success %} + <center> + <div class="alert alert-success" role="alert"> + <strong> {{ msg }} </strong> + </div> + <!-- <a href="{{URL_ROOT}}/exam/"> Home </a> --> + </center> +{% else %} + {% if msg %} + <center> + <div class="alert alert-warning" role="alert"> + <strong> {{ msg }} </strong> + </div> + {% endif %} +{% endif %} +<br/> +{% endblock content %} diff --git a/arduino_blog/templates/login.html b/arduino_blog/templates/login.html index 7c9bfc2..052fd99 100644 --- a/arduino_blog/templates/login.html +++ b/arduino_blog/templates/login.html @@ -26,7 +26,7 @@ <form action="" method="POST"> {% csrf_token %} {{ form.as_p }} - <button type="button" class="btn btn-success" name ="login" type="submit">Login</button> + <button class="btn btn-success" name ="login" type="submit">Login</button> <br/> <br/> <a style="padding-right : 20px;" href="{% url 'arduino_blog:user_register' %}" class="btn btn btn-primary">Create an Account |