EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #03252
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
[EP-tech] Re: Checkboxes
- To: eprints-tech@ecs.soton.ac.uk
- Subject: [EP-tech] Re: Checkboxes
- From: Ian Stuart <Ian.Stuart@ed.ac.uk>
- Date: Mon, 14 Jul 2014 10:59:38 +0100
On 14/07/14 10:46, Andrew Beeken wrote:
Hello! I’m wondering if I’m missing something but I can’t seem to find the correct type definition for adding a checkbox field to EPrints. Any pointers?
I couldn't make a list of checkboxes from a single hash/list The is what I do: foreachmy $card ( sort { $a->get_value('email') cmp $b->get_value('email') }
@postcards ) { my $div = $session->make_element('div'); my $label = $session->make_element('label'); $div->appendChild($label); my $input = $session->render_input_field( type => 'radio', name => 'rjb_email', value => $card->get_value('email'), class => 'ep_form_checkbox', onChange => 'autoSubmitEmail();' ); $label->appendChild($input); $label->appendChild( $session->make_text( q{ } . $card->get_value('email') . ' (watching ' . scalar @{ $card->get_value('repos') } . ' repositories) ' ) ); Does that help? -- Ian Stuart. Developer: ORI, RJ-Broker, and OpenDepot.org Bibliographics and Multimedia Service Delivery team, EDINA, The University of Edinburgh. http://edina.ac.uk/ This email was sent via the University of Edinburgh. The University of Edinburgh is a charitable body, registered in Scotland, with registration number SC005336.
- References:
- [EP-tech] Checkboxes
- From: Andrew Beeken <anbeeken@lincoln.ac.uk>
- [EP-tech] Checkboxes
- Prev by Date: [EP-tech] Checkboxes
- Next by Date: [EP-tech] Re: Proposal: EPrints Developers Powwow
- Previous by thread: [EP-tech] Checkboxes
- Next by thread: [EP-tech] Re: Checkboxes
- Index(es):