Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The ability to add an addition owner on the create_list_request.tt2 #1781

Open
Ne-34 opened this issue Dec 14, 2023 · 1 comment
Open

The ability to add an addition owner on the create_list_request.tt2 #1781

Ne-34 opened this issue Dec 14, 2023 · 1 comment
Labels

Comments

@Ne-34
Copy link

Ne-34 commented Dec 14, 2023

We would like to require a user that is using the sympa web interface to create a list, to have two owners on the create_list_request form in order for the list to be created. How can we achieve that?

I know that users can add additional owners after the list has been created. We would like to make two owner mandatory on the form before the list is created.

Version

Sympa Version 6.2.72

Installation method

Source package

Expected behavior

Actual behavior

Additional information

@Ne-34 Ne-34 added the question label Dec 14, 2023
@ikedas
Copy link
Member

ikedas commented Jan 20, 2024

Hi @Ne-34 ,

You can add custom_input field(s) so that custom parameters entered in web form may be passed to the list creation templates.

  1. Add a form field with a name custom_input.ANYTHING to web_tt2/create_list_request.tt2, e.g.:
    <label for="additional_owner">Additional Owner:</label>
    <input type="email" id="additional_owner" name="custom_input.additional_owner">
  2. Add the custom parameter to config.tt2 file in the list creation template, e.g.:
    [% IF custom_input.additional_owner %]
    owner
      email [% custom_input.additional_owner %]
    
    [%END%]
    
  • For details on customization of templates see the manual.

Then the field "Additional Owner" appears in the list creation request form and both original and additional owners will be added to the resulting list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants