Sha256: 5e45c41b42dc6f84e53728d6bf65de2fb30df5961f9520d51b26097185855869
Contents?: true
Size: 527 Bytes
Versions: 74
Compression:
Stored size: 527 Bytes
Contents
export default class { constructor(elem) { this.form = elem } // Fill in the group agent field with the given value setAgent(agent) { this.form.find('#permission_template_access_grants_attributes_0_agent_id').val(agent) } // Fill in the group access select box with the given value setAccess(access) { this.form.find('#permission_template_access_grants_attributes_0_access').val(access) } // Submit the group participants form submitForm() { this.form.submit() } }
Version data entries
74 entries across 74 versions & 1 rubygems