Beispiel #1
0
class SuitConfig(DjangoSuitConfig):
    name = 'suit'
    verbose_name = 'Django Suit'
    # Menu and header layout - horizontal or vertical
    layout = 'vertical'

    menu_show_home = False

    # Set default list per page
    list_per_page = 20

    # Show changelist top actions only if any row is selected
    toggle_changelist_top_actions = True

    # Define menu
    #: :type: list of suit.menu.ParentItem
    menu = (
        ParentItem('Sales',
                   children=[
                       ChildItem('Dashboard', url='/admin/dash/'),
                       ChildItem(model='core.order'),
                       ChildItem(model='core.client'),
                   ],
                   icon='fa fa-line-chart'),
        ParentItem('Admin',
                   children=[
                       ChildItem(model='core.template'),
                       ChildItem(model='core.package'),
                   ],
                   icon='fa fa-cog'),
    )
Beispiel #2
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem(
            'Usuarios',
            children=[
                #ChildItem('Usuarios del sistema', 'users.user'),
                ChildItem('Perfiles de usuarios', 'users.profile'),
                #ChildItem('Grupo de usuarios', 'auth.group'),
            ],
            icon='fa fa-users'),
        ParentItem('Ingreso',
                   children=[
                       ChildItem('Aperturas de la puerta', 'locks.dooropening')
                   ],
                   icon='fa fa-unlock'),
        ParentItem('Configuraciones',
                   children=[
                       ChildItem('Configuración general',
                                 'configurations.general'),
                       ChildItem('Empresas', 'configurations.entity'),
                   ],
                   icon='fa fa-cog fa-spin'),
        ParentItem('Créditos',
                   children=[
                       ChildItem('Sitio web',
                                 url='http://diegoasencio.co',
                                 target_blank=True),
                   ],
                   icon='fa fa-connectdevelop fa-spin'),
    )
Beispiel #3
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = [
        ParentItem(_('accounts'), children=[
            ChildItem(model='accounts.user'),
            ChildItem(model='auth.group'),
            ChildItem(model='accounts.WBUid'),
        ], icon='fa fa-user'),
#         ParentItem(_('organizations'), app='organizations', icon='fa fa-signal'),
#         ParentItem(_('流程'), app='vetting', icon='fa fa-signal'),
#         ParentItem(_('附件'), app='annex', icon='fa fa-signal'),
#         ParentItem(_('票据'), app='bills', icon='fa fa-signal'),
#         ParentItem(_('files'), app='files', icon='fa fa-file'),
#         ParentItem(_('客户信息'), app='customers', icon='fa fa-file'),
#         ParentItem(_('联系人'), app='contacts', icon='fa fa-file'),
#         ParentItem(_('合同'), app='contracts', icon='fa fa-file'),
#         ParentItem(_('申请单'), app='orders', icon='fa fa-file'),
#         ParentItem(_('账户'), app='payment_accounts', icon='fa fa-file'),
        ParentItem(_('Documentation'), url='/developer/', icon='fa fa-book', target_blank=True),
        ParentItem(_('API'), url='/api/v1/', icon='fa fa-wrench', target_blank=True),
    ]
    menu += get_parent_items()

    def ready(self):
        super(DjangoSuitConfig, self).ready()
Beispiel #4
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem('Contents',
                   children=[ChildItem('Urls', model='app.url')],
                   icon='fa fa-link'),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User Groups', model='auth.group')
                   ],
                   icon='fa fa-users'),
        ParentItem('Settings',
                   children=[
                       ChildItem('Password change',
                                 url='admin:password_change'),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #5
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'  # 为‘horizontal’水平  或‘vertical’ 垂直
    menu = (
        ParentItem('Users', children=[
            ChildItem(u'用户',model='user.userprofile'),
            ChildItem(model='auth.user'),
            ChildItem('User groups', 'auth.group'),
        ], icon='fa fa-users'),
        ParentItem('Right Side Menu', children=[
            ChildItem('Password change', url='admin:password_change'),
            ChildItem('Open Google', url='http://google.com', target_blank=True),

        ], align_right=True, icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #6
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'
    menu = (
        ParentItem('Auction', children=[
            ChildItem(model='auction.donation'),
            ChildItem(model='auction.lot'),
        ]),
    )
Beispiel #7
0
class SunlessConfig(DjangoSuitConfig):
    menu = (
        ParentItem('명사 사전',
                   children=[
                       ChildItem(model='sunless_web.nouncate'),
                       ChildItem(model='sunless_web.noun'),
                       ChildItem(model='sunless_web.entitycate'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('번역 작업 V2',
                   children=[
                       ChildItem(model='sunless_web.entrypath'),
                       ChildItem(model='sunless_web.entry'),
                   ],
                   icon='fa fa-telegram'),
        ParentItem('사용자 관리',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('씨봇이 관리',
                   children=[
                       ChildItem(model='sunless_web.conversation'),
                       ChildItem(model='sunless_web.patch'),
                   ],
                   icon='fa fa-telegram'),
    )

    verbose_name = '라라라'
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem(_('Usuarios del sistema'),
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem(_('Tienda'),
                   children=[
                       ChildItem(model='store.productcategory'),
                       ChildItem(model='store.productstore'),
                   ],
                   icon='fa fa-shopping-cart'),
        ParentItem(_('Inventario'),
                   children=[
                       ChildItem(model='inventory.ingredientproductprovider'),
                       ChildItem(model='inventory.ingredientproductcategory'),
                       ChildItem(model='inventory.ingredientproduct'),
                   ],
                   icon='fa fa-book'),
        ParentItem(_('Punto de Venta'),
                   children=[
                       ChildItem(model='pdv.invoice'),
                       ChildItem(model='pdv.newinvoice'),
                   ],
                   icon='fa fa-credit-card'),
    )
Beispiel #9
0
class PosterConfig(AppConfig):
    name = 'poster'
    verbose_name = _('poster')
    menu = [
        ParentItem(verbose_name,
                   children=[
                       ChildItem(model='poster.style'),
                       ChildItem(model='poster.poster'),
                   ],
                   icon='fa fa-leaf'),
    ]
Beispiel #10
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = [
        ParentItem(AuthConfig.verbose_name,
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group'),
                   ],
                   icon='fa fa-users'),
    ]
    menu = PosterConfig.menu + GameConfig.menu + menu
Beispiel #11
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'
    menu = (
        ParentItem('Controle de Acesso', children=[
            ChildItem('Usuários', model='account.user'),
            ChildItem('Grupos', model='auth.group'),
        ]),
        # ParentItem('Funcionario', children=[
        #     ChildItem(model='funcionario.funcionario'),
        #     ChildItem(model='funcionario.funcao'),
        # ]),
    )
Beispiel #12
0
class WebConfig(DjangoSuitConfig):
    menu = (
        ParentItem('Users and Groups',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group')
                   ]),
        ParentItem('Scrapy',
                   children=[
                       ChildItem(model='web.lawnature'),
                       ChildItem(model='web.settingitem')
                   ]),
    )
Beispiel #13
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (ParentItem('Users',
                       children=[
                           ChildItem(model='auth.user'),
                           ChildItem(model='main.invite'),
                           ChildItem(model='main.userprofile'),
                           ChildItem(model='main.waitlist'),
                       ],
                       icon='fa fa-users'), )

    def ready(self):
        super(SuitConfig, self).ready()
Beispiel #14
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem('Elementos',
                   children=[
                       ChildItem('Luminarias', 'street_lighting.luminaria'),
                       ChildItem('Postes', 'street_lighting.poste'),
                       ChildItem('Redes', 'street_lighting.red'),
                       ChildItem('Camaras y canalizaciones',
                                 'street_lighting.camara'),
                       ChildItem('Transformadores',
                                 'street_lighting.transformador'),
                   ],
                   icon='fa fa-slideshare'),
        ParentItem('Hojas de vida',
                   children=[
                       ChildItem('Usuarios', 'cv.workstate'),
                   ],
                   icon='fa fa-slideshare'),
        ParentItem('Usuarios',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('Grupos de Usuarios', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('Otras opciones',
                   children=[
                       ChildItem('Cambiar contraseña',
                                 url='admin:password_change'),
                       ChildItem('Abrir Google',
                                 url='https://google.com',
                                 target_blank=True),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #15
0
class SuitConfig(DjangoSuitConfig):
    ADMIN_NAME = "VirusTotal"
    layout = 'horizontal'
    menu = (
        ParentItem('Files',
                   children=[
                       ChildItem(model='virustotal.IpDomain'),
                       ChildItem(model='virustotal.files'),
                       ChildItem(model='virustotal.exeparents'),
                   ]),
        ParentItem('Ipdomain',
                   children=[
                       ChildItem(model='virustotal.ipdomain'),
                       ChildItem(model='virustotal.commfiles'),
                       ChildItem(model='virustotal.reffiles'),
                   ]),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User groups', 'auth.group'),
                   ],
                   icon='fa fa-users'),

        # ParentItem('View Site', url="/", align_right=True, icon='fa fa-cog'),
    )
Beispiel #16
0
class SuitConfig(DjangoSuitConfig):
    #layout = 'horizontal'
    name = 'suit'
    verbose_name = 'Django Suit'
    # Menu and header layout - horizontal or vertical
    layout = 'horizontal'

    # Set default list per page
    list_per_page = 20

    # Show changelist top actions only if any row is selected
    toggle_changelist_top_actions = True

    # Define menu
    #: :type: list of suit.menu.ParentItem
    menu = (
        # ParentItem('Prestamos', children=[
        #     ChildItem(model='prestamos.prestamo'),
        #     ChildItem('Prestar ', url='/admin/Prestamo/Prestar/'),
        #     #ChildItem(model='prestamos.detalleprestamo'),
        # ]),
        # ParentItem('Personas', children=[
        #     ChildItem(model='personas.personas'),
        # ]),
        # ParentItem('Recursos', children=[
        #     ChildItem(model='recursos.recurso'),
        #     ChildItem(model='recursos.marca'),
        #     ChildItem(model='recursos.tiporecurso'),

        # ]),
        # ParentItem('Incidentes', children=[
        #     ChildItem(model='prestamos.incidente'),
        #     # ChildItem(model='prestamos.detalleincidente'),
        # ]),
        # ParentItem('Reportes', children=[
        #     ChildItem('Reporte ', url='/admin/Reporte/'),
        # ]),
        # ParentItem('Configuracion', children=[
        #     ChildItem(model='configuracion.programa'),
        #     ChildItem(model='personas.codigoacceso'),
        #     ChildItem(model='personas.tipopersona'),
        # ]),
        ParentItem('Gestion de usuarios',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group')
                   ]), )
Beispiel #17
0
class SuitConfig(DjangoSuitConfig):
    ##layout这个参数决定你的网页是初始样式是垂直样式还是水平样式,可选参数为‘horizontal’或‘vertical’
    layout = 'vertical'

    #
    menu = (
        ParentItem(
            '自动化管理',
            children=[
                ChildItem(model='TestModel.Column'),
                ChildItem(model='TestModel.Article'),
                ChildItem(model='TestModel.Testpage'),
                ChildItem(model='TestModel.Testcase'),
                ChildItem('自动化项目管理', url='/admin/Auto_test/column/'),
                ChildItem('Jenkins集成平台',
                          url='http://192.168.86.128:8001/',
                          target_blank=True),
                #ChildItem('页面管理', url='/admin/TestModel/testpage/'),
                #ChildItem('用例管理', url='/admin/TestModel/testcase/'),
            ],
            icon='fa fa-leaf'),

        #ParentItem('Jenkins集成平台', children=[
        #   ChildItem('Jenkins集成平台', url='http://192.168.20.62:8080/',target_blank=True),
        #], icon='fa fa-leaf'),
        ParentItem('用户管理',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('组别', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem(
            '个人中心',
            children=[
                ChildItem('修改密码', url='admin:password_change'),
                #ChildItem('测试打开google', url='http://google.com', target_blank=True),
            ],
            align_right=True,
            icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #18
0
class SuitConfig(DjangoSuitConfig):
    menu = (
        ParentItem('Site Content',
                   children=[
                       ChildItem(model='site_content.logo'),
                       ChildItem(model='site_content.sociallink'),
                       ChildItem(model='site_content.instagram'),
                   ]),
        ParentItem('Site Media',
                   children=[
                       ChildItem('Files', url='fb_browse'),
                   ]),
        ParentItem('Account', app='account'),
        ParentItem('Plants', app='plants'),
        ParentItem('Calendar', app='calendar'),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User groups', 'auth.group'),
                   ]),
        ParentItem('Your Account',
                   children=[
                       ChildItem('Password change',
                                 url='admin:password_change'),
                   ],
                   align_right=True),
    )

    def ready(self):
        super(SuitConfig, self).ready()
Beispiel #19
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'
    menu = (
        ParentItem('Students',
                   children=[
                       ChildItem('Students',
                                 url='/admin/sapp/studentinformation/'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User groups', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('Answers',
                   children=[
                       ChildItem(model='sapp.Answers'),
                       ChildItem('Answers', url='/admin/sapp/answers/'),
                   ],
                   icon='fa fa-users'),
        ParentItem('Make Questions',
                   children=[
                       ChildItem(model='sapp.Makequestion'),
                       ChildItem('Make Questions',
                                 url='/admin/sapp/makequestion/'),
                   ],
                   icon='fa fa-users'),
        ParentItem(
            'Change Password',
            children=[
                ChildItem('Password change', url='admin:password_change'),
                # ChildItem('Open Google', url='http://google.com', target_blank=True),
            ],
            align_right=True,
            icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #20
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'
    #layout = 'vertical'
    menu = (
        ParentItem('관리', children=[
            ChildItem(model='dtm.syscmmncdm'),
            ChildItem(model='dtm.usrcmpny'),
            ChildItem(model='dtm.usruser'),
        ], icon='fa fa-leaf'),
        ParentItem('인증 및 권한', children=[
            ChildItem('사용자', 'auth.user'),
            ChildItem('사용자 그룹', 'auth.group'),
        ], icon='fa fa-users'),
        ParentItem('관리자', children=[
            ChildItem('비밀번호 변경', url='admin:password_change'),

        ], icon='fa fa-cog'),

    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #21
0
class SuitConfig(DjangoSuitConfig):
    menu = (
        ParentItem('Content',
                   children=[
                       ChildItem(model='demo.country'),
                       ChildItem(model='demo.continent'),
                       ChildItem(model='demo.showcase'),
                       ChildItem('Custom view', url='/admin/custom/'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('Integrations', children=[
            ChildItem(model='demo.city'),
        ]),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User groups', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('Right Side Menu',
                   children=[
                       ChildItem('Password change',
                                 url='admin:password_change'),
                       ChildItem('Open Google',
                                 url='http://google.com',
                                 target_blank=True),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #22
0
class SuitConfig(DjangoSuitConfig):
    layout = 'vertical'

    menu = (
        ParentItem('第三方登录',
                   children=[
                       ChildItem('association',
                                 url='/admin/social_django/association/'),
                       ChildItem('nonce', url='/admin/social_django/nonce/'),
                       ChildItem('user social auth',
                                 url='/admin/social_django/usersocialauth/'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('订单管理',
                   children=[
                       ChildItem('订单', model='demo.order'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('用户管理',
                   children=[
                       ChildItem(label='用户', model='auth.user'),
                       ChildItem('用户组', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('设置',
                   children=[
                       ChildItem('修改密码', url='admin:password_change'),
                       ChildItem('百度一下',
                                 url='https://www.baidu.com',
                                 target_blank=True),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )

    def ready(self):
        super(SuitConfig, self).ready()

        # DO NOT COPY FOLLOWING LINE
        # It is only to prevent updating last_login in DB for demo app
        self.prevent_user_last_login()

    def prevent_user_last_login(self):
        """
        Disconnect last login signal
        """
        from django.contrib.auth import user_logged_in
        from django.contrib.auth.models import update_last_login
        user_logged_in.disconnect(update_last_login)
Beispiel #23
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'

    menu = (
        ParentItem('应用',
                   children=[
                       ChildItem('恐怖袭击数据', url='rear_end_services'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('用户组',
                   children=[
                       ChildItem('用户', model='auth.user'),
                       ChildItem('组群', model='auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('账号操作',
                   children=[
                       ChildItem('Password change',
                                 url='admin:password_change'),
                       ChildItem('Log Out', url='admin:logout'),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )
Beispiel #24
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'
    menu_show_home = False

    menu = (
        ParentItem('User Administration',
                   children=[
                       ChildItem('Users', model='auth.user'),
                       ChildItem('Groups', model='auth.group')
                   ],
                   icon='fa fa-leaf'),
        ParentItem('Agents',
                   children=[ChildItem(model='bpos_agents.agent')],
                   icon='fa fa-leaf'),
        ParentItem('Airports',
                   children=[ChildItem(model='bpos_airports.airport')],
                   icon='fa fa-leaf'),
        ParentItem('Guides',
                   children=[ChildItem(model='bpos_guides.guide')],
                   icon='fa fa-leaf'),
        ParentItem('Towns',
                   children=[ChildItem(model='bpos_towns.town')],
                   icon='fa fa-leaf'),
        ParentItem('Hotels',
                   children=[ChildItem(model='bpos_hotels.hotel')],
                   icon='fa fa-leaf'),
        ParentItem('Payment Items',
                   children=[
                       ChildItem(
                           'Payment Out Items',
                           model='bpos_payment_out_items.paymentextraitems'),
                       ChildItem('Extra Chargable Items',
                                 model='bpos_extra_items.extraitems')
                   ],
                   icon='fa fa-leaf'),
        ParentItem('Back To Site', url="/", icon='fa fa-leaf'),
    )

    def ready(self):
        super(SuitConfig, self).ready()
Beispiel #25
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'
    menu = (
        ParentItem('Content', children=[
            ChildItem(model='demo.country'),
            ChildItem(model='demo.continent'),
            ChildItem(model='demo.showcase'),
            ChildItem('Custom view', url='/admin/custom/'),
        ], icon='fa fa-leaf'),
        ParentItem('Integrations', children=[
            ChildItem(model='demo.city'),
        ]),
        ParentItem('Users', children=[
            ChildItem(model='auth.user'),
            ChildItem('User groups', 'auth.group'),
        ], icon='fa fa-users'),
        ParentItem('Right Side Menu', children=[
            ChildItem('Password change', url='admin:password_change'),
            ChildItem('Open Google', url='http://google.com', target_blank=True),

        ], align_right=True, icon='fa fa-cog'),
    )
Beispiel #26
0
class GameConfig(AppConfig):
    name = 'game'
    verbose_name = _('game')

    menu = [
        ParentItem(verbose_name,
                   children=[
                       ChildItem(model='game.nogameactivity'),
                       ChildItem(model='game.normalactivity'),
                       ChildItem(model='game.thesisactivity'),
                       ChildItem(model='game.nationalreadactivity'),
                       ChildItem(model='game.readactivity'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem(_('parameter setting'),
                   children=[
                       ChildItem(model='game.subject'),
                       ChildItem(model='game.award'),
                       ChildItem(model='game.group'),
                       ChildItem(model='game.membertype'),
                   ],
                   icon='fa fa-leaf'),
    ]
Beispiel #27
0
class SuitConfig(DjangoSuitConfig):
    # layout = 'vertical'
    form_inlines_hide_original = True
    menu = (
        ParentItem('Catalog',
                   children=[
                       ChildItem(model='catalog.product'),
                   ],
                   icon='fa fa-leaf'),
        ParentItem('Language',
                   children=[
                       ChildItem(model='lang.language'),
                       ChildItem(model='lang.keyword'),
                       ChildItem(model='lang.translation'),
                   ]),
        ParentItem('Users',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem('User groups', 'auth.group'),
                   ],
                   icon='fa fa-users'),
    )
class SuitConfig(DjangoSuitConfig):
    menu = (
        ParentItem('Dashboard', url='/', icon='fa fa-list'),
        ParentItem('Research & Maps',
                   children=[
                       ChildItem('LASER', model='survey.laser'),
                       ChildItem('Maps', model='survey.map'),
                       ChildItem('Research Tracker', model='survey.research'),
                   ],
                   icon='fa fa-list'),
        ParentItem('Users',
                   children=[
                       ChildItem('Users', model='users.user'),
                       ChildItem('Groups', 'auth.group'),
                   ],
                   icon='fa fa-users'),
        ParentItem('Right Side Menu',
                   children=[
                       ChildItem('Password change',
                                 url='admin:password_change'),
                   ],
                   align_right=True,
                   icon='fa fa-cog'),
    )
Beispiel #29
0
class SuitConfig(DjangoSuitConfig):
    layout = 'horizontal'  # vertical / horizontal
    menu = (ParentItem('Authorization',
                       children=[
                           ChildItem(model='auth.user'),
                           ChildItem('User groups', 'auth.group')
                       ],
                       icon='fa fa-users'),
            ParentItem('Map Viewer',
                       children=[
                           ChildItem('Map Viewer', model='mapviewer.mapviewer')
                       ]),
            ParentItem('Search',
                       children=[ChildItem('Search', model='csw.csw')]),
            ParentItem(
                'Contact',
                children=[ChildItem('Contacts', model='layers.contact')]),
            ParentItem('Lists',
                       children=[
                           ChildItem('Countries', model='swos.country'),
                           ChildItem('ISO Code lists',
                                     model='layers.isocodelist'),
                       ]),
            ParentItem('Layer',
                       children=[
                           ChildItem('Layer', model='layers.layer'),
                           ChildItem('Layer Groups', model='layers.layergroup')
                       ]),
            ParentItem('Geospatial',
                       children=[
                           ChildItem('Region', model='geospatial.region'),
                       ]),
            ParentItem('Content',
                       children=[
                           ChildItem('Images', model='content.image'),
                           ChildItem('Videos', model='content.video'),
                           ChildItem('External Layers',
                                     model='content.externallayer'),
                           ChildItem('External Databases',
                                     model='content.externaldatabase'),
                           ChildItem('Story Lines', model='content.storyline'),
                           ChildItem('Story Line Parts',
                                     model='content.storylinepart'),
                           ChildItem('Story Line Features',
                                     model='content.storylinefeature'),
                           ChildItem('Satdata Layers',
                                     model='content.satdatalayer'),
                       ]),
            ParentItem('SWOS',
                       children=[
                           ChildItem('Wetlands', model='swos.wetland'),
                           ChildItem('Wetland Layers',
                                     model='swos.wetlandlayer'),
                           ChildItem('Wetland Products', model='swos.product'),
                           ChildItem('Wetland Indicator',
                                     model='swos.indicator'),
                       ]),
            ParentItem('PhaenOPT',
                       children=[
                           ChildItem('Layers', model='phaenopt.phenolayer'),
                           ChildItem('Products', model='phaenopt.product'),
                           ChildItem('Phenophases', model='phaenopt.pheno'),
                           ChildItem('Citizen Science',
                                     model='phaenopt.citizenscienceproject'),
                       ]))
    if "validation" in settings.INSTALLED_APPS:
        menu = menu + (
            (ParentItem('Validation',
                        children=[
                            ChildItem('Validation Layers',
                                      model='validation.validationlayer')
                        ])), )
Beispiel #30
0
class SuitConfig(DjangoSuitConfig):
    verbose_name = "WEIPDCRM"
    menu = (
        ParentItem('Sites',
                   children=[
                       ChildItem(model='sites.site'),
                       ChildItem(_('Django RQ'),
                                 url='/admin/sites/django-rq/'),
                   ]),
        ParentItem('Authentication and Authorization',
                   children=[
                       ChildItem(model='auth.user'),
                       ChildItem(model='auth.group'),
                   ]),
        ParentItem('WEIPDCRM',
                   children=[
                       ChildItem(model='WEIPDCRM.release'),
                       ChildItem(model='WEIPDCRM.build'),
                       ChildItem(model='WEIPDCRM.package'),
                       ChildItem(model='WEIPDCRM.version'),
                       ChildItem(model='WEIPDCRM.section'),
                       ChildItem(model='WEIPDCRM.osversion'),
                       ChildItem(model='WEIPDCRM.devicetype'),
                       ChildItem(model='WEIPDCRM.setting'),
                   ]),
        ParentItem('Comments',
                   children=[
                       ChildItem(model='threadedcomments.threadedcomment'),
                   ]),
        ParentItem('Photologue',
                   children=[
                       ChildItem(model='photologue.gallery'),
                       ChildItem(model='photologue.photo'),
                       ChildItem(model='photologue.photoeffect'),
                       ChildItem(model='photologue.photosize'),
                       ChildItem(model='photologue.watermark'),
                   ]),
        ParentItem('Upload',
                   children=[
                       ChildItem(_('New Package'), url='/admin/upload/'),
                   ],
                   align_right=True),
        ParentItem('Help',
                   children=[
                       ChildItem(_('Statistics'),
                                 url='/admin/help/statistics/'),
                       ChildItem(_('About...'), url='/admin/help/about/'),
                   ],
                   align_right=True),
    )