Commit a566b33f authored by Terri Oda's avatar Terri Oda

Setting up to have popup/linked help text for each setting. Right now, the...

Setting up to have popup/linked help text for each setting.  Right now, the mouseover works and displays help_text for each item, but I haven't set help_text on much.
parent bc18a5dc
......@@ -220,7 +220,8 @@ class ListSettings(FieldsetForm):
coerce=lambda x: x == 'True',
choices=((True, _('Yes')), (False, _('No'))),
widget=forms.RadioSelect,
label=_('Advertise the existance of this list?'))
label=_('Advertise the existance of this list?'),
help_text=('Choose whether to include this list on the list of all lists'))
filter_content = forms.TypedChoiceField(
coerce=lambda x: x == 'True',
choices=((True, _('Yes')), (False, _('No'))),
......
......@@ -148,3 +148,15 @@ legend {
color: #A22630;
}
/* Mouseover help */
span.more_info {border-bottom: thin dotted; background: #ffeedd;}
span.more_info:hover {text-decoration: none; background: #ffffff; z-index: 6; }
span.more_info span {position: absolute; left: -9999px;
margin: 0em; padding: 0.5em;
border-style:solid; border-color:black; border-width:1px; z-index: 6;}
span.more_info:hover span {left: 2%; background: #ffffff;}
span.more_info span {position: absolute; left: -9999px;
margin: 2em; padding: 0.5em;
border-style:solid; border-color:black; border-width:1px;}
span.more_info:hover span {margin: 2em; background: #ffffff;
z-index:6;}
......@@ -12,10 +12,22 @@
</ul>
{% if visible_section %}
<table class="well">
<form class="well" action="{% url list_settings fqdn_listname=list.fqdn_listname visible_section=visible_section visible_option=visible_option %}" method="post" class="list_settings"> {% csrf_token %}
{{ form.as_p }}
<button class="btn btn-primary" type="submit">{%trans "Save changes" %}</button>
{% for field in form %}
<tr><td>
{{ field.errors }}
{{ field.label_tag }}: <br />
[<span class="more_info"><a href="#">More info</a><span>{{ field.help_text }}
</span></span>]
</td><td>{{ field }}</td></tr>
{% endfor %}
<tr><td colspan="2">
<button class="btn btn-primary" type="submit">{%trans "Save changes" %}</button>
</td></tr>
</form>
</table>
{% endif %}
{% endblock %}
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