mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-18 05:51:26 +02:00
Few fixes.
This commit is contained in:
@@ -44,7 +44,7 @@ class GeneralParametersForm(parameters.AdminParametersForm):
|
||||
('ldap', "LDAP")],
|
||||
initial="local",
|
||||
help_text=ugettext_lazy("The backend used for authentication"),
|
||||
widget=forms.Select(attrs={"class": "form-control"})
|
||||
widget=InlineRadioSelect
|
||||
)
|
||||
|
||||
password_scheme = forms.ChoiceField(
|
||||
@@ -215,7 +215,7 @@ class GeneralParametersForm(parameters.AdminParametersForm):
|
||||
label=_("Top notifications check interval"),
|
||||
initial=30,
|
||||
help_text=_("Interval between two top notification checks"),
|
||||
widget=forms.NumberInput(attrs={"class": "form-control"})
|
||||
widget=forms.TextInput(attrs={"class": "form-control"})
|
||||
)
|
||||
|
||||
check_new_versions = YesNoField(
|
||||
@@ -245,7 +245,7 @@ class GeneralParametersForm(parameters.AdminParametersForm):
|
||||
initial="user",
|
||||
help_text=ugettext_lazy(
|
||||
"The default redirection used when no application is specified"
|
||||
)
|
||||
),
|
||||
widget=forms.Select(attrs={"class": "form-control"})
|
||||
)
|
||||
|
||||
|
||||
@@ -113,8 +113,8 @@ def pagination_bar(page):
|
||||
|
||||
@register.simple_tag
|
||||
def alert(msg, typ):
|
||||
t = Template("""<div class="alert alert-{{ type }}">
|
||||
<a class="btn btn-default close" data-dismiss="alert">×</a>
|
||||
t = Template("""<div class="alert alert-{{ type }}" role="alert">
|
||||
<button type="button" class="close" data-dismiss="alert"><span aria-hidden="true">×</span><span class="sr-only">Close</span></button>
|
||||
{{ msg }}
|
||||
</div>""")
|
||||
return t.render(Context(dict(type=typ, msg=msg)))
|
||||
|
||||
@@ -52,7 +52,7 @@
|
||||
</div>
|
||||
</form>
|
||||
<div class="login-error">
|
||||
{% if error %}{% alert error "error" %}{% endif %}
|
||||
{% if error %}{% alert error "danger" %}{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% for annoucement in annoucements %}
|
||||
|
||||
Reference in New Issue
Block a user