Various fixes.

see #170
This commit is contained in:
Antoine Nguyen
2013-01-07 22:21:26 +01:00
parent 71dc39bbb6
commit f7a75b49bb
4 changed files with 19 additions and 8 deletions
+7 -4
View File
@@ -209,9 +209,11 @@ def param(app, definition):
result = """<div class='control-group'%s>
<label class="param-label" for="%s">%s</label>
<div class="param-controls">""" \
% (extratags, name, definition.has_key("label") and _(definition["label"])
or definition["name"])
""" % (extratags, name,
definition.has_key("label") and _(definition["label"])
or definition["name"])
result += "<div class='param-controls'>"
if definition["type"] in ["string", "int"]:
result += """
<input type='text' name='%s' id='%s' value='%s' />""" % (name, name, value)
@@ -246,8 +248,9 @@ def param(app, definition):
if definition.has_key("help"):
result += """
<p class="help-block">%s</p>
<span class="help-block">%s</span>
""" % _(definition["help"])
result += """
</div>
</div>
@@ -27,10 +27,12 @@ $(document).ready(function() {
<li class="nav-header">
{% trans "Filter" %}
</li>
<div class="input-prepend input-append">
<span class="add-on"><i class="icon-search"></i></span>
<input class="span10" id="searchquery" type="text" value="{% trans 'Search a domain' %}">
</div>
<li>
<div class="input-prepend input-append">
<span class="add-on"><i class="icon-search"></i></span>
<input class="span10" id="searchquery" type="text" value="{% trans 'Search a domain' %}">
</div>
</li>
<li class="nav-header">
{% trans "Predefined time ranges" %}
</li>
+1
View File
@@ -68,6 +68,7 @@ class Webmail(ModoExtension):
help=ugettext_lazy("The default mode used when displaying a message"))
parameters.register_user("ENABLE_LINKS", type="list_yesno", deflt="no",
label=ugettext_lazy("Enable HTML links display"),
visible_if="DISPLAYMODE=html",
help=ugettext_lazy("Enable/Disable HTML links display"))
def destroy(self):
+5
View File
@@ -86,4 +86,9 @@ body {
.hidden {
display: none;
}
.help-block {
color: #999999;
font-style: italic;
}