Commit 1f9f7c1a authored by Anze Vavpetic's avatar Anze Vavpetic

added password input option to AbstractInput

parent 39b7efe9
......@@ -9,3 +9,4 @@ django-picklefield==0.2.1
httplib2==0.7.5
pydot==1.0.28
wsgiref==0.1.2
mysql-connector-python==1.0.7
\ No newline at end of file
......@@ -291,6 +291,7 @@ class AbstractInput(models.Model):
default = models.TextField(blank=True)
PARAMETER_CHOICES = (
('text','Single line'),
('password', 'Password'),
('textarea','Multi line text'),
('select', 'Select box'),
('checkbox', 'Checkbox'),
......
......@@ -9,6 +9,9 @@
{% if p.parameter_type == "text" %}
<input id="pref-{{p.pk}}" name="pref-{{p.pk}}" title="{{p.description}}" type="text" value="{{p.value}}" onchange="" class="text ui-widget-content ui-corner-all" />
{% endif %}
{% if p.parameter_type == "password" %}
<input id="pref-{{p.pk}}" name="pref-{{p.pk}}" title="{{p.description}}" type="password" value="{{p.value}}" onchange="" class="text ui-widget-content ui-corner-all" />
{% endif %}
{% if p.parameter_type == "select" %}
<select id="pref-{{p.pk}}" name="pref-{{p.pk}}" title="{{p.description}}" style="background:#fefefe;width:99%;" class="text ui-widget-content ui-corner-all" onchange="">
{% for o in p.options.all %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment