<div class="glm-summary-widgets-container">
<div class="glm-summary-widgets">
<div class="row">
- <div class="glm-summary-widget col s12 m6 l6 xl4">
- {foreach $addons as $addon}
- {include file='./summaryWidget.html'}
- {/foreach}
- </div>
+ {foreach $addons as $addon}
+ {include file='./summaryWidget.html'}
+ {/foreach}
</div>
</div>
</div>
</div>
-NewDashboard!
<script>
jQuery(function($){
M.AutoInit();
})
-
-
</script>
{include file='admin/footer.html'}
\ No newline at end of file
-<ul id="{$addon.slug}-summary-widget" class="summary members-summary-widget dashboard-summary-widget collapsible">
- <li>
- <div class="summary-widget-handle collapsible-header"><pre> {$addon.widgetData.title}</pre></div>
- <div class="summary-widget-body collapsible-body">
- {foreach $addon.widgetData.components as $component}
-
- {if isset($component.template)}
-
- {**if file_exists("./components/$component.component.html") // wouldn't it be great if this worked?**}
-
- {** This will throw a serious error if the file does not exist **}
- {include file="./components/{$component.template}.html"}
-
- {**/if**}
- {/if}
- {/foreach}
- </li>
-</ul>
-<script type="text/javascript">
- jQuery(document).ready(function($) {
-
- /*
- * Do autocomplete search for member
- * label: What will be searched
- * value: What will be displayed when selected
- * id: Member id added so we can go to the member while showing what was selected
- * Also note that autocomplete does not properly render HTML codes, so we
- * "unescape" them for HTML in Smarty.
- */
-
- // $( "#glmMembersList" ).autocomplete({
- // //source: availableTags,
- // source: {*ajaxModel*},
- // data: {
+<div class="glm-summary-widget col s12 m6 l6 xl4">
+ <ul id="{$addon.slug}-summary-widget" class="summary members-summary-widget dashboard-summary-widget collapsible">
+ <li>
+ <div class="summary-widget-handle collapsible-header"><pre> {$addon.widgetData.title}</pre></div>
+ <div class="summary-widget-body collapsible-body">
+ {foreach $addon.widgetData.components as $component}
- // action: 'glm_members_admin_ajax',
- // glm_action: 'eventsCalMonthAJAX',
- // custom_data: 'custom_data',
- // },
- // html: true,
- // select: function( event, ui ) {
- // var memberID = ui.item.id;
- // window.location.replace("{*$adminUrl*}?page=glm-members-admin-menu-member&glm_action=index&member=" + memberID );
- // },
- // response: function(event, ui) {
- // if (!ui.content.length) {
- // var noResult = { value:"",label:"No results found" };
- // ui.content.push(noResult);
- // }
- // }
- // });
+ {if isset($component.template)}
+
+ {**if file_exists("./components/$component.component.html") // wouldn't it be great if this worked?**}
- });
+ {** This will throw a serious error if the file does not exist **}
+ {include file="./components/{$component.template}.html"}
-</script>
+ {**/if**}
+ {/if}
+ {/foreach}
+ </li>
+ </ul>
+</div>
\ No newline at end of file