← Back to team overview

dhis2-users team mailing list archive

Re: Custom forms - Pagination/Section

 

Hi Lars,

 

Is this a specific functionality of version 2.11? 

 

Inspecting the code generated when displaying a Section Form we have

 

<table style="margin-bottom: 20px; display: table;" class="formSection">

(…)

</table>

 

So what I didn’t figure out is how just adding  <div class="formSection">
will make parameter “Filter on section” appear… doing what you said just
added a new border to my tables according to css 

 

.formSection {

    border: 1px solid #C0C0C0;

    border-radius: 3px 3px 3px 3px;

    padding: 10px;

}

 

Is this a sign that I’m not a developer J?!

 

Kind regards,

Paulo Grácio

 

 

From: Lars Helge Øverland [mailto:larshelge@xxxxxxxxx] 
Sent: quarta-feira, 3 de Abril de 2013 18:03
To: Paulo Grácio
Cc: dhis2-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Dhis2-users] Custom forms - Pagination/Section

 

Hi Paulo,

 

there is way for developers. Don't try this at home.

 

In custom form editor, view the source. Wrap the HTML contents that you want
to appear as a section in a div and add a class "formSection" to it,
something like:

 

<div class="formSection">

 

// Stuff that makes up a section here

 

</div>

 

You should now be able to use the section drop-down that appears for section
forms in data entry.

 

Lars

 

 

 

 

 

 

On Wed, Apr 3, 2013 at 5:24 PM, Paulo Grácio <pgracio@xxxxxxxxxxxxxxxxxxxx>
wrote:

Hello there,

 

Is there a simple way to add sections or pagination to a custom form? The
goal is to avoid scroll when dealing with long forms.

 

Kind regards,

 <mailto:*%20your-email%20*> Paulo Grácio
Technical Manager
(+258) 822 544 603 <tel:%28%2B258%29%20822%20544%20603>  

 <http://www.criticalsoftware.co.uk> Critical Software Mozambique
Dependable Technologies for Critical Systems

Critical Software Mozambique is a subsidiary of  <http://cmmiinstitute.com/>
Critical Software, a CMMI® Level 5 rated Company
CMMI® is registered in the USPTO by  <http://www.cmu.edu/> CMU

Rua Pereira Marinho, 179
Bairro de Sommerchield
Maputo
Moçambique
Phone: (+258) 214 951 45 <tel:%28%2B258%29%20214%20951%2045> 
Fax: (+258) 214 951 46 <tel:%28%2B258%29%20214%20951%2046> 

DISCLAIMER: This message is confidential and may contain privileged
information. It is for use only by the people or entities to whom it is
addressed. If you are not an intended recipient, you should not disclose,
distribute, copy, print, rely on or otherwise make use of this message. If
an addressing or transmission error has misdirected it to you we would be
grateful if you would please notify the sender by return, before deleting it
from your system.

 


_______________________________________________
Mailing list: https://launchpad.net/~dhis2-users
Post to     : dhis2-users@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~dhis2-users
More help   : https://help.launchpad.net/ListHelp

 


Follow ups

References