Project

General

Profile

Issue Page - project selection reacting on user input?

Added by hsc solutions over 4 years ago

Hi there,
is there any plugin or sth. else that allows us to change the project selection box at the issue page?
Basically we want that it works like the redmine global projects selection:
F.e. you enter a part of the project name and only matching project name are shown up (not all as it is now).

Thanks

Environment:
  Redmine version                4.0.2.stable
  Ruby version                   2.4.2-p198 (2017-09-14) [x86_64-linux]
  Rails version                  5.2.2
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
SCM:
  Subversion                     1.8.10
  Git                            2.1.4
  Filesystem                     
Redmine plugins:

Replies (3)

RE: Issue Page - project selection reacting on user input? - Added by Martin Loučka over 4 years ago

Hi,

just random thought: You could do it via jQuery UI Dropdown - either you can hardcode it into Redmine or you can use Tampermonkey plugin (Chrome, Firefox, Edge) and update the CSS/JS on the client's side on page load (I do this with many pages where I don't have administrator access and cannot change the code, so I just force my browser to behave differently). I know it's quick&dirty but hey - at least it is quick right?

Best,
Martin

RE: Issue Page - project selection reacting on user input? - Added by hsc solutions over 4 years ago

Hi Martin,
thank for your suggestion. We are hoster of this redmine and we can adjust it if needed (but we are not deep into the redmine ruby code);
Your approach is an interessing one!

Best,
Volker

RE: Issue Page - project selection reacting on user input? - Added by Martin Loučka over 4 years ago

Thanks - of course it would be better to code it into Redmine files as it would automatically roll onto each client station (the other way requires installation and maintenance of a script for each browser). But honestly I have no experience on how exactly code that in Redmine - but basically you need to link appropriate JS files on that page and then add certain CSS class to that select. And keep track of it because once you update Redmine it will go away since I won't be in the official src repo.

I guess you have to update app/views/issues/_form.html.erb somewhere around line 14 (branch 4.1-stable) to add the CSS class, and you can link the JS in that file too. Do you think you can share the updates if you succeed?

Best,
Martin

    (1-3/3)