Summary widgets allowed to float next to each other
authorLaury GvR <laury@gaslightmedia.com>
Thu, 27 Sep 2018 16:54:32 +0000 (12:54 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 27 Sep 2018 16:54:32 +0000 (12:54 -0400)
views/admin/newDashboard/index.html
views/admin/newDashboard/summaryWidget.html

index a30c3b4..d7fd6eb 100644 (file)
@@ -3,22 +3,17 @@
     <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
index 1df691b..7470c68 100644 (file)
@@ -1,55 +1,20 @@
-<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