示例#1
0
class BaseNewLoginForm(BaseLoginForm):
    def __init__(self, action, **args):
        BaseLoginForm.__init__(self, action, **args)
        self.confirm_inp = Input(type='password', name='confirm', value='')
        self.submit_btn['value'] = 'Create login info.'
        self.headinfo = Paragraph('New Login Information')
        self.user_inp['name'] = 'username'
        self._make_maintable()

        
    def _make_maintable(self):
        self._maintable = Table()
        self._maintable.append(TableRow(TableHeader(self.headinfo)))
        self._maintable.append(self._make_labelentry('User:  '******'Password:  '******'Confirm Password:  '******'value'] = username
示例#2
0
 def _make_maintable(self):
     self._maintable = Table()
     self._maintable.append(TableRow(TableHeader(self.headinfo)))
     self._maintable.append(self._make_labelentry('User:  '******'Password:  '******'Confirm Password:  ', self.confirm_inp))
     p = Paragraph(self.clear_btn)
     p.append(self.submit_btn)
     self._maintable.append(TableRow(TableCell(p)))
     self.set(self._maintable)
示例#3
0
 def _make_maintable(self):
     self.fname_inp = Input(type='text', name='fullname', value='')
     self._maintable = Table()
     self._maintable.append(TableRow(TableHeader(self.headinfo)))
     self._maintable.append(self._make_labelentry('User:  '******'Full Name:  ', self.fname_inp))
     self._maintable.append(self._make_labelentry('Password:  '******'Confirm Password:  ', self.confirm_inp))
     p = Paragraph(self.clear_btn)
     p.append(self.submit_btn)
     self._maintable.append(TableRow(TableCell(p)))
     self.set(self._maintable)
示例#4
0
 def __init__(self, action, **args):
     BaseLoginForm.__init__(self, action, **args)
     self.confirm_inp = Input(type='password', name='confirm', value='')
     self.submit_btn['value'] = 'Create login info.'
     self.headinfo = Paragraph('New Login Information')
     self.user_inp['name'] = 'username'
     self._make_maintable()
示例#5
0
 def _make_labelentry(self, info, input):
     p = Paragraph(info)
     p.append(input)
     return p