Esempio n. 1
0
    def before(self, form):
        come_from = self.request.referrer
        log.debug(u"Coming from : %s" % come_from)

        appstruct = {'come_from': come_from}
        form.set_appstruct(appstruct)
        add_link_to_menu(self.request, u"Revenir à la liste", "templates", "")
Esempio n. 2
0
 def before(self, form):
     FileEditView.before(self, form)
     add_link_to_menu(
         self.request,
         u"Revenir à la liste",
         "templates",
         "",
     )
Esempio n. 3
0
 def before(self, form):
     FileEditView.before(self, form)
     add_link_to_menu(
         self.request,
         u"Revenir à la liste",
         "templates",
         "",
     )
Esempio n. 4
0
 def populate_actionmenu(self, request):
     """
         Add a back to index link
     """
     add_link_to_menu(
         request,
         u"Revenir en arrière",
         path="admin_accompagnement",
         title=u"Revenir à la page précédente",
     )
Esempio n. 5
0
def populate_actionmenu(request):
    """
        Add a back to index link
    """
    add_link_to_menu(
        request,
        u"Revenir à l'index",
        path="admin_index",
        title=u"Revenir à l'index de l'administration",
    )
Esempio n. 6
0
 def populate_actionmenu(self):
     """
         Add a back to index link
     """
     add_link_to_menu(
         self.request,
         u"Revenir en arrière",
         path="admin_competences",
         title=u"Revenir à la page précédente",
     )
Esempio n. 7
0
 def populate_actionmenu(self, request):
     """
         Add a back to index link
     """
     add_link_to_menu(
         request,
         u"Revenir en arrière",
         path="admin_accompagnement",
         title=u"Revenir à la page précédente",
     )
Esempio n. 8
0
def populate_actionmenu(request):
    """
        Add a back to index link
    """
    add_link_to_menu(
        request,
        u"Revenir à l'index",
        path="admin_index",
        title=u"Revenir à l'index de l'administration",
    )
Esempio n. 9
0
 def populate_actionmenu(self):
     """
         Add a back to index link
     """
     add_link_to_menu(
         self.request,
         u"Revenir en arrière",
         path="admin_competences",
         title=u"Revenir à la page précédente",
     )
Esempio n. 10
0
    def __call__(self):
        add_link_to_menu(
            self.request,
            u"Retour",
            path="admin_userdatas",
            title=u"Retour à l'administration de la gestion sociale")

        templates = files.Template.query()\
            .order_by(desc(files.Template.active))\
            .all()
        return dict(templates=templates, title=self.title)
Esempio n. 11
0
    def __call__(self):
        add_link_to_menu(
            self.request,
            u"Retour",
            path="admin_userdatas",
            title=u"Retour à l'administration de la gestion sociale"
        )

        templates = files.Template.query()\
            .order_by(desc(files.Template.active))\
            .all()
        return dict(templates=templates, title=self.title)
Esempio n. 12
0
    def before(self, form):
        come_from = self.request.referrer
        log.debug(u"Coming from : %s" % come_from)

        appstruct = {
            'come_from': come_from
        }
        form.set_appstruct(appstruct)
        add_link_to_menu(
            self.request,
            u"Revenir à la liste",
            "templates",
            "")