mirror of
https://github.com/processone/ejabberd
synced 2025-10-05 19:42:11 +02:00
* src/web/ejabberd_web_admin.erl: Use textareas for large input
like ejabberd module options and listening port options. Show result of POST more clearly. Ensure access rules are shown with some minimum separation. Improve menu headers. (EJAB-562) * src/web/ejabberd_web_admin.hrl: Likewise * src/mod_offline.erl: Likewise * src/mod_offline_odbc.erl: Likewise * src/mod_roster.erl: Likewise * src/mod_roster_odbc.erl: Likewise * src/mod_shared_roster.erl: Likewise SVN Revision: 1813
This commit is contained in:
parent
ba2eb35590
commit
43a98ab69b
8 changed files with 142 additions and 95 deletions
|
@ -725,8 +725,8 @@ list_shared_roster_groups(Host, Query, Lang) ->
|
|||
)]),
|
||||
?H1GL(?T("Shared Roster Groups"), "modsharedroster", "mod_shared_roster") ++
|
||||
case Res of
|
||||
ok -> [?CT("Submitted"), ?P];
|
||||
error -> [?CT("Bad format"), ?P];
|
||||
ok -> [?XREST("Submitted")];
|
||||
error -> [?XREST("Bad format")];
|
||||
nothing -> []
|
||||
end ++
|
||||
[?XAE("form", [{"action", ""}, {"method", "post"}],
|
||||
|
@ -789,8 +789,9 @@ shared_roster_group(Host, Group, Query, Lang) ->
|
|||
[]
|
||||
end ++ [[us_to_list(Member), $\n] || Member <- Members],
|
||||
FDisplayedGroups = [[DG, $\n] || DG <- DisplayedGroups],
|
||||
DescNL = length(element(2, regexp:split(Description, "\n"))),
|
||||
FGroup =
|
||||
?XAE("table", [],
|
||||
?XAE("table", [{"class", "withtextareas"}],
|
||||
[?XE("tbody",
|
||||
[?XE("tr",
|
||||
[?XCT("td", "Name:"),
|
||||
|
@ -799,34 +800,34 @@ shared_roster_group(Host, Group, Query, Lang) ->
|
|||
),
|
||||
?XE("tr",
|
||||
[?XCT("td", "Description:"),
|
||||
?XE("td", [?XAC("textarea", [{"name", "description"},
|
||||
{"rows", "3"},
|
||||
{"cols", "20"}],
|
||||
Description)])
|
||||
?XE("td", [
|
||||
?TEXTAREA("description", integer_to_list(lists:max([3, DescNL])), "20", Description)
|
||||
]
|
||||
)
|
||||
]
|
||||
),
|
||||
?XE("tr",
|
||||
[?XCT("td", "Members:"),
|
||||
?XE("td", [?XAC("textarea", [{"name", "members"},
|
||||
{"rows", "3"},
|
||||
{"cols", "20"}],
|
||||
FMembers)])
|
||||
?XE("td", [
|
||||
?TEXTAREA("members", integer_to_list(lists:max([3, length(FMembers)])), "20", FMembers)
|
||||
]
|
||||
)
|
||||
]
|
||||
),
|
||||
?XE("tr",
|
||||
[?XCT("td", "Displayed Groups:"),
|
||||
?XE("td", [?XAC("textarea", [{"name", "dispgroups"},
|
||||
{"rows", "3"},
|
||||
{"cols", "20"}],
|
||||
FDisplayedGroups)])
|
||||
?XE("td", [
|
||||
?TEXTAREA("dispgroups", integer_to_list(lists:max([3, length(FDisplayedGroups)])), "20", FDisplayedGroups)
|
||||
]
|
||||
)
|
||||
]
|
||||
)]
|
||||
)]),
|
||||
?H1GL(?T("Shared Roster Groups"), "modsharedroster", "mod_shared_roster") ++
|
||||
[?XC("h2", ?T("Group ") ++ Group)] ++
|
||||
case Res of
|
||||
ok -> [?CT("Submitted"), ?P];
|
||||
error -> [?CT("Bad format"), ?P];
|
||||
ok -> [?XREST("Submitted")];
|
||||
error -> [?XREST("Bad format")];
|
||||
nothing -> []
|
||||
end ++
|
||||
[?XAE("form", [{"action", ""}, {"method", "post"}],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue