[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: [websites/akademy-registration] /: also add first-time field
From: Marijn Kruisselbrink <mkruisselbrink () kde ! org>
Date: 2012-01-31 22:23:53
Message-ID: 20120131222353.52C52A60B9 () git ! kde ! org
[Download RAW message or body]
Git commit 50c425b56d2102ba1e21b1f8ffe83afebac7aa60 by Marijn Kruisselbrink.
Committed on 31/01/2012 at 23:23.
Pushed by mkruisselbrink into branch 'master'.
also add first-time field
M +40 -34 registration.module
http://commits.kde.org/websites/akademy-registration/50c425b56d2102ba1e21b1f8ffe83afebac7aa60
diff --git a/registration.module b/registration.module
index 486a047..b1a56c7 100644
--- a/registration.module
+++ b/registration.module
@@ -934,6 +934,46 @@ function registration_registrant_form(&$form_state, $account, \
$isadmin = FALSE) );
*/
+ //FIELDSET
+ $form['fs5'] = array(
+ '#type' => 'fieldset',
+ '#title' => t('You and KDE'),
+ '#collapsible' => TRUE,
+ '#collapsed' => FALSE,
+ );
+
+ $roles = registration_variable_get('project_roles');
+ if (count($roles)) {
+ $options = array();
+ foreach ($roles as $role) {
+ $options[$role] = $role;
+ }
+ ksort($options);
+
+ $form['fs5']['project_roles'] = array(
+ '#type' => 'checkboxes',
+ '#title' => t('Your role in KDE'),
+ '#options' => $options,
+ '#default_value' => split(',',$account->registrant->project_roles),
+ '#disabled' => $locked,
+ );
+
+ $form['fs5']['project_custom_role'] = array(
+ '#type' => 'textarea',
+ '#title' => t('Other'),
+ '#disabled' => $locked,
+ '#default_value' => $account->registrant->project_custom_role,
+ );
+ }
+
+ $form['fs5']['first_time'] = array(
+ '#type' => 'checkbox',
+ '#title' => t('This is my first time attending Akademy'),
+ '#required' => TRUE,
+ '#disabled' => $locked,
+ '#default_value' => $account->registrant->first_time
+ );
+
$form['fs4'] = array(
'#type' => 'fieldset',
'#title' => t('Dietary requirements and allergies'),
@@ -978,40 +1018,6 @@ function registration_registrant_form(&$form_state, $account, \
$isadmin = FALSE)
'#description' => t('If you have any other health problems or allergies, \
please let us know about it') );
- //FIELDSET
- $form['fs5'] = array(
- '#type' => 'fieldset',
- '#title' => t('You and KDE'),
- '#collapsible' => TRUE,
- '#collapsed' => FALSE,
- );
-
- $roles = registration_variable_get('project_roles');
- if (count($roles)) {
- $options = array();
- foreach ($roles as $role) {
- $options[$role] = $role;
- }
- ksort($options);
-
- $form['fs5']['project_roles'] = array(
- '#type' => 'checkboxes',
- '#title' => t('Your role in KDE'),
- '#options' => $options,
- '#default_value' => split(',',$account->registrant->project_roles),
- '#disabled' => $locked,
- );
-
- $form['fs5']['project_custom_role'] = array(
- '#type' => 'textarea',
- '#title' => t('Other'),
- '#disabled' => $locked,
- '#default_value' => $account->registrant->project_custom_role,
- );
- }
-
- // TODO: firsttime
-
//FIELDSET
$form['fs3'] = array(
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic