Example #1
0
 def render(self):
     return html.vinput(self.name,
                        {},
                        _type='password',
                        _id=self._id_prefix + self.name,
                        **self.kwargs)
Example #2
0
 def render(self):
     return html.vinput(self.name,
                        {self.name: self.value},
                        _type='text',
                        _id=self._id_prefix + self.name,
                        **self.kwargs)
def test_vinput_value():
    s = mod.vinput('foo', {'foo': '12'})
    assert_value(s, '12')
def test_vinput_override_id():
    s = mod.vinput('foo', {}, _id='bar')
    assert_attr(s, 'id', 'bar')
def test_vinput():
    s = mod.vinput('foo', {})
    assert_tag(s, 'input')
    assert_name(s, 'foo')
    assert_attr(s, 'id', 'foo')
 def render(self):
     return html.vinput(self.name,
                        {},
                        _type='file',
                        _id=self._id_prefix + self.name,
                        **self.options)
 def render(self):
     return html.vinput(self.name,
                        {self.name: self.value},
                        _type='email',
                        _id=self._id_prefix + self.name,
                        **self.options)