Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Create Disk Selector in the Web UI

Featured Replies

Hey Everyone,

 

I am pretty new to the Plugin Development in Unraid and PHP in general. Currently I am trying to write a Disk Selector comparable to the Include/Exclude Disks in the Share Creation.

 

What I have so far:

DisplaySettings.page

_(utilization indicator disks)_:
: <select id="s1" name="usage_disks" multiple="multiple" style="display:none">
  <?foreach ($disks as $disk):?>
  <?=mk_option_check(_var($var,'usage_disks'),_var($disk,'name'),_var($disk,'name'))?>
  <?endforeach;?>
  </select>

Within the Page I can see that the selector gets correctly generated.

Screenshot2025-01-10at14_18_55.thumb.png.2a0654e2ac9a3ba526fe4ef5bdad57b4.png

 

But unlike the Share Creation Page, I am unable to create the span with the actual Selector Box. I can't find any hint within the Share Page where it is generated.

 

Note: I am using mk_option_check on purpose, I don't want to limit it to diskN. The limitation to the correct disks will follow at a later point.

 

Thank you very much in Advance!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.