Exemple #1
0
 def __call__(self):
     cont = CTK.Container()
     cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_WELCOME_H1)))
     cont += Wizard.Icon('redirect', {'class': 'wizard-descr'})
     box = CTK.Box({'class': 'wizard-welcome'})
     box += CTK.RawHTML('<p>%s</p>' % (_(NOTE_WELCOME_P1)))
     box += Wizard.CookBookBox('cookbook_redirs')
     cont += box
     cont += CTK.DruidButtonsPanel_Next_Auto()
     return cont.Render().toStr()
Exemple #2
0
    def __call__(self):
        cont = CTK.Container()
        cont += CTK.RawHTML('<h2>%s</h2>' % (_(NOTE_WELCOME_H1)))
        cont += Wizard.Icon('static', {'class': 'wizard-descr'})
        box = CTK.Box({'class': 'wizard-welcome'})
        box += CTK.RawHTML('<p>%s</p>' % (_(NOTE_WELCOME_P1)))
        cont += box

        # Send the VServer num
        tmp = re.findall(r'^/wizard/vserver/(\d+)/', CTK.request.url)
        submit = CTK.Submitter(URL_APPLY)
        submit += CTK.Hidden('%s!vsrv_num' % (PREFIX), tmp[0])
        cont += submit
        cont += CTK.DruidButtonsPanel_Next_Auto()
        return cont.Render().toStr()
 def Render(self):
     render = Phase.Render(self)
     render += CTK.DruidButtonsPanel_Next_Auto().Render()
     return render