From: Steve Sutton Date: Fri, 23 Aug 2019 13:06:22 +0000 (-0400) Subject: More ui elements X-Git-Tag: v2.13.1^2~14 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=d567b16702ba1b720b1e398d8ed57734eab8ba68;p=WP-Plugins%2Fglm-member-db.git More ui elements one for paging (same as currently used in member plugins. another one for list. start of the ajax table list --- diff --git a/views/ui/f6/list.html b/views/ui/f6/list.html new file mode 100644 index 00000000..a20018e3 --- /dev/null +++ b/views/ui/f6/list.html @@ -0,0 +1,34 @@ +{* + Foundation 6 List Element + + $ui = [ + 'data' => array Required Array of the data (initial data to load into table) + 'headers' => array Required Array of headers + 'ajaxUrl' => string Required URL to call in table results + ] +*} + + + + + {foreach $ui.headers as $head} + + {/foreach} + + + + {foreach $ui.data as $row} + + {foreach $row as $key => $val} + + {/foreach} + + {/foreach} + +
{$head}
{$val}
+ + diff --git a/views/ui/f6/paging.html b/views/ui/f6/paging.html new file mode 100644 index 00000000..b9bcd64c --- /dev/null +++ b/views/ui/f6/paging.html @@ -0,0 +1,16 @@ +{* + Glm Associate Paging + Simple paging prev and next buttons + + {$paging = [ + 'limit' integer Limit + 'prevStart' integer Prev Start + 'nextStart' integer Next Start + 'unitName' string Name of units + ]} +*} + +{if $paging} + + +{/if}