Modify

Ticket #399 (new enhancement)

Opened 18 months ago

Last modified 18 months ago

t:protect hides select but not options

Reported by: bc Owned by: mpo
Priority: major Milestone:
Component: modules/kauri-forms Version:
Keywords: Cc:

Description (last modified by bc) (diff)

When placing a select box inside a t:protect, it hides the select box but not the options inside.

template:

<t:protect access="ROLE_SUPER_USER">

<select kauri-role="input" />
<span kauri-role="messages" class="messages" />
<img src="${publicUri('service:/common-web')}/static-${lpbtools_buildkey}/image/play_16.png" style="cursor:pointer;"/>

</t:protect>

control:

'maandstatus-control': {

base : "selection-control",
label: "status",
options : {

uri: publicUri + "/business/code/maandstatus/" + admin.id,
valueTemplate: "{code}",
labelTemplate: "{langeTekst}"

}

}


Attachments

Change History

comment:1 Changed 18 months ago by bc

  • Description modified (diff)

comment:2 Changed 18 months ago by bc

  • Owner changed from bruno to mpo
  • Priority changed from blocker to major
  • Component changed from modules/kauri-security to modules/kauri-forms
  • Type changed from defect to enhancement

comment:3 Changed 18 months ago by bc

After creating this issue i recalled that we already had this discussion. This had something to do with the fact that t:protect is working on the template-level and as a result, the fconf doesn't know about it.
The solution was placing the html-template (<input kauri-idref ...>) inside a t:protect and also place the fconf describing the corresponding input field inside a t:protect.[[BR]]
But since the fconf is inside a js file I can't use t:protect so I have to use a variable with the correct role.
Maybe we could add some sort of protect-field to the fconf to deal with this kind of stuff?

View

Add a comment

Modify Ticket

Action
as new
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.