The process of adding a link (described at http://sourceforge.net/blog/linking-to-resources-hosted-elsewhere/) is unintuitive. I have to add the tool, with a label and mount point, and then I have to scroll down, click "Options" on the tool, and set the link address. This is unintuitive, particularly given that the first dialog says "link" in the Mount Point entry field, implying that I should put the link (URL) there.
Can we make this one step instead of two?
We also need to validate the URL. If it doesn't have http:// on it, then it becomes a relative redirect and goes into an infinite redirect loop.
Closed #788
ib/6057
Ok, now every tool can expose some of own options to installation dialog via
Application.config_on_install
I've also added ability to specify
validator
inConfigOption
and implemented validation for both "install" and "config" paths based on that.There are a lot of custom validation for other tools in subclasses of default app admin controller, I didn't touch them, since it's out of scope of this ticket.
There's some room for improvement here. E.g. implementing validation via ajax and displaying errors next to field. This should be pretty straightforward for "config" path, "install" will require a bit of refactoring, I guess. Perhaps we can create a ticket for that.
Looking great Igor!
What do you think about having the ability to pass 'help text' and maybe a 'verbose name' to give more context about the config option?
For example, I tried adding an install option for disabling one-click urls. Everything worked great, but the name of the option showed up as disable_merge.
Another example would be the new Url option in the External Link tool could be less confusing if it said "External Url" -- or something like that.
Also, and this isn't directly related to this ticket, but the existing help text for the
External Link
creation options is referring to mount points, which doesn't match up with the existing fields. Maybe we can change that or get rid of it all together?And is it possible to make the URL field be
type=url
? That would help without requiring any validation setup on our part.Closed #792. Updated
ib/6057
extra_attrs
dict, which will be added to html input attrs and url option uses it to specify type=urlVery nice Igor -- it looks great!