Skip to content

Instantly share code, notes, and snippets.

@janmarek
Created September 9, 2010 16:55
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save janmarek/572165 to your computer and use it in GitHub Desktop.
Save janmarek/572165 to your computer and use it in GitHub Desktop.
Gridito template macros
{gridito usersGrid}
{* top toolbar *}
{gridito.toolbar.button addUser text => "Nový uživatel", icon => "plusthick", plink => "add"}
{* columns *}
{gridito.column username text => "Uživatelské jméno", sortable => true}
{gridito.column name text => "Jméno", sortable => true}
{gridito.column mail text => "E-mail", sortable => true}
{gridito.column allowed text => "Aktivní", sortable => true}
{gridito.column created text => "Datum založení", sortable => true, dateTimeFormat => "j.n.Y"}
{* buttons *}
{gridito.button editUser text => "Upravit uživatele", icon => "pencil"}
{gridito.button deleteUser text => "Smazat uživatele", icon => "closethick", confirmationQuestion => "Opravdu smazat?"}
{/gridito}
@romansklenar
Copy link

Na tohle omezení ze strany Nette už jsem taky hodněkrát narazil, je to škoda :( ...v Rails se takhle např. formuláře definujou standardně v šablonách

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment