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
[WIP] Improving GUI text in "Add DNS Zones" popup #782
Conversation
|
I'm not completely sure that the approach suggested in bug report is correct. That is why I suggested alternative in https://bugzilla.redhat.com/show_bug.cgi?id=1419834#c2 So before implementing it a small conversation could have happen to agree on the approach. |
| @@ -294,6 +294,11 @@ return { | |||
| height: 300, | |||
| sections: [ | |||
| { | |||
| name: 'dnszone_title', | |||
| label: 'Select the required zone type.', | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Except login, all strings in Web UI are localized. This method won't localize it. Web UI has a text module to get a string from API, resp. from translations loaded on startup. Search for text.get('@i18n:
|
Hello @felipevolpone , Layout attribute of the section might not be needed, but I would say that here it good to add it. It hides label of field and set width of the field to 100% of the dialog. (Simpler solutions below - B and C) B) (not tested) Another solution would be to set text field instead of html one and turn off the field in the same way as above and then set it non-writable and read_only. Then hide the label and there the C) Another solution will be to create new widget, which will work in the same way as If you have any question feel free to ask. :) |
|
Sorry I haven't refresh the page so I didn't see @pvoborni comment before I sent mine. The suggestion which Petr wrote into Bugzilla should be discussed with @MartinBasti and if I recall correctly he did not recommend it from point of view of DNS. |
|
Ok, when one field is not usuable because IP address or network address are also valid DNS zones, then the proper way is to follow patternfly design for this kind of workflows: http://www.patternfly.org/pattern-library/forms-and-controls/progressive-disclosure/ |
|
Yes, this pattern should be used. We already have a widget for this (without hiding not-selected area) and it is used i.e. in certmapdata adder dialog which could be opened from user's details page. Try to look for |
|
I'm dropping this PR because I'm focused on other tickets for now |
Improving usability of the "Add DNS Zones" popup in Web UI.
Ticket: https://pagure.io/freeipa/issue/6687