Skip to content

Commit

Permalink
Resolve auth/register bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
oelgazzar committed Jun 9, 2018
1 parent 51cd394 commit aa3a44c
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 9 deletions.
Binary file modified app/__pycache__/auth.cpython-36.pyc
Binary file not shown.
4 changes: 2 additions & 2 deletions app/templates/auth/login.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% extends "base.html" %}

{% block title %}Blog{% endblock %}
{% block title %}Login{% endblock %}
{% block header %}{% endblock %}
{% block content %}
<div class="login z-depth-2">
Expand All @@ -16,7 +16,7 @@
<label for="password">Password</label>
</div>
<div class="input-field col s12">
<input type="submit" value="{% block button_label %}Login{%endblock %}" class="blue white-text btn">
<input type="submit" value="{% block button_label %}Login{%endblock %}" class="{% block button_color %}blue{% endblock %} white-text btn">
</div>
</form>
{%with messages = get_flashed_messages()%}
Expand Down
9 changes: 3 additions & 6 deletions app/templates/auth/register.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
<!--
{% extends "login.html" %}
-->
<!--
{% extends "auth/login.html" %}
{% block title %}Register{% endblock %}
{% block button_label %}Register{% endblock %}
-->
<h1>asdasdsa</h1>
{% block button_color %}red{% endblock %}
2 changes: 1 addition & 1 deletion app/templates/new.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
</div>
<div class="row">
<div class="input-field col s12">
<textarea id="body" class="materialize-textarea">{% block post_body%}{% endblock %}</textarea>
<textarea id="body" name="body" class="materialize-textarea">{% block post_body%}{% endblock %}</textarea>
<label for="body">Body</label>
</div>
</div>
Expand Down
Binary file modified blog.db
Binary file not shown.
2 changes: 2 additions & 0 deletions blog.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,5 @@
@app.shell_context_processor
def _():
return {'db': db, 'Post': Post, 'Category': Category}

app.run(debug=True)

0 comments on commit aa3a44c

Please sign in to comment.