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

sort the inputs of an app #84

Open
Trophime opened this issue Jun 4, 2018 · 2 comments
Open

sort the inputs of an app #84

Trophime opened this issue Jun 4, 2018 · 2 comments
Assignees

Comments

@Trophime
Copy link

Trophime commented Jun 4, 2018

Hi,
is there a way or can you provide one to sort the inputs so that we can put the most significant at the top when displaying in "Create App Instance"?

for instance, "HPC primary" and "Dataset.." appears in front then it seems to be lexical order...

We could have a system similar to Onelab
They prepends field name by a number which is not shown. This way we can still use lexical order...

@Trophime
Copy link
Author

Trophime commented Jun 5, 2018

Looking into the code: https://github.com/MSO4SC/MSOPortal/blob/master/portal/experimentstool/templates/experimentstool.html#L340

I think that we can do the same as for dataset from line 320 and remove
the leading digit of the input using something like:

append(
         $(document.createElement('label')).attr({
             for: "input_" + input.name,
             title: input.description
           }).text(input.replace(^/\d+/g, ''),...

@Trophime
Copy link
Author

Trophime commented Jun 5, 2018

this may be a quick way to somehow target the oneclick user by sending the advanced params to the end of the list...

Of course, in the long run I would prefer that the advanced params are shown in a separate page
@emepetres What you think?

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

No branches or pull requests

2 participants