Bug 32021: Don't show 'appear in position' for Pages

The 'Appear in position' option isn't relevant for Pages, so we should
hide it when not adding or modifying a Page.

To test:

1) Add a new Page
2) Confirm the 'Appear in position' option does not show
3) Add a new News item or HTML customisation
4) Confirm the 'Appear in position' option DOES show

Sponsored-by: Catalyst IT
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomás Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Aleisha Amohia 2023-02-15 14:58:33 +13:00 committed by Tomas Cohen Arazi
parent b9123af286
commit faf66db7b1
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
1 changed files with 2 additions and 0 deletions

View File

@ -256,6 +256,7 @@
[% END %]
</div>
</li>
[% UNLESS category == 'pages' %]
<li>
<label for="number">Appear in position: </label>
[% IF ( additional_content.number ) %]
@ -264,6 +265,7 @@
<input id="number" size="3" name="number" type="text" />
[% END %]
</li>
[% END %]
</ol>
</fieldset>