witten
/
luminotes
Archived
1
0
Fork 0
This repository has been archived on 2023-12-16. You can view files and clone it, but cannot push or open issues or pull requests.
luminotes/view/Upload_page.py

27 lines
1.0 KiB
Python

from Tags import Html, Head, Link, Meta, Body, P, Form, Span, Input
class Upload_page( Html ):
def __init__( self, notebook_id, note_id ):
Html.__init__(
self,
Head(
Link( href = u"/static/css/upload.css", type = u"text/css", rel = u"stylesheet" ),
Meta( content = u"text/html; charset=UTF-8", http_equiv = u"content-type" ),
),
Body(
Form(
Span( u"attach file: ", class_ = u"field_label" ),
Input( type = u"file", id = u"file", name = u"file", size = u"30" ),
Input( type = u"submit", id = u"upload_button", class_ = u"button", value = u"upload" ),
Input( type = u"hidden", id = u"notebook_id", name = u"notebook_id", value = notebook_id ),
Input( type = u"hidden", id = u"note_id", name = u"note_id", value = note_id ),
action = u"/notebooks/upload_file",
method = u"post",
enctype = u"multipart/form-data",
),
P( u"Please select a file to upload." ),
Span( id = u"tick_preload" ),
),
)