Standardize settings file naming and relocate documentation files Fix code quality violations from rsx:check Reorganize user_management directory into logical subdirectories Move Quill Bundle to core and align with Tom Select pattern Simplify Site Settings page to focus on core site information Complete Phase 5: Multi-tenant authentication with login flow and site selection Add route query parameter rule and synchronize filename validation logic Fix critical bug in UpdateNpmCommand causing missing JavaScript stubs Implement filename convention rule and resolve VS Code auto-rename conflict Implement js-sanitizer RPC server to eliminate 900+ Node.js process spawns Implement RPC server architecture for JavaScript parsing WIP: Add RPC server infrastructure for JS parsing (partial implementation) Update jqhtml terminology from destroy to stop, fix datagrid DOM preservation Add JQHTML-CLASS-01 rule and fix redundant class names Improve code quality rules and resolve violations Remove legacy fatal error format in favor of unified 'fatal' error type Filter internal keys from window.rsxapp output Update button styling and comprehensive form/modal documentation Add conditional fly-in animation for modals Fix non-deterministic bundle compilation 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
41 lines
4.1 KiB
JavaScript
Executable File
41 lines
4.1 KiB
JavaScript
Executable File
"use strict";
|
|
|
|
/**
|
|
* Add_User_Form
|
|
*
|
|
* Modal form component for inviting users to the current site.
|
|
* See add_user_form.jqhtml for full documentation.
|
|
*
|
|
* JavaScript Responsibilities:
|
|
* - Implements vals() method for form data extraction
|
|
* - Provides default role_id (Member = 3)
|
|
*/
|
|
class Add_User_Form extends Jqhtml_Component {
|
|
/**
|
|
* Get or set form values
|
|
* @param {Object} [values] - If provided, populates form with these values
|
|
* @returns {Object|null} - Form values if getting, null if setting
|
|
*/
|
|
// vals(values) {
|
|
// const form = this.$.find('form');
|
|
// if (values) {
|
|
// // Setter - populate form
|
|
// form.find('[name="email"]').val(values.email || '');
|
|
// form.find('[name="first_name"]').val(values.first_name || '');
|
|
// form.find('[name="last_name"]').val(values.last_name || '');
|
|
// form.find('[name="role_id"]').val(values.role_id || 3); // Default to Member
|
|
// form.find('[name="phone"]').val(values.phone || '');
|
|
// return null;
|
|
// } else {
|
|
// // Getter - extract form values
|
|
// return {
|
|
// email: form.find('[name="email"]').val(),
|
|
// first_name: form.find('[name="first_name"]').val(),
|
|
// last_name: form.find('[name="last_name"]').val(),
|
|
// role_id: parseInt(form.find('[name="role_id"]').val()) || 3,
|
|
// phone: form.find('[name="phone"]').val()
|
|
// };
|
|
// }
|
|
// }
|
|
}
|
|
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJBZGRfVXNlcl9Gb3JtIiwiSnFodG1sX0NvbXBvbmVudCJdLCJzb3VyY2VzIjpbInJzeC9hcHAvZnJvbnRlbmQvc2V0dGluZ3MvdXNlcl9tYW5hZ2VtZW50L2FkZF91c2VyX2Zvcm0uanMiXSwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBBZGRfVXNlcl9Gb3JtXG4gKlxuICogTW9kYWwgZm9ybSBjb21wb25lbnQgZm9yIGludml0aW5nIHVzZXJzIHRvIHRoZSBjdXJyZW50IHNpdGUuXG4gKiBTZWUgYWRkX3VzZXJfZm9ybS5qcWh0bWwgZm9yIGZ1bGwgZG9jdW1lbnRhdGlvbi5cbiAqXG4gKiBKYXZhU2NyaXB0IFJlc3BvbnNpYmlsaXRpZXM6XG4gKiAtIEltcGxlbWVudHMgdmFscygpIG1ldGhvZCBmb3IgZm9ybSBkYXRhIGV4dHJhY3Rpb25cbiAqIC0gUHJvdmlkZXMgZGVmYXVsdCByb2xlX2lkIChNZW1iZXIgPSAzKVxuICovXG5jbGFzcyBBZGRfVXNlcl9Gb3JtIGV4dGVuZHMgSnFodG1sX0NvbXBvbmVudCB7XG4gICAgLyoqXG4gICAgICogR2V0IG9yIHNldCBmb3JtIHZhbHVlc1xuICAgICAqIEBwYXJhbSB7T2JqZWN0fSBbdmFsdWVzXSAtIElmIHByb3ZpZGVkLCBwb3B1bGF0ZXMgZm9ybSB3aXRoIHRoZXNlIHZhbHVlc1xuICAgICAqIEByZXR1cm5zIHtPYmplY3R8bnVsbH0gLSBGb3JtIHZhbHVl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