modifcation affichage des demandes
Added by Fabrice Gantois almost 6 years ago
bonjour
je souhaite savoir comment modifier l'affichage par défaut des champs dans une demande
je veux remonter des champs personnalisés en début de formulaire ; ci-joint un copie d'écrans de ce que je veux réaliser
merci d’avance pour vos réponses.
----------------
hello
I want to change the fields order of the ticket form.
I want to go up fiew personalized fields. I add a screen copy of the result that I want
Thanks in advance. Best regards.
Replies (1)
RE: modifcation affichage des demandes - Added by Mayama Takeshi almost 6 years ago
You could run javascript code to reorder the fields.
For example, here is my original field order:
Now, if I want to change the order to have field Assignee just after the field Project, I would check the source code of the HTML page, get the ID of the fields and use jquery to reorganize them.
So in the web console I ran this:
$("#issue_assigned_to_id").parent().insertAfter($("#issue_project_id").parent());
which resulted in this:
So you just need a way to automatically run this kind of javascript code when the page loads which can be done with this plugin:
https://github.com/martin-denizet/redmine_custom_js
Obs: your javascript code should also check if you are in a issues page to not have collateral effects on other pages that might have the same field ids (unlikely but it could happen).
RedmineBefore.png (31.9 KB) RedmineBefore.png | |||
RedmineAfter.png (32.5 KB) RedmineAfter.png |