mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-05 14:31:21 +00:00
Add WebIDE UIModule
This commit is contained in:
parent
a5aad9ad26
commit
9b97e3dd19
9
src/app/templates/module-webide.html
Normal file
9
src/app/templates/module-webide.html
Normal file
@ -0,0 +1,9 @@
|
||||
<h1>WebIDE</h1>
|
||||
<pre>
|
||||
<code id="{{ anchor_id }}">
|
||||
|
||||
</code>
|
||||
</pre>
|
||||
<button type="button" class="btn btn-outline-primary anchor" id="{{ anchor_id }}_event">
|
||||
Next
|
||||
</button>
|
@ -1,2 +1,3 @@
|
||||
from .logger import Logger
|
||||
from .login import Login
|
||||
from .webide import WebIDE
|
||||
|
6
src/app/ui_modules/webide.py
Normal file
6
src/app/ui_modules/webide.py
Normal file
@ -0,0 +1,6 @@
|
||||
from tornado.web import UIModule
|
||||
|
||||
|
||||
class WebIDE(UIModule):
|
||||
def render(self, anchor_id, *args, **kwargs):
|
||||
return self.render_string('module-webide.html', anchor_id=anchor_id, **kwargs)
|
Loading…
Reference in New Issue
Block a user