Add inline editing for licenses and copy license key button

- Add inline editing for status, expiry date, and domain fields
- Add copy-to-clipboard button for license keys
- Add AJAX handlers for inline editing with nonce verification
- Update LicenseManager with updateLicenseExpiry method
- Add new translations for inline editing strings (de_CH)
- Compile updated German translations to .mo file

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-21 23:13:07 +01:00
parent e88423e882
commit 024733bb31
8 changed files with 872 additions and 29 deletions

View File

@@ -2,7 +2,7 @@
# This file is distributed under the GPL-2.0-or-later.
msgid ""
msgstr ""
"Project-Id-Version: WC Licensed Product 0.0.8\n"
"Project-Id-Version: WC Licensed Product 0.0.10\n"
"Report-Msgid-Bugs-To: https://src.bundespruefstelle.ch/magdev/wc-licensed-product/issues\n"
"POT-Creation-Date: 2026-01-21T00:00:00+00:00\n"
"MIME-Version: 1.0\n"
@@ -865,3 +865,77 @@ msgstr ""
msgid "Customer"
msgstr ""
#. Admin - Inline Editing
msgid "Searching..."
msgstr ""
msgid "No results found"
msgstr ""
msgid "Saving..."
msgstr ""
msgid "Saved"
msgstr ""
msgid "Save failed"
msgstr ""
msgid "Are you sure you want to revoke this license? This action cannot be undone."
msgstr ""
msgid "Edit"
msgstr ""
msgid "Save"
msgstr ""
msgid "Status updated successfully."
msgstr ""
msgid "Expiry date updated successfully."
msgstr ""
msgid "License set to lifetime."
msgstr ""
msgid "Domain updated successfully."
msgstr ""
msgid "Invalid license ID."
msgstr ""
msgid "Invalid status."
msgstr ""
msgid "Invalid date format."
msgstr ""
msgid "Domain cannot be empty."
msgstr ""
msgid "Failed to update status."
msgstr ""
msgid "Failed to update expiry date."
msgstr ""
msgid "Failed to update domain."
msgstr ""
msgid "Failed to revoke license."
msgstr ""
msgid "Leave empty for lifetime"
msgstr ""
#. Admin - Order License Management
msgid "Saved!"
msgstr ""
msgid "Error saving. Please try again."
msgstr ""
msgid "Failed to update license domain."
msgstr ""