Jump to content

Create Disk Selector in the Web UI


Bastian

Recommended Posts

Posted

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...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...