This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% macro form_field(field) -%} | |
{% set with_label = kwargs.pop('with_label', False) %} | |
{% set placeholder = '' %} | |
{% if not with_label %} | |
{% set placeholder = field.label.text %} | |
{% endif %} | |
<div class="control-group {% if field.errors %}error{% endif %}"> | |
{% if with_label %} | |
<label for="{{ field.id }}" class="control-label"> | |
{{ field.label.text }}{% if field.flags.required %} *{% endif %}: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from wtforms import Form, Field, TextField, FieldList, SelectField | |
from wtforms.widgets import TextInput, html_params, ListWidget | |
class H4ckedFieldList(FieldList): | |
widget = ListWidget(prefix_label=False) | |
class SomeRandomForm(Form): | |
name = TextField('Name') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from flask import Flask | |
from wtforms import Form, Field, TextField | |
from wtforms.widgets import TextInput, html_params | |
# http://wtforms.simplecodes.com/docs/0.6/widgets.html#custom-widgets | |
def render_ul_users(field, ul_class='awesome_class', **kwargs): | |
kwargs.setdefault('id', field.id) | |
if hasattr(field, 'users'): | |
html = [u'<ul %s>' % html_params(id=field.id, class_=ul_class)] | |
# A sure hope users is iterable: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Bolei a prova para que fosse feita em média por bons candidatos nos seguintes tempos: | |
+-----------------------------------------------------------------+ | |
| QUESTÕES | TEMPO (min) | TIPO | | |
+-----------------------------------------------------------------+ | |
| 1,2 | 30 min | Lógica | | |
| 3,5 | 60 min | Programação | | |
| 4,6 | 30 min | Leitura e Simulação de código | | |
| 7 | ------ | Confiança nas respostas | | |
+-----------------------------------------------------------------+ | |
O intuito era que as questões 1,2,6 fossem fáceis e fossem feitas rápido (nos primeiros 30-40min). |
NewerOlder