Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Create = Templates.View("create_category", DIV( InputText(args.FormName.Name(), attr.Name(args.FormName.Name())), InputSubmit("", attr.Value("save")), ), )
View Source
var Table = Templates.ListView("list_category", TablePos.rows, DIV( TablePos.CreateLink.String(), TABLE( THEAD( TR( TH( SPAN("ID"), SPAN(html.Classes("icon", "is-small"), I(html.Classes("fas", "fa-arrow-down"), ATTR("aria-hidden", "true")), TablePos.SortByIDLink.String(), ), ), TH( SPAN("Name"), SPAN(html.Classes("icon", "is-small"), I(html.Classes("fas", "fa-arrow-down"), ATTR("aria-hidden", "true")), TablePos.SortByNameLink.String(), ), ), TH(), TH(), ), ), TBODY(TablePos.rows), ), ), TR( TD(TablePos.ID), TD(TablePos.Name), TD(TablePos.EditLink.String()), TD(TablePos.DeleteLink.String()), ), )
View Source
var TablePos = struct { CreateLink html.Pos EditLink html.Pos DeleteLink html.Pos ID html.Pos Name html.Pos rows html.Pos SortByIDLink html.Pos SortByNameLink html.Pos }{ HTML("create-url").Position(), HTML("edit-url").Position(), HTML("delete-url").Position(), Text("id").Position(), Text("name").Position(), HTML("rows").Position(), HTML("sort-by-id-url").Position(), HTML("sort-by-name-url").Position(), }
View Source
var Templates = crudl.Templates(embedfsys, path.Relative("cached_templates/"))
View Source
var Update = Templates.View("update_category", DIV( InputText( args.FormName.Name(), attr.Value(UpdatePos.Name.String()), ), InputSubmit("", attr.Value("save")), ), )
View Source
var UpdatePos = struct { Name html.Pos }{ Text("name").Position(), }
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.