mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-17 05:41:25 +02:00
Misc fixes.
This commit is contained in:
+2
-1
@@ -328,7 +328,8 @@ def editaccount(request, accountid, tplname="common/tabforms.html"):
|
||||
ctx = dict(
|
||||
title=account.username,
|
||||
action=reverse(editaccount, args=[accountid]),
|
||||
submit_label=_("Update")
|
||||
action_label=_("Update"),
|
||||
action_classes="submit"
|
||||
)
|
||||
|
||||
if request.method == "POST":
|
||||
|
||||
@@ -193,7 +193,8 @@ def savefs(request, name):
|
||||
def new_filters_set(request, tplname="common/generic_modal_form.html"):
|
||||
ctx = {"title" : _("Create a new filters set"),
|
||||
"formid" : "newfiltersset",
|
||||
"submit_label" : _("Create"),
|
||||
"action_label" : _("Create"),
|
||||
"action_classes" : "submit",
|
||||
"action" : reverse(new_filters_set),
|
||||
"withmenu" : False,
|
||||
"withunseen" : False}
|
||||
|
||||
+1
-1
@@ -27,7 +27,7 @@ function newaccount_cb() {
|
||||
|
||||
function editaccount_cb() {
|
||||
accountform_init();
|
||||
$('#submit').click(function(e) {
|
||||
$('.submit').one('click', function(e) {
|
||||
simple_ajax_form_post(e, {
|
||||
error_cb: editaccount_cb
|
||||
});
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
{% extends "common/generic_modal.html" %}
|
||||
{% load i18n libextras %}
|
||||
<div class="modal-header">
|
||||
<a class="close" data-dismiss="modal">x</a>
|
||||
<h3>{{ title }}</h3>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
{% block modalbody %}
|
||||
<form class="form-horizontal" action="{{ action }}" method="POST">
|
||||
<ul class="nav nav-pills">
|
||||
{% for tab in tabs %}
|
||||
@@ -24,8 +21,4 @@
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<a href="#" class="btn btn-primary" id="submit">{{ submit_label }}</a>
|
||||
<a class="btn" data-dismiss="modal">{% trans "Close" %}</a>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user