Fixed minor things and added missing file
[vanilla-miry.git] / themes / settings_category_remove.php
blob3a2f740e1cf097bf6eaa0712cd62b286bde06d4c
1 <?php
2 // Note: This file is included from the library/Vanilla/Vanilla.Control.CategoryForm.php control.
4 echo '<div id="Form" class="Account CategoryRemoveForm">
5 <fieldset>
6 <legend>'.$this->Context->GetDefinition('CategoryManagement').'</legend>'
7 .$this->Get_Warnings()
8 .$this->Get_PostBackForm("frmCategoryRemove")
9 .'<h2>'.$this->Context->GetDefinition("SelectCategoryToRemove").'</h2>
10 <ul>
11 <li>
12 <label for="sCategorySelect">'.$this->Context->GetDefinition('Categories').' <small>'.$this->Context->GetDefinition('Required').'</small></label>';
13 $this->CategorySelect->Attributes .= ' id="sCategorySelect"';
14 echo $this->CategorySelect->Get()
15 .'</li>
16 </ul>';
17 if ($CategoryID > 0) {
18 $this->CategorySelect->Attributes = ' id="sReplacementCategory"';
19 $this->CategorySelect->RemoveOption($this->CategorySelect->SelectedValue);
20 $this->CategorySelect->Name = 'ReplacementCategoryID';
21 $this->CategorySelect->SelectedValue = ForceIncomingInt('ReplacementCategoryID', 0);
22 echo '<h2>'.$this->Context->GetDefinition('SelectReplacementCategory').'</h2>
23 <ul>
24 <li>
25 <label for="sReplacementCategory">'.$this->Context->GetDefinition('ReplacementCategory').' <small>'.$this->Context->GetDefinition('Required').'</small></label>
26 '.$this->CategorySelect->Get().'
27 <p class="Description">'.$this->Context->GetDefinition('ReplacementCategoryNotes').'</p>
28 </li>
29 </ul>
30 <div class="Submit">
31 <input type="submit" name="btnSave" value="'.$this->Context->GetDefinition('Remove').'" class="Button SubmitButton RemoveCategoryButton" />
32 <a href="'.GetUrl($this->Context->Configuration, $this->Context->SelfUrl, '', '', '', '', 'PostBackAction=Categories').'" class="CancelButton">'.$this->Context->GetDefinition('Cancel').'</a>
33 </div>';
35 echo '</form>
36 </fieldset>
37 </div>';