Anthony Luth Posted February 9, 2015 Posted February 9, 2015 So I have the template working for the bug tracker, but what I am trying to accomplish is creating the filters and changing the button from Add new record to Report Bug... any help???http://imageshack.com/a/img909/1975/3Eh56k.png
Cemmos Posted February 9, 2015 Posted February 9, 2015 Changing the button text is as simple as changing the language fields while creating or editing your database: For the filters, you want to add a new Field. Make sure you allow filtering, as shown above. Change the keys and values, title, and everything else to whatever you'd like. It should be set as a selection box or radio. In the Display Options tab, you'll want to select "Custom" for Listing View Format and Display View Format. That will display the text area where you can customize your tags. {{if ($formValue == 'pending')}} <span class='ipsBadge ipsBadge_style3 ipsPos_right'>{$label}</span> {{elseif ($formValue == 'closed')}} <span class='ipsBadge ipsBadge_style6 ipsPos_right'>{$label}</span> {{elseif ($formValue == 'resolved')}} <span class='ipsBadge ipsBadge_style4 ipsPos_right'>{$label}</span> {{endif}} Add the above to both the Listing View Format and Display View Format. Change the $formValue depending on what keys you've used while setting up your General Options.
Anthony Luth Posted February 9, 2015 Author Posted February 9, 2015 If i used Pending Fixed and Closed should it look like this:{{if ($formValue == 'pending')}} <span class='ipsBadge ipsBadge_style5 ipsPos_right'>{$label}</span> {{elseif ($formValue == 'fixed')}} <span class='ipsBadge ipsBadge_style4 ipsPos_right'>{$label}</span> {{elseif ($formValue == 'closed')}} <span class='ipsBadge ipsBadge_style6 ipsPos_right'>{$label}</span> {{endif}}
Anthony Luth Posted February 9, 2015 Author Posted February 9, 2015 The proper format I needed was:{{if ($value == 'pending')}} <span class='ipsBadge ipsBadge_style5 ipsPos_right'>Pending</span> {{elseif ($value == 'fixed')}} <span class='ipsBadge ipsBadge_style4 ipsPos_right'>Fixed</span> {{elseif ($value == 'closed')}} <span class='ipsBadge ipsBadge_style6 ipsPos_right'>Closed</span> {{endif}}
Recommended Posts
Archived
This topic is now archived and is closed to further replies.