Exemplo n.º 1
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"

        self.children.append(
            ModelAdd(None, model=Story, text='Create new Story'))
        self.children.append(
            OwnInstancesList(_('My Stories'), model=Story, key='authors'))
        self.children.append(
            modules.AppList(title='Tumblelog', models=('tumblelog.*', )))
        self.children.append(
            modules.LinkList('bookmarklet',
                             children=[{
                                 'title':
                                 'luminous flux bookmarklet',
                                 'url':
                                 generate_bookmarklink(context['request'])
                             }]))
        self.children.append(
            modules.AppList(title='Static Content',
                            models=('django.contrib.flatpages.*', )))
        self.children.append(
            CreateForInstance(model=ChangeSuggestion,
                              instances=Story.objects.all(),
                              key='story'))
        self.children.append(
            OwnInstancesList(_('My Suggestions'),
                             model=ChangeSuggestion,
                             key='user'))
Exemplo n.º 2
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(modules.LinkList(
            _('Quick links'),
            layout='inline',
            draggable=False,
            deletable=False,
            collapsible=False,
            children=[
                [_('Return to site'), '/'],
                [_('Change password'),
                 reverse('%s:password_change' % site_name)],
                [_('Log out'), reverse('%s:logout' % site_name)],
            ]
        ))

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            _('Applications'),
            exclude=('django.contrib.*',),
        ))

        # append an app list module for "Administration"
        self.children.append(modules.AppList(
            _('Administration'),
            models=('django.contrib.*',),
        ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))

        # append a feed module
        self.children.append(modules.Feed(
            _('Latest Django News'),
            feed_url='http://www.djangoproject.com/rss/weblog/',
            limit=5
        ))

        # append another link list module for "support".
        self.children.append(modules.LinkList(
            _('Support'),
            children=[
                {
                    'title': _('Django documentation'),
                    'url': 'http://docs.djangoproject.com/',
                    'external': True,
                },
                {
                    'title': _('Django "django-users" mailing list'),
                    'url': 'http://groups.google.com/group/django-users',
                    'external': True,
                },
                {
                    'title': _('Django irc channel'),
                    'url': 'irc://irc.freenode.net/django',
                    'external': True,
                },
            ]
        ))
Exemplo n.º 3
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(modules.LinkList(
            _('Quick links'),
            layout='inline',
            draggable=False,
            deletable=False,
            collapsible=False,
            children=[
                [_('Return to site'), '/'],
                [_('Change password'),
                 reverse('%s:password_change' % site_name)],
                [_('Log out'), reverse('%s:logout' % site_name)],
            ]
        ))

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            _('Applications'),
            exclude=('django.contrib.*',),
        ))

        # append an app list module for "Administration"
        self.children.append(modules.AppList(
            _('Administration'),
            models=('django.contrib.*',),
        ))

        

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 10))
Exemplo n.º 4
0
    def __init__(self, **kwargs):
        Dashboard.__init__(self, **kwargs)
        self.children.append(
            modules.AppList(
                title=_('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                title=_('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(
            modules.RecentActions(title=_('Recent Actions'), limit=5))
        self.children.append(
            modules.RecentActions(title='Django CMS recent actions',
                                  include_list=(
                                      'cms.page',
                                      'cms.cmsplugin',
                                  )))
        self.children.append(
            modules.Feed(title=_('Latest Django News'),
                         feed_url='http://www.djangoproject.com/rss/weblog/',
                         limit=5))
Exemplo n.º 5
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(_('Quick links'),
                             layout='inline',
                             children=[
                                 {
                                     'title': u'Выгрузить клиентов в excel',
                                     'url': 'customers/customer/xlsx/',
                                 },
                             ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 6
0
    def init_with_context(self, context):
        # append an app list module for "Applications"

        self.children.append(PurloviaSummaryModule())
        self.children.append(
            modules.Group(
                _("Data"),
                display="accordion",
                children=[
                    modules.AppList(
                        _("Celery"),
                        exclude=(
                            "django.contrib.*",
                            "overseer.users.*",
                            "overseer.purlovia.*",
                            "allauth.*",
                        ),
                    ),
                    modules.AppList(
                        _("Administration"),
                        models=(
                            "django.contrib.*",
                            "overseer.users.*",
                            "allauth.*",
                        ),
                    ),
                ],
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_("Recent Actions"), 5))
Exemplo n.º 7
0
    def init_with_context(self, context):
        ## Foo
        #self.children.append(modules.ModelList(_('Foo'),
        #    models = conf.foo_apps,
        #    collapsible = False,
        #    deletable = False
        #))

        # Fobi
        self.children.append(
            modules.Group(title=_('Fobi'),
                          display='stacked',
                          children=[
                              modules.ModelList(_('Plugins'),
                                                models=conf.fobi_plugins,
                                                collapsible=False,
                                                deletable=False),
                              modules.ModelList(_('Forms'),
                                                models=conf.fobi_forms,
                                                collapsible=False,
                                                deletable=False),
                              modules.ModelList(_('Data'),
                                                models=conf.fobi_data,
                                                collapsible=False,
                                                deletable=False),
                          ]))

        if 'feincms' in settings.INSTALLED_APPS:
            # FeinCMS pages
            self.children.append(
                modules.AppList(_('FeinCMS Pages'),
                                models=conf.feincms_pages,
                                collapsible=False,
                                deletable=False))

        if 'cms' in settings.INSTALLED_APPS:
            # DjangoCMS pages
            self.children.append(
                modules.AppList(_('DjangoCMS Pages'),
                                models=conf.djangocms_pages,
                                collapsible=False,
                                deletable=False))

        # Append an app list module for "Administration"
        self.children.append(
            modules.AppList(_('Administration'),
                            models=conf.django_contrib_apps,
                            collapsible=False,
                            deletable=False))

        # Append an app list module for "Administration"
        self.children.append(
            modules.AppList(_('Other apps'),
                            models=conf.other_apps,
                            collapsible=False,
                            deletable=False))

        # Append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 10))
Exemplo n.º 8
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append another link list module for "support".
        self.children.append(
            modules.LinkList(_('Results'),
                             children=[{
                                 'title': _('Results'),
                                 'url': reverse('survey_list'),
                                 'external': False,
                             }]))

        from surveys.utils import get_last_survey
        survey = get_last_survey()
        self.children.append(
            TableDashboard(title='Last Survey Top Questions',
                           children=survey.top_questions,
                           headers=[
                               'Plulication Date', 'Code', 'Question',
                               'Total Count'
                           ],
                           fields=[
                               'pub_date', 'slug', 'question_text',
                               'user_choices_count'
                           ]))
        self.children.append(
            ChartDashboard(title='Survey Chart', chart_id=1, childrens=[]))
Exemplo n.º 9
0
    def __init__(self, **kwargs):

        self.children = self.children or []

        self.children.append(modules.ModelList(
            title=_('Site Content'),
            models=(
                'elephantblog.*',
                'feincms.module.page.*',
                'pathways.*',
            ),
        ))

        self.children.append(modules.ModelList(
            title=_('Lots'),
            models=(
                'lots.*',
            ),
        ))

        self.children.append(modules.ModelList(
            title=_('Organize'),
            models=(
                'phillyorganize.*',
            ),
        ))

        self.children.append(modules.AppList(
            title=_('Applications'),
            exclude=(
                'django.contrib.*',
                'elephantblog.*',
                'feincms.module.page.*',
                'phillydata.*',
                'livinglots_usercontent.*',
                'lots.*',
            ),
        ))

        self.children.append(modules.ModelList(
            title=_('Lot Content'),
            models=('livinglots_usercontent.*',),
        ))

        self.children.append(modules.AppList(
            title=_('Data'),
            models=('phillydata.*',),
        ))

        self.children.append(modules.AppList(
            title=_('Administration'),
            models=('django.contrib.*',),
        ))

        self.children.append(modules.RecentActions(
            title=_('Recent Actions'),
            limit=5
        ))
Exemplo n.º 10
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick Links'),
                layout='inline',
                # draggable=False,
                deletable=False,
                # collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Content"
        self.children.append(
            modules.AppList(
                _('Content'),
                models=itemlist_content,
            ))

        # append an app list module for "Miscellaneous"
        self.children.append(
            modules.AppList(
                _('Miscellaneous'),
                exclude=itemlist_misc_exclude,
            ))

        # append an app list module for "Structure"
        self.children.append(
            modules.AppList(
                _('Site Structure'),
                models=itemlist_structure,
            ))

        # append an app list module for "SL"
        self.children.append(
            modules.AppList(
                _('Second Life Systems'),
                models=itemlist_sl,
            ))

        # append an app list module for "System Management"
        self.children.append(
            modules.AppList(
                _('System Management'),
                models=itemlist_system,
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 10))
Exemplo n.º 11
0
    def init_with_context(self, context):
        self.title = '1997 站点管理'
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('快速链接'),
                layout='inline',
                draggable=True,
                deletable=False,
                collapsible=False,
                children=[
                    [_('返回站点首页'), '/'],
                    [_('修改密码'),
                     reverse('%s:password_change' % site_name)],
                    [_('注销'), reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('应用'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('管理员设置'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('近期操作'), 5))

        # append a feed module
        # self.children.append(modules.Feed(
        #     _('Latest Django News'),
        #     feed_url='http://www.djangoproject.com/rss/weblog/',
        #     limit=5
        # ))

        # append another link list module for "support".
        self.children.append(
            modules.LinkList(_('其他管理页面'),
                             children=[
                                 {
                                     'title': _('预约管理'),
                                     'url': '/admin/r',
                                     'external': True,
                                 },
                                 {
                                     'title': _('教师时段管理'),
                                     'url': '/admin/t',
                                     'external': True,
                                 },
                             ]))
Exemplo n.º 12
0
    def __init__(self, **kwargs):
        Dashboard.__init__(self, **kwargs)

        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(title=_('Quick links'),
                             layout='inline',
                             draggable=False,
                             deletable=False,
                             collapsible=False,
                             children=[
                                 {
                                     'title': _('Return to site'),
                                     'url': '/',
                                 },
                                 {
                                     'title': _('Change password'),
                                     'url': reverse('admin:password_change'),
                                 },
                                 {
                                     'title': _('Log out'),
                                     'url': reverse('admin:logout')
                                 },
                             ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                title=_('Applications'),
                exclude_list=('django.contrib', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                title=_('Administration'),
                include_list=('django.contrib', ),
            ))

        # # append a recent actions module
        # self.children.append(RecentActionsDashboardModule(
        #     title=_('Recent Actions'),
        #     limit=5
        # ))
        #
        # # append a feed module
        # self.children.append(FeedDashboardModule(
        #     title=_('Latest Web Development Activities'),
        #     feed_url='http://www.pivotaltracker.com/user_activities/de98454d195bc113ba489ff01ae2673a',
        #     limit=5
        # ))

        self.children.extend(get_memcache_dash_modules())
        self.children.extend(get_varnish_dash_modules())
        self.children.extend(get_rss_dash_modules())
Exemplo n.º 13
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))

        # append a feed module
        self.children.append(
            modules.Feed(_('Latest Django News'),
                         feed_url='http://www.djangoproject.com/rss/weblog/',
                         limit=5))

        # append another link list module for "support".
        self.children.append(
            modules.LinkList(_('SivaMS Links'),
                             children=[
                                 {
                                     'title': _('Client Credit Card Charge'),
                                     'url': '/admin/client/charge',
                                     'external': True,
                                 },
                             ]))
Exemplo n.º 14
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)

        self.children += [
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ),
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            )
        ]
    def __init__(self, **kwargs):
        Dashboard.__init__(self, **kwargs)

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                title='Applications',
                exclude_list=('django.contrib', ),
                css_classes=['column_1', 'collapse', 'open'],
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                title='Administration',
                include_list=('django.contrib', ),
                css_classes=['column_1', 'collapse', 'closed'],
            ))

        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(title='Quick links',
                             css_classes=['column_2', 'collapse', 'open'],
                             layout='inline',
                             draggable=False,
                             deletable=False,
                             collapsible=True,
                             children=[
                                 {
                                     'title': 'Return to site',
                                     'url': '/',
                                 },
                                 {
                                     'title': 'Change password',
                                     'url': reverse('admin:password_change'),
                                 },
                                 {
                                     'title': 'Log out',
                                     'url': reverse('admin:logout')
                                 },
                             ]))

        # append a recent actions module
        self.children.append(
            modules.RecentActions(
                title='Recent Actions',
                css_classes=['column_2', 'collapse', 'open'],
                limit=5,
            ))
Exemplo n.º 16
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)

        if context['request'].user.is_superuser:
            self.children.append(ConfigModule())

        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append a link list module for "filebrowser"
        self.children.append(
            modules.LinkList(
                _('FileBrowser'),
                children=[
                    [_('FileBrowser'), '/admin/filebrowser/browse/'],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 17
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))
Exemplo n.º 18
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _("Quick links"),
                layout="inline",
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [
                        _("Change password"),
                        reverse("%s:password_change" % site_name)
                    ],
                    [_("Log out"),
                     reverse("%s:logout" % site_name)],
                ],
            ))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(_("Applications"), exclude=("django.contrib.*", )))
        # append a recent actions module
        self.children.append(modules.RecentActions(_("Recent Actions"), 5))
Exemplo n.º 19
0
    def __init__(self, **kwargs):
        Dashboard.__init__(self, **kwargs)

        # append an app list module for "Administration"
        self.children.append(modules.ModelList(
            title=_('Administration'),
            include_list=('django.contrib.auth.models.User',
                          'django.contrib.flatpages.models.FlatPage'),
        ))

        self.children.append(modules.ModelList(
            title=_('Bidding'),
            models=[
                'bidding.models.Auction',
                'bidding.models.Item',
                'bidding.models.BidPackage',
                'bidding.models.ConvertHistory',
                'bidding.models.FBOrderInfo',
                'bidding.models.ConfigKey',
            ]
        ))

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            title=_('Applications'),
            exclude_list=('django.contrib',
                          'bidding',
                          'django_facebook',
                          'registration',
                          'chat.models.ChatUser'),
        ))
Exemplo n.º 20
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('List of patiens'), '/cards/card/usercard/'],
                    [_('Add patient'), '/cards/card/usercard/add/'],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # Birthday module
        self.children.append(BirthdayModule(title=_("Birday"), message=u' '))

        # Search patients module
        self.children.append(
            SearchPatientModule(title=_("Find patient"), message=u' '))
        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 21
0
 def init_with_context(self, context):
     site_name = get_admin_site_name(context)
     # append a link list module for "quick links"
     # self.children.append(modules.LinkList(
     #     _('Quick links'),
     #     layout='inline',
     #     draggable=False,
     #     deletable=False,
     #     collapsible=False,
     #     children=[
     #         [_('Return to site'), '/'],
     #         [_('Change password'),
     #          reverse('%s:password_change' % site_name)],
     #         [_('Log out'), reverse('%s:logout' % site_name)],
     #     ]
     # ))
     # append an app list module for "Applications"
     self.children.append(
         modules.AppList(
             title='Applicationerres',
             # models=('Work', 'ContactInformation'),
             models=[
                 'works.models.Work',
                 'contact_information.models.ContactInformation'
             ],
         ))
Exemplo n.º 22
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Add a blog post'), 'zinnia/entry/add/'],
                    [_('Add a lunch menu'), 'lunches/lunchmenu/add/'],
                    [_('Add a newsletter section'), 'newsletter/section/add/'],
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', 'tagging.*', 'robots.*',
                         'snippet.*', 'mailchimp.*', 'cms_filer_image.*'),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=(
                    'django.contrib.*',
                    'tagging.*',
                    'robots.*',
                    'snippet.*',
                    'mailchimp.*',
                    'cms_filer_image.*',
                ),
            ))
Exemplo n.º 23
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList("Quick links",
                             layout="inline",
                             draggable=False,
                             deletable=False,
                             collapsible=False,
                             children=[
                                 ["Return to site", "/"],
                                 [
                                     "Change password",
                                     reverse("%s:password_change" % site_name)
                                 ],
                                 ["Log out",
                                  reverse("%s:logout" % site_name)],
                             ]))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                "Administration",
                models=('django.contrib.*', ),
            ))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                "Applications",
                exclude=[
                    "django.contrib.*",
                    "pinax.apps.*",
                    "djcelery.*",
                    "emailconfirmation.*",
                    "profiles.*",
                ],
            ))

        self.children.append(StatusModule("Status"))

        self.children.append(RedisStatusModule("Redis Status", ))

        # append a recent actions module
        self.children.append(modules.RecentActions("Recent Actions", 5))
Exemplo n.º 24
0
    def init_with_context(self, context):

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 25
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [
                        _('See non-approved BikeAnjos'),
                        '/admin/bikeanjo/profile/?approved__exact=0&is_bikeanjo__exact=1'
                    ],
                    [
                        _('Matching pendente'),
                        '/admin/bikeanjo/request/?has_bikeanjo=False&status__exact=ONGOING'
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 26
0
    def init_with_context(self, context):
        #site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=True,
                deletable=True,
                collapsible=True,
                children=[
                    [_('Return to site'), '/'],
                    #[_('Change password'),
                    # reverse('%s:password_change' % site_name)],
                    #[_('Log out'), reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        # append an app list module for "Administration"
        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))

        # append another link list module for "support".
        self.children.append(
            modules.LinkList(_('Support'),
                             children=[
                                 {
                                     'title': _('Helpline documentation'),
                                     'url': 'http://docs.helpline.co.ke/',
                                     'external': True,
                                 },
                             ]))
Exemplo n.º 27
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)

        self.children.append(CommonTasksDashboardModule())
        self.children.append(RecentlyAddedDashboardModule())

        # append an app list module for "Applications"
        self.children.append(modules.AppList(
            _('Applications'),
            exclude=('django.contrib.*',),
        ))

        # append an app list module for "Administration"
        self.children.append(modules.AppList(
            _('Administration'),
            models=('django.contrib.*',),
        ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 28
0
    def init_with_context(self, context):
        self.children.append(
            modules.AppList(
                _('Applications'),
                exclude=('django.contrib.*', ),
            ))

        self.children.append(
            modules.AppList(
                _('Administration'),
                models=('django.contrib.*', ),
            ))

        self.children.append(ActionsModule())

        self.children.append(ActionsSummaryModule())

        self.children.append(ActionsMapModule())

        self.children.append(modules.RecentActions(_('Recent Actions'), 5))
Exemplo n.º 29
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)
        # append a link list module for "quick links"
        self.children.append(
            modules.LinkList(
                _('Quick links'),
                layout='inline',
                draggable=False,
                deletable=False,
                collapsible=False,
                children=[
                    [_('Return to site'), '/'],
                    [
                        _('Change password'),
                        reverse('%s:password_change' % site_name)
                    ],
                    [_('Log out'),
                     reverse('%s:logout' % site_name)],
                ]))

        # append an app list module for "Applications"
        self.children.append(
            modules.AppList(
                _('Приложения'),
                exclude=('django.contrib.*', ),
            ))

        self.children.append(
            MyModule(title=u"Приветствие", message=u' Добро пожаловать!'))

        # append another link list module for "support".
        self.children.append(
            modules.LinkList(
                _('Support'),
                children=[
                    {
                        'title': _('Django documentation'),
                        'url': 'http://docs.djangoproject.com/',
                        'external': True,
                    },
                    {
                        'title': _('Django "django-users" mailing list'),
                        'url': 'http://groups.google.com/group/django-users',
                        'external': True,
                    },
                    {
                        'title': _('Django irc channel'),
                        'url': 'irc://irc.freenode.net/django',
                        'external': True,
                    },
                ]))
Exemplo n.º 30
0
    def init_with_context(self, context):
        site_name = get_admin_site_name(context)

        self.children.append(
            modules.Group(
                deletable=False,
                draggable=False,
                title=_(u"Painel de Controle"),
                display="tabs",
                children=[
                    # append an app list module for "Applications"
                    modules.AppList(_('Applications'),
                                    exclude=(
                                        'django.contrib.*',
                                        'report.models.*',
                                        'account.models.*',
                                        'emailconfirmation.models.*',
                                        'profiles.models.*',
                                        'posts.models.*',
                                        'elos.models.*',
                                        'tagging.models.*',
                                    )),
                    modules.AppList(_('Administration'),
                                    models=(
                                        'django.contrib.*',
                                        'report.models.*',
                                        'account.models.*',
                                        'emailconfirmation.models.*',
                                        'profiles.models.*',
                                        'posts.models.*',
                                        'elos.models.*',
                                        'tagging.models.*',
                                    )),
                ],
            ))

        # append a recent actions module
        self.children.append(modules.RecentActions(_('Recent Actions'), 10))