Commit 646095a14f0b51dbc8479d2da30e39bd6ba441a2

Authored by David RENÉ
1 parent c91bcb7a

[+] add settings_table model here, which can use by many application whom use hayamiki

Showing 1 changed file with 28 additions and 0 deletions   Show diff stats
model/template/settings_model.anubis 0 → 100644
  1 +/*
  2 + * Created by PyramIDE.
  3 + * User: フランスのトトロ aka (David RENÉ)
  4 + * Date: 01/01/2022
  5 + * Time: 02:32
  6 + * © David RENÉ
  7 + */
  8 +
  9 +read hayamiki_lib/types/hayamiki.anubis
  10 +
  11 +public define HK_Table settings_table =
  12 + hk_table("settings",
  13 + hk_model(
  14 + [
  15 +
  16 + hk_column("name", char_field(20), []),
  17 + hk_column("value", char_field(20), []),
  18 + ],
  19 + "obj.name+\" = \"+obj.value"
  20 + ),
  21 + hk_display(
  22 + //list_view
  23 + [ list_view_all],
  24 + //list edit
  25 + [edit_view_list_form("default", ["name", "value"])]
  26 + )
  27 + )
  28 +.