[component]
[description]Innlogging og redigeringslenker for personopplysningsbehandlinger og listinger[/description]
[def rc request-context()]
[def dict request.messages.get(request.lang)]
[if rc.principal = null]
[if request.lang = "no" || request.lang = "nn"]
Logg inn for ? opprette eller redigere behandlinger
[else]
Log in to create or edit processings
[endif]
[else]
[def res retrieve(rc.resource-uri)]
[if res.success]
[def resource res.value]
[if resource.resourcetype = "personal-data-listing"]
[val dict.register]
[elseif resource.resourcetype = "personal-data"]
[def auth authorize(request-context().resource-uri, "all")]
[if auth.success && auth.value]
[def editURL rc.url(resource.uri, "ajaxeditor.service")]
[if editURL.success]
[val dict.edit]
[endif]
[endif]
[endif]
[endif]
[endif]
[/component]
[messages]
no.register = Registrer ny behandling
nn.register = Registrer ny behandling
en.register = Register new processing
no.edit = Rediger behandling
nn.edit = Rediger behandling
en.edit = Edit processing
[/messages]