Edited wiki page GSoC2011GUIOverhaul through web user interface.
diff --git a/GSoC2011GUIOverhaul.wiki b/GSoC2011GUIOverhaul.wiki index 5bd4375..3bb3fec 100644 --- a/GSoC2011GUIOverhaul.wiki +++ b/GSoC2011GUIOverhaul.wiki
@@ -24,12 +24,39 @@ = Iconic Dashboard Architecture = -Iconic dashboard basically is a chunk of template, or a Django view that will be rendered as a partial HTML. Specifically, the view will be rendered as a collection of links that nested or linked to another page. Iconic dashboard consists of: +Iconic dashboard basically is a chunk of template, or a Django view that will be rendered as a partial HTML. Specifically, the view will be rendered as a collection of links that either nested (link to another block/div in the same page) or linked to another page. Iconic dashboard consists of: * Django view (app/soc/views/dashboard.py). Classes in this view are not supposed to be instantiated directly, where each class acts as a base class. To implement iconic dashboard at least one derived class must be created. * Djano template (app/soc/templates/v2/soc/dashboard/*) +Lets say you want a GSoC view named dummy_dashboard (which is in app/soc/modules/gsoc/views/dummy_dashboard.py) implements iconic dashboard. First you need to import the base class of dashboard: + +<code language="python"> +... +from soc.views.dashboard import Dashboard +from soc.views.dashboard import DashboardUserActions +... +</code> + +If the dummy_dashboard needs to render list component (such as in the participant dashboard), then Component class must be imported too. + +<code language="python"> +... +from soc.views.dashboard import Dashboard +from soc.views.dashboard import DashboardUserActions +... +</code> + Given use cases of GSoC program below on how to alter the dashboard will give you an understanding how the dashboard works. +<code language="python"> +... +from soc.views.dashboard import Component +from soc.views.dashboard import Dashboard +from soc.views.dashboard import DashboardUserActions +... +</code> + + == Iconic Dashboard Use Case in Admin Dashboard (GSoC) ==