Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
belenios
belenios
Commits
db9e7b9d
Commit
db9e7b9d
authored
Apr 04, 2017
by
Stephane Glondu
Browse files
Add a warning when no trustees are set in election_setup_confirm
parent
c502ebd4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/web/web_templates.ml
View file @
db9e7b9d
...
...
@@ -986,6 +986,15 @@ let election_setup_confirm uuid se () =
st_public_key
<>
""
)
se
.
se_public_keys
then
ready
,
"OK"
else
false
,
"Missing"
in
let
div_trustee_warning
=
match
se
.
se_public_keys
with
|
[]
->
div
[
b
[
pcdata
"Warning:"
];
pcdata
" No trustees were set. This means that the server will manage the election key by itself."
;
]
|
_
::
_
->
pcdata
""
in
let
table_checklist
=
table
[
tr
[
td
[
pcdata
"Voters?"
];
...
...
@@ -1007,6 +1016,7 @@ let election_setup_confirm uuid se () =
let
checklist
=
div
[
h2
[
pcdata
"Checklist"
];
table_checklist
;
div_trustee_warning
;
]
in
let
form_create
=
if
ready
then
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment