def document_edit(id): document = Document.get_by_id(id) columns = Column.get_all_for_select(is_group=True) attribute = document.attribute.split(',') return render_template('admin/document/edit.html', document=document, columns=columns, attribute=attribute)
def link_edit(id): link = Link.get_by_id(id) columns = Column.get_all_for_select(is_group=True) return render_template('admin/link/edit.html', link=link, columns=columns)
def link_create(): columns = Column.get_all_for_select(is_group=True) return render_template('admin/link/create.html', columns=columns)
def document_create(): columns = Column.get_all_for_select(is_group=True) uuid = uuid4() return render_template('admin/document/create.html', columns=columns, uuid=uuid)
def note_edit(id): note = Note.get_by_id(id) columns = Column.get_all_for_select(is_group=True) return render_template('admin/note/edit.html', note=note, columns=columns)
def focus_edit(id): focus = Focus.get_by_id(id) columns = Column.get_all_for_select(is_group=True) return render_template('admin/focus/edit.html', focus=focus, columns=columns)