Similar to previous post by Impalah Shenzhou.
1. With regard to custom templates, is it possible to have conditional statements so that certain html i.e. (checkboxes for delete purposes) can be rendered if the user has the correct privileges.
At the moment I have it set up so that the user has to have special privileges in order to link through to a detailed view where they can make edits. Thats fine. I can also draw checkboxes with the primary key field populating the value attribute for delete purposes. What I cannot control is when these checkboxes get displayed. And they just become redundant on the page when the user does not have the correct privileges.
2. Also I have a date selector in my form which as you know expects dates in the following format: Y-m-d . But because I have specified my date element in fabrik to display like y-M-j-D it populates the date selector with this format in edit view which creates a conflict with the selector. And when I just click save the date reverts back to 0000-00-00 in the database. So I guess the question is how can I convert y-M-j-D into Y-m-d during edit mode.
I know thats a bit of a mouthful...sorry guys
1. With regard to custom templates, is it possible to have conditional statements so that certain html i.e. (checkboxes for delete purposes) can be rendered if the user has the correct privileges.
At the moment I have it set up so that the user has to have special privileges in order to link through to a detailed view where they can make edits. Thats fine. I can also draw checkboxes with the primary key field populating the value attribute for delete purposes. What I cannot control is when these checkboxes get displayed. And they just become redundant on the page when the user does not have the correct privileges.
2. Also I have a date selector in my form which as you know expects dates in the following format: Y-m-d . But because I have specified my date element in fabrik to display like y-M-j-D it populates the date selector with this format in edit view which creates a conflict with the selector. And when I just click save the date reverts back to 0000-00-00 in the database. So I guess the question is how can I convert y-M-j-D into Y-m-d during edit mode.
I know thats a bit of a mouthful...sorry guys