Packages: Disabled text input if unlimited already set (SKINS)

Version 1.55


For Reseller and User packages, if a package is saved with "unlimited" for a given parameter, when viewing that package, the associated input should be disabled. Previously, only the inodes entry was set to do this, mainly because it was unlimited by default already, while others are not (for new packages), but the change now applies to all DirectAdmin package items that can be set to be unlimited. Toggling the unlimited checkbox activates/disables the input item as usual. ================ SKINS: reseller/show_user_package.html admin/show_reseller_package.html Added tokens: BANDWIDTH_DISABLED, QUOTA_DISABLED, INODE_DISABLED(already there), VDOMAINS_DISABLED, NSUBDOMAINS_DISABLED, NEMAILS_DISABLED, NEMAILF_DISABLED, NEMAILML_DISABLED, NEMAILR_DISABLED, MYSQL_DISABLED, DOMAINPTR_DISABLED, FTP_DISABLED To the 2 skins, in their respective <input type=text> entries, so if a package item has unlimited set, it will be filled with 'disabled" by default, else blank: "".

Interested to try DirectAdmin? Get a 30-day Free Trial!