admin interface with tab layout
This commit is contained in:
parent
5073a3b28e
commit
672c6f88af
6 changed files with 153 additions and 97 deletions
12
tycker.py
12
tycker.py
|
@ -124,12 +124,20 @@ def generate_static():
|
|||
return bobo.redirect(BASE_URL)
|
||||
|
||||
@bobo.query('/')
|
||||
def show_entries():
|
||||
def create_entry():
|
||||
values = {}
|
||||
values["entries"] = Entry.select().orderBy("-timestamp")
|
||||
values["date_format"] = DATE_FORMAT_FULL
|
||||
values["static_url"] = get_link(1)
|
||||
return render("admin_show_entries.html", **values)
|
||||
return render("admin_create.html", **values)
|
||||
|
||||
@bobo.query('/edit')
|
||||
def edit_entries():
|
||||
values = {}
|
||||
values["entries"] = Entry.select().orderBy("-timestamp")
|
||||
values["date_format"] = DATE_FORMAT_FULL
|
||||
values["static_url"] = get_link(1)
|
||||
return render("admin_edit.html", **values)
|
||||
|
||||
@bobo.query('')
|
||||
def redirect_base():
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue