Ticket #2836 (closed enhancement: fixed)

Opened 21 months ago

Last modified 21 months ago

Need extra info for forms

Reported by: toby Owned by: toby
Priority: awaiting triage Milestone: demo phase 3
Component: ckan Keywords:
Cc: Repository: ckan
Theme: none

Description

like we have on the form here

http://s031.okserver.org:2375/harvest/new

you said it partly exists so maybe I just need some training

Change History

comment:1 Changed 21 months ago by aron.carroll

  • Owner changed from aron.carroll to toby
  • Status changed from new to assigned

Yeah you can pass an html block into a macro like so:

https://github.com/okfn/ckan/blob/2375-demo-theme-development/ckan/templates/package/snippets/resource_form.html#L44-48

What do you think? If it's useful I'll document it.

comment:2 Changed 21 months ago by toby

@aron,

I'd love it if we could pass it as an arg ie

form.input(...., extra_info=<something escaped if not literal()>)

also while we're at it I'd also really like

form.input(...., help_info=<something>) that would give a (?) icon with a :hover {display:block} div - that make sense?

comment:3 Changed 21 months ago by toby

I'd quite like some general css like this

<span class="hover-for-help">[thing to hover over]

<div class="help-text">Help text</div>

</span>

This is for the qa extension but seems like a general need

.hover-for-help .help-text{

display:none;

} .hover-for-help:hover .help-text{

display:block; position:absolute; padding:3px;

}

comment:4 Changed 21 months ago by toby

  • Status changed from assigned to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.