View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0009807 | mantisbt | feature | public | 2008-11-13 03:04 | 2008-11-13 04:48 |
Reporter | tmatijas | Assigned To | |||
Priority | normal | Severity | trivial | Reproducibility | always |
Status | new | Resolution | open | ||
Platform | Any | OS | Any | OS Version | Any |
Product Version | 1.2.0a2 | ||||
Summary | 0009807: GOOD SOLUTION TO FILL-IN PROBLEM WHEN REPORTING ISSUE AND YOU WANT TO USE PROFILE | ||||
Description | I share this.. Perhaps something to add to next version of mantis.. I am using hidden styles to hide PLATFORM, OS, AND OS VERSION with a link that will show the feilds if no profile exists. I just didnt like the fact that when you select a profile, the feilds are not populated automatically. I found that confusing. So rather than reprogramming the logic, there is a very simple solution.
<style type="text/css"> Then just after it, put in the following: <a href="#" onClick="document.getElementById('platform').style.visibility='visible'; document.getElementById('os').style.visibility='visible'; document.getElementById('os_build').style.visibility='visible'; ">BY CLICKING HERE.</a> YOU ARE NOW DONE. This will basically hide the 3 feilds when the page is loaded. If the enduser does not see a profile in the dropdown, he/she can click the link to show the 3 feilds and enter the info manually. Note: If you like, you can make a link that hides the boxes again. Just use something like this: <a href="#" onClick="document.getElementById('platform').style.visibility='hidden'; document.getElementById('os').style.visibility='hidden'; document.getElementById('os_build').style.visibility='hidden'; ">HIDE ME.</a> If you want, you can use the config.inc file to define this style sheet quasi-code and then turn this "function" on and off. | ||||
Steps To Reproduce |
<style type="text/css"> Then just after it, put in the following: <a href="#" onClick="document.getElementById('platform').style.visibility='visible'; document.getElementById('os').style.visibility='visible'; document.getElementById('os_build').style.visibility='visible'; ">BY CLICKING HERE.</a> YOU ARE NOW DONE. This will basically hide the 3 feilds when the page is loaded. If the enduser does not see a profile in the dropdown, he/she can click the link to show the 3 feilds and enter the info manually. Note: If you like, you can make a link that hides the boxes again. Just use something like this: <a href="#" onClick="document.getElementById('platform').style.visibility='hidden'; document.getElementById('os').style.visibility='hidden'; document.getElementById('os_build').style.visibility='hidden'; ">HIDE ME.</a> If you want, you can use the config.inc file to define this style sheet quasi-code and then turn this "function" on and off. | ||||
Additional Information | Let me know what you think. | ||||
Tags | No tags attached. | ||||
Attached Files | THE_CODE.txt (1,319 bytes)
SORRY - MANTIS REPLACED MY TEXT CAUSE IT DOESNT LIKE LINKS.. IN BUG_REPORT_ADVANCED_PAGE.PHP, JUST DO A FIND AND REPLACE.. <?php echo lang_get( 'or_fill_in' ) ?> with the following: <!-- -------------------- --> <!-- BEFORE ORIGINAL CODE --> <!-- -------------------- --> <style type="text/css"> #platform {visibility:hidden;} #os {visibility:hidden;} #os_build {visibility:hidden;} </style> <!-- -------------------- --> <!-- ------------- --> <!-- ORIGINAL CODE --> <!-- ------------- --> <?php echo lang_get( 'or_fill_in' ) ?> <!-- ------------- --> <!-- ------------------- --> <!-- AFTER ORIGINAL CODE --> <!-- ------------------- --> <a href="#" onClick="document.getElementById('platform').style.visibility='visible'; document.getElementById('os').style.visibility='visible'; document.getElementById('os_build').style.visibility='visible'; document.getElementById('feild1').style.visibility='visible'; document.getElementById('feild2').style.visibility='visible'; document.getElementById('feild3').style.visibility='visible';">BY CLICKING HERE.</a> <!-- ------------------- --> DONT FORGET TO MODIFY STRINGS_ENGLISH.TXT ORIGINAL $s_or_fill_in = 'Or Fill In" NEW $s_or_fill_in = ''IF A PROFILE IS MISSING FROM DROPDOWN BOX ABOVE, FILL IT IN MANUALLY'; | ||||