slightly better layout for disabled register page

pull/1/head
ansuz 4 years ago
parent 729d51fb9b
commit 67a909711d

@ -23,8 +23,8 @@ define([
Pages.infopageTopbar(),
h('div.container.cp-container', [
h('div.row.cp-page-title', h('h1', Msg.register_header)),
h('div.row.cp-register-det', content),
]),
//h('div.row.cp-register-det', content),
].concat(content)),
]),
Pages.infopageFooter(),
];
@ -33,11 +33,14 @@ define([
if (Config.restrictRegistration) {
Msg.register_closed = "This instance does not allow registration at the moment."; // XXX
return frame([
h('h4', Msg.register_closed)
h('div.cp-restricted-registration', [
h('p', Msg.register_closed),
])
]);
}
return frame([
h('div.row.cp-register-det', [
h('div#data.hidden.col-md-6', [
h('h2', Msg.register_notes_title),
Pages.setHTML(h('div.cp-register-notes'), Msg.register_notes)
@ -76,6 +79,7 @@ define([
h('button#register', Msg.login_register)
])
]),
])
]);
};

@ -52,6 +52,9 @@
}
}
.cp-restricted-registration {
text-align: center !important;
}
.cp-register-det {
#data {

Loading…
Cancel
Save