{% extends 'base.html' %} {% block content %}
{{ widget.gorillaml_custom_form(metadata) }} {% call widget.gcard(title=field_reff_fields.name + ' field collections', class='col-md-9', body_class='p-0') %} {% if field_reff_fields.form_reference_fields|length > 0 %} {% for formfields in field_reff_fields.form_reference_fields %} {% endfor %} {% else %} {% endif %}
# Name Title Type Weight Required Created by Action
{{ formfields.id }} {{ formfields.name }} {{ formfields.title }} {{ formfields.type }} {{ formfields.weight }} {{ formfields.required }} {{ field_reff_fields.user.username }}
No fields found yet.
{% endcall %}
{% endblock %} {% block javascript %} var myCodeMirror = CodeMirror.fromTextArea(document.getElementById('choiced'), { lineNumbers: true, styleActiveLine: true, matchBrackets: true }); var choiced_textarea = $('textarea[name="choiced"]'); if($('#type').val() == 'SelectField' || $('#type').val() == 'SelectMultipleField') { $('.choiced').show(); } else { $('.choiced').hide(); } $('#type').bind('change', function() { if(this.value == 'SelectField' || this.value == 'SelectMultipleField') { $('.choiced').show(); } else { $('.choiced').hide(); } return false; }); {% endblock %}