Page 1 of 1
Changing buttons
Posted: 2014-05-06 13:40
by eagle
The new Bootstrap theme:
1) Where do I change the icon used for downloading uploaded files? (Now it is globe - I would like to change it to a PDF icon).
2) Can I easily remove the Save CSV and filter buttons?
3) Can we translate the text of the buttons in these themes?
Thanks for all help!
Re: Changing buttons
Posted: 2014-05-07 01:59
by peebee
1) Where do I change the icon used for downloading uploaded files? (Now it is globe - I would like to change it to a PDF icon).
To edit using the pre-loaded Bootstrap Glphicons, edit the appropriate tablename_templateDV.html in the template folder. Find the Upload field you are looking for and you will see <i class="glyphicon glyphicon-globe" title="<%%VALUE(fieldname)%%>"></i>. Replace the "glyphicon-globe" with the desired available glyphicon from what's available here:
http://getbootstrap.com/components or here:
http://glyphicons.bootstrapcheatsheets.com
I don't think there is an actual PDF glyphicon available? If you want to use a pdf icon, you will have to load your own image and apply a class/CSS of your own.
2) Can I easily remove the Save CSV and filter buttons?
In Appgini, click on the table name in the left column and you'll see options under "Table View Settings" to enable/disable. You can also use a hook by adding the appropriate datalist object. You can read the options here:
http://bigprof.com/appgini/help/advance ... ist-object
3) Can we translate the text of the buttons in these themes?
Open the generated language.php and you'll see all of the language strings available for translation. Edit/Save/Replace
Hope that helps.
Re: Changing buttons
Posted: 2014-05-07 05:54
by eagle
Thanks a lot, peebee!
All three answers understood, tested and works exactly as I wanted
Thanks again!