2 // Note: This file is included from the library/People/People.Control.RegistrationForm.php control.
4 if (!$this->Context
->Session
->User
->Permission('PERMISSION_MANAGE_REGISTRATION')) {
5 $this->Context
->WarningCollector
->Add($this->Context
->GetDefinition('PermissionError'));
6 echo '<div class="SettingsForm">
7 '.$this->Get_Warnings().'
10 $this->PostBackParams
->Set('PostBackAction', 'ProcessRegistrationChange');
11 echo '<div id="Form" class="Account Identity">';
12 if ($this->PostBackValidated
) echo '<div id="Success">'.$this->Context
->GetDefinition('RegistrationChangesSaved').'</div>';
14 <legend>'.$this->Context
->GetDefinition('RegistrationManagement').'</legend>
15 '.$this->Get_Warnings().'
16 '.$this->Get_PostBackForm('frmRegistrationChange').'
19 <label for="ddRoleID">'.$this->Context
->GetDefinition('NewMemberRole').'</label>
20 '.$this->RoleSelect
->Get().'
21 <p class="Description">'.$this->Context
->GetDefinition('NewMemberRoleNotes').'</p>
24 <label for="ddApprovedRoleID">'.$this->Context
->GetDefinition('ApprovedMemberRole').'</label>
25 '.$this->ApprovedRoleSelect
->Get().'
26 <p class="Description">'.$this->Context
->GetDefinition('ApprovedMemberRoleNotes').'</p>
28 $this->CallDelegate('PostRegistrationOptions');
31 <input type="submit" name="btnSave" value="'.$this->Context
->GetDefinition('Save').'" class="Button SubmitButton" />
32 <a href="'.GetUrl($this->Context
->Configuration
, $this->Context
->SelfUrl
).'" class="CancelButton">'.$this->Context
->GetDefinition('Cancel').'</a>