dfdsfsafdsfsdfasdsf
This commit is contained in:
40
templates/post.html
Normal file
40
templates/post.html
Normal file
@@ -0,0 +1,40 @@
|
||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
|
||||
<HTML>
|
||||
<HEAD>
|
||||
<TITLE>New Post - OpenVK4WebTV</TITLE>
|
||||
<STYLE>
|
||||
Body { font-family: Arial; background: #EEE; }
|
||||
.container { width: 500px; margin: 20px auto; padding: 15px; background: white; }
|
||||
TEXTAREA { width: 100%; height: 100px; margin: 10px 0; }
|
||||
</STYLE>
|
||||
</HEAD>
|
||||
<BODY>
|
||||
<DIV CLASS="container">
|
||||
<H3>Create New Post</H3>
|
||||
|
||||
{% if error %}
|
||||
<DIV STYLE="color: red; margin: 10px 0;">
|
||||
{% if error == 'empty' %}Post text is required!
|
||||
{% elif error == 'api' %}Posting failed!
|
||||
{% endif %}
|
||||
</DIV>
|
||||
{% endif %}
|
||||
|
||||
{% if success %}
|
||||
<DIV STYLE="color: green; margin: 10px 0;">
|
||||
Post published successfully!
|
||||
</DIV>
|
||||
{% endif %}
|
||||
|
||||
<FORM METHOD="POST" ACTION="/post">
|
||||
<TEXTAREA NAME="text" WRAP="physical"></TEXTAREA><BR>
|
||||
<INPUT TYPE="submit" VALUE="Publish">
|
||||
</FORM>
|
||||
|
||||
<P STYLE="margin-top: 15px;">
|
||||
<A HREF="/profile">Profile</A> |
|
||||
<A HREF="/feed">News Feed</A>
|
||||
</P>
|
||||
</DIV>
|
||||
</BODY>
|
||||
</HTML>
|
||||
Reference in New Issue
Block a user