admin interface with tab layout

This commit is contained in:
phil 2015-04-27 20:07:18 +00:00
parent 5073a3b28e
commit 672c6f88af
6 changed files with 153 additions and 97 deletions

View file

@ -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():