mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-22 21:03:01 +09:00
Feature request: 'Custom fields for sign up form' implemented
This commit is contained in:
1 parent
a2200e1c1f
commit
43bfbb55aa
6 files changed
+95
-15
No files matched your search
@@ -196,6 +196,19 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% set custom_fields = guest.client_custom_fields %}
|
||||
{% for field_name, field in custom_fields %}
|
||||
{% if field.active %}
|
||||
<div class="control-group">
|
||||
<label class="control-label" for="{{ field_name }}">{% if field.title is not empty %}{{ field.title }}{% else %} {{ field_name | capitalize }} {% endif %}</label>
|
||||
<div class="controls">
|
||||
<input type="text" name="{{ field_name }}" id="{{ field_name }}" value="{{ attribute(request, field_name) }}" {% if field.required %}required="required"{% endif %}>
|
||||
<p class="help-block"></p>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
{{ mf.recaptcha }}
|
||||
|
||||
<div class="form-actions">
|
||||
|
||||
Reference in new issue
Block a user