Introducing Pillar Framework

Refactor of pillar-server and pillar-web into a single python package. This
simplifies the overall architecture of pillar applications.

Special thanks @sybren and @venomgfx
This commit is contained in:
2016-08-19 09:19:06 +02:00
parent a5e92e1d87
commit 2c5dc34ea2
232 changed files with 79508 additions and 2232 deletions

View File

@@ -0,0 +1,34 @@
| {% macro render_field(field) %}
.form-group(class="{{field.name}}{% if field.errors %} error{% endif %}")
| {% if field.type == 'BooleanField' %}
.checkbox
label
| {{ field(class='checkbox') }}
| {{ field.label }}
| {% elif field.type == 'FieldList' %}
ul.fieldlist#files
| {% for file in field %}
li.fieldlist-item
| {% for subfield in file %}
| {{ render_field(subfield) }}
| {% endfor %}
| {% endfor %}
| {% else %}
| {{ field.label }}
| {{ field(class='form-control') }}
| {% endif %}
| {% if field.errors %}
ul.error
| {% for error in field.errors %}
li {{ error }}
| {% endfor %}
| {% endif %}
| {% endmacro %}