Beispiel #1
0
    USER_TRAINER_EDIT_URL, USER_TRAINER_FILE_URL, USER_TRAINER_ADD_URL)

logger = logging.getLogger(__name__)

TRAINER_MENU = AttrMenuDropdown(
    name='trainerdatas',
    label=u"Formation",
    default_route=USER_TRAINER_URL,
    icon=u"fa fa-graduation-cap",
    hidden_attribute="trainerdatas",
    perm="view.trainerdatas",
)
TRAINER_MENU.add_item(
    name="trainerdatas_view",
    label=u"Fiche formateur",
    route_name=USER_TRAINER_EDIT_URL,
    icon=u'fa fa-user-circle-o',
    perm="edit.trainerdatas",
)
TRAINER_MENU.add_item(
    name="trainerdatas_filelist",
    label=u"Fichiers liés au formateur",
    route_name=USER_TRAINER_FILE_URL,
    icon=u'fa fa-briefcase',
    perm="filelist.trainerdatas",
)


def trainerdatas_add_entry_view(context, request):
    """
    Trainer datas add view
Beispiel #2
0
        ('page', 1),
    ),
)

ACCOMPAGNEMENT_MENU = AttrMenuDropdown(
    name="accompagnement",
    label=u"Accompagnement",
    default_route="/users/{id}/activities",
    icon=u"fa fa-users",
    hidden_attribute='login',
    perm="list.activity",
)
ACCOMPAGNEMENT_MENU.add_item(
    name="activity_view",
    label=u"Rendez-vous",
    route_name=u'/users/{id}/activities',
    icon=u"fa fa-calendar",
    perm="list.activity",
)
ACCOMPAGNEMENT_MENU.add_item(
    name="workshop_view",
    label=u"Ateliers",
    icon=u"fa fa-slideshare",
    route_name=u'/users/{id}/workshops',
    perm="list.activity",
)


def handle_rel_in_appstruct(appstruct):
    """
    Change related element ids in associated elements for further merge
Beispiel #3
0
from autonomie.views.user.tools import UserFormConfigState

logger = logging.getLogger(__name__)

USERDATAS_MENU = AttrMenuDropdown(
    name='userdatas',
    label=u'Gestion sociale',
    default_route=USER_USERDATAS_URL,
    icon=u'fa fa-id-card-o',
    hidden_attribute='userdatas',
    perm='edit.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_view",
    label=u'Fiche du porteur',
    route_name=USER_USERDATAS_EDIT_URL,
    icon=u'fa fa-user-circle-o',
    perm='view.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_parcours",
    label=u'Parcours',
    route_name=u'/users/{id}/userdatas/career_path',
    other_route_name=u'career_path',
    icon=u'fa fa-history',
    perm='view.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_doctypes",
    label=u'Documents sociaux',
    route_name=USER_USERDATAS_DOCTYPES_URL,
Beispiel #4
0

logger = logging.getLogger(__name__)

TRAINER_MENU = AttrMenuDropdown(
    name='trainerdatas',
    label=u"Formation",
    default_route=USER_TRAINER_URL,
    icon=u"fa fa-graduation-cap",
    hidden_attribute="trainerdatas",
    perm="view.trainerdatas",
)
TRAINER_MENU.add_item(
    name="trainerdatas_view",
    label=u"Fiche formateur",
    route_name=USER_TRAINER_EDIT_URL,
    icon=u'fa fa-user-circle-o',
    perm="edit.trainerdatas",
)
TRAINER_MENU.add_item(
    name="trainerdatas_filelist",
    label=u"Fichiers liés au formateur",
    route_name=USER_TRAINER_FILE_URL,
    icon=u'fa fa-briefcase',
    perm="filelist.trainerdatas",
)


def trainerdatas_add_entry_view(context, request):
    """
    Trainer datas add view
logger = logging.getLogger(__name__)


USERDATAS_MENU = AttrMenuDropdown(
    name='userdatas',
    label=u'Gestion sociale',
    default_route=USER_USERDATAS_URL,
    icon=u'fa fa-id-card-o',
    hidden_attribute='userdatas',
    perm='edit.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_view",
    label=u'Fiche du porteur',
    route_name=USER_USERDATAS_EDIT_URL,
    icon=u'fa fa-user-circle-o',
    perm='view.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_parcours",
    label=u'Parcours',
    route_name=u'/users/{id}/userdatas/career_path',
    other_route_name=u'career_path',
    icon=u'fa fa-history',
    perm='view.userdatas',
)
USERDATAS_MENU.add_item(
    name="userdatas_doctypes",
    label=u'Documents sociaux',
    route_name=USER_USERDATAS_DOCTYPES_URL,
    ),
)


ACCOMPAGNEMENT_MENU = AttrMenuDropdown(
    name="accompagnement",
    label=u"Accompagnement",
    default_route="/users/{id}/activities",
    icon=u"fa fa-users",
    hidden_attribute='login',
    perm="list.activity",
)
ACCOMPAGNEMENT_MENU.add_item(
    name="activity_view",
    label=u"Rendez-vous",
    route_name=u'/users/{id}/activities',
    icon=u"fa fa-calendar",
    perm="list.activity",
)
ACCOMPAGNEMENT_MENU.add_item(
    name="workshop_view",
    label=u"Ateliers",
    icon=u"fa fa-slideshare",
    route_name=u'/users/{id}/workshops',
    perm="list.activity",
)


def handle_rel_in_appstruct(appstruct):
    """
    Change related element ids in associated elements for further merge