better layout for user register

This commit is contained in:
Philip Häusler 2014-08-23 15:35:25 +02:00
parent 4b1473ad2b
commit d60c2f0c40
1 changed files with 59 additions and 17 deletions

View File

@ -140,29 +140,71 @@ function guest_register() {
$msg, $msg,
msg(), msg(),
form(array( form(array(
form_text('nick', _("Nick") . "*", $nick), div('row', array(
form_text('lastname', _("Last name"), $lastname), div('col-md-6', array(
form_text('prename', _("First name"), $prename), div('row', array(
form_text('age', _("Age"), $age), div('col-md-4', array(
form_text('tel', _("Phone"), $tel), form_text('nick', _("Nick") . ' ' . entry_required(), $nick)
form_text('dect', _("DECT"), $tel), )),
form_text('mobile', _("Mobile"), $mobile), div('col-md-8', array(
form_text('mail', _("E-Mail") . "*", $mail), form_text('mail', _("E-Mail") . ' ' . entry_required(), $mail)
form_text('icq', _("ICQ"), $icq), ))
form_text('jabber', _("Jabber"), $jabber), )),
form_text('hometown', _("Hometown"), $hometown), $enable_tshirt_size ? form_select('tshirt_size', _("Shirt size") . ' ' . entry_required(), $tshirt_sizes, $tshirt_size) : '',
$enable_tshirt_size ? form_select('tshirt_size', _("Shirt size") . "*", $tshirt_sizes, $tshirt_size) : '', div('row', array(
div('col-md-6', array(
form_password('password', _("Password") . ' ' . entry_required())
)),
div('col-md-6', array(
form_password('password2', _("Confirm password") . ' ' . entry_required())
))
)),
form_checkboxes('angel_types', _("What do you want to do?") . sprintf(" (<a href=\"%s\">%s</a>)", page_link_to('angeltypes') . '&action=about', _("Description of job types")), $angel_types, $selected_angel_types),
form_info("", _("Restricted angel types need will be confirmed later by an archangel. You can change your selection in the options section."))
)),
div('col-md-6', array(
div('row', array(
div('col-md-4', array(
form_text('dect', _("DECT"), $dect)
)),
div('col-md-4', array(
form_text('mobile', _("Mobile"), $mobile)
)),
div('col-md-4', array(
form_text('tel', _("Phone"), $tel)
))
)),
form_text('jabber', _("Jabber"), $jabber),
div('row', array(
div('col-md-6', array(
form_text('prename', _("First name"), $prename)
)),
div('col-md-6', array(
form_text('lastname', _("Last name"), $lastname)
))
)),
div('row', array(
div('col-md-3', array(
form_text('age', _("Age"), $age)
)),
div('col-md-9', array(
form_text('hometown', _("Hometown"), $hometown)
))
)),
form_info(entry_required() . ' = ' . _("Entry required!"))
))
)),
// form_text('icq', _("ICQ"), $icq),
// form_textarea('comment', _("Did you help at former CCC events and which tasks have you performed then?"), $comment), // form_textarea('comment', _("Did you help at former CCC events and which tasks have you performed then?"), $comment),
form_checkboxes('angel_types', _("What do you want to do?") . sprintf("<br>(<a href=\"%s\">%s</a>)", page_link_to('angeltypes') . '&action=about', _("Description of job types")), $angel_types, $selected_angel_types),
form_info("", _("Restricted angel types need will be confirmed later by an archangel. You can change your selection in the options section.")),
form_password('password', _("Password") . "*"),
form_password('password2', _("Confirm password") . "*"),
info("*: " . _("Entry required!"), true),
form_submit('submit', _("Register")) form_submit('submit', _("Register"))
)) ))
)); ));
} }
function entry_required() {
return '<span class="text-info glyphicon glyphicon-warning-sign"></span>';
}
function guest_logout() { function guest_logout() {
session_destroy(); session_destroy();
redirect(page_link_to("start")); redirect(page_link_to("start"));