Added theme: blogger-1.5.zip
[vanilla-miry.git] / themes / settings_registration_form.php
blob2b6aee97414e160639e6c7da1d8d9646f9887e85
1 <?php
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().'
8 </div>';
9 } else {
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>';
13 echo '<fieldset>
14 <legend>'.$this->Context->GetDefinition('RegistrationManagement').'</legend>
15 '.$this->Get_Warnings().'
16 '.$this->Get_PostBackForm('frmRegistrationChange').'
17 <ul>
18 <li>
19 <label for="ddRoleID">'.$this->Context->GetDefinition('NewMemberRole').'</label>
20 '.$this->RoleSelect->Get().'
21 <p class="Description">'.$this->Context->GetDefinition('NewMemberRoleNotes').'</p>
22 </li>
23 <li>
24 <label for="ddApprovedRoleID">'.$this->Context->GetDefinition('ApprovedMemberRole').'</label>
25 '.$this->ApprovedRoleSelect->Get().'
26 <p class="Description">'.$this->Context->GetDefinition('ApprovedMemberRoleNotes').'</p>
27 </li>';
28 $this->CallDelegate('PostRegistrationOptions');
29 echo '</ul>
30 <div class="Submit">
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>
33 </div>
34 </form>
35 </fieldset>
36 </div>';