Few fixes.

This commit is contained in:
Antoine Nguyen
2014-08-25 19:46:44 +02:00
parent 25cd707490
commit 83acd4da29
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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"})
)
+2 -2
View File
@@ -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">&times;</span><span class="sr-only">Close</span></button>
{{ msg }}
</div>""")
return t.render(Context(dict(type=typ, msg=msg)))
+1 -1
View File
@@ -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 %}