-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
062eb3b
commit 6872930
Showing
13 changed files
with
141 additions
and
12 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.0.2 on 2018-03-06 13:59 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('userpage', '0008_auto_20180305_1717'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='profile', | ||
name='telegram', | ||
field=models.CharField(blank=True, max_length=128), | ||
), | ||
] |
Binary file added
BIN
+593 Bytes
userpage/migrations/__pycache__/0009_profile_telegram.cpython-36.pyc
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
{% extends 'base.html' %} | ||
{% load timetonow %} | ||
|
||
{% block header %} | ||
<title> 物志 › {{request.user}} </title> | ||
|
||
|
||
{% endblock %} | ||
|
||
{% block banner %} | ||
<div style="height:30px"> | ||
<p></p> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block content %} | ||
<div class="card"> | ||
<form class="form-inline " method="post" action="" novalidate>{% csrf_token %} | ||
<a href="/">物志</a> › 修改密码 | ||
<hr> | ||
{{form.as_p}} | ||
<p style="text-align:center"> | ||
<button class="btn btn-primary" type="submit" >确认修改</button> | ||
</p> | ||
</form> | ||
</div> | ||
|
||
|
||
|
||
{% if messages %} | ||
{% for m in messages %} | ||
<script type="text/javascript"> | ||
$.notify({ | ||
// options | ||
message: '{{ m|escape }}', | ||
},{ | ||
// settings | ||
type: 'danger', | ||
delay: 5000, | ||
timer: 1000, | ||
animate: { | ||
enter: 'animated flipInY', | ||
exit: 'animated flipOutX' | ||
}, | ||
},); | ||
</script> | ||
{% endfor %} | ||
{% endif %} | ||
|
||
|
||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters