{# Creates a floating form using a Twitter Bootstrap modal. modal_id = unique id/name for the modal. form = dictionary of form attributes. submit = dictionary of submit button attributes. inputs = list of dictionaries with form input attributes. Example: In the controller, pass the following variables to the template using c: c.modal_id = 'addFormModal' c.add_form = {'id': 'addForm', 'title': 'Add Project Card', 'method': 'post', 'action': h.url_for('project-file', name=c.name, action='add')} c.add_submit = {'display_text': 'Add', 'icon_class':'icon-plus', 'attributes': None} c.add_inputs = ({'type': 'text', 'name': 'name', 'label': 'Card Name', 'placeholder': 'e.g.: CARD_NAME', 'validator': None}, {'type': 'text', 'name': 'value', 'label': 'Value', 'placeholder': 'e.g.: 9999', 'validator': None}) {% snippet "snippets/floating_form.html", modal_id=c.modal_id, form=c.add_form, submit=c.add_submit, inputs=c.add_inputs %} #}