Welcome | Get started | Dive | Contribute | Topics | Reference | Changes | More

lino.modlib.bootstrap3.views

Views for lino.modlib.bootstrap3.

Functions

buttons2pager(buttons[, title])

http_response(ar, tplname, context)

Deserves a docstring

index_response(ar)

layout2html(ar, elem)

table2html(ar[, as_main])

Represent the given table request as an HTML table.

Classes

Authenticate(**kwargs)

Element(**kwargs)

Render a single record.

Index(**kwargs)

Render the main page.

List(**kwargs)

Render a list of records.

lino.modlib.bootstrap3.views.http_response(ar, tplname, context)

Deserves a docstring

lino.modlib.bootstrap3.views.table2html(ar, as_main=True)

Represent the given table request as an HTML table.

ar is the request to be rendered, an instance of lino.core.requests.ActionRequest.

The returned HTML enclosed in a <div> tag and generated using etgen.html.

If as_main is True, include additional elements such as a paging toolbar. (This argument is currently being ignored.)

class lino.modlib.bootstrap3.views.List(**kwargs)

Bases: View

Render a list of records.

class lino.modlib.bootstrap3.views.Element(**kwargs)

Bases: View

Render a single record.

class lino.modlib.bootstrap3.views.Index(**kwargs)

Bases: View

Render the main page.