On 03-Feb-08, at 1:02 PM, Glenn_NZ wrote:

> I am not modifying form.as_p() in the view.  Should I be?

you shouldnt be. If you want fine-grained control over the  
positioning of parts of the form, you have to break the form up in  
the template and manually position the elements. Like what is done in  
this snippet:

{% for field in form %}
        <dt>{{ field.label_tag }}</dt>
        {% ifequal field.name 'slides' %}
                <dd><font color="red">Slides only in foss formats - no 
ppt</font></dd>
                <dd><a href="{{ form.data.flurl }}">{{ form.data.flname 
}}</a></dd>
        {% endifequal %}
        <dd>{{ field }}
        {% ifequal field.name 'speaker' %}
        <a name="add" href="#" onclick="move_from_to 
('id_speaker','id_confirm_speaker');">
        Add</a>
        <a name="remove" href="#" onclick="move_from_to 
('id_confirm_speaker','id_speaker');">
        Remove</a>
        <select id="id_confirm_speaker" name="confirm_speaker"  
multiple="multiple">
        {% for speaker_id,speaker_last_name,speaker_first_name in  
speaker_details %}
        <option value="{{ speaker_id }}">{{ speaker_last_name }}  
{{ speaker_first_name }}
        </option>
{% endfor %}
        </select>       
        <br />Hold down "Control", to select multiple speakers and Add.
        {% endifequal %}                
        {% if field.help_text %}<dd>{{ field.help_text }}</dd>{% endif %}
        {% if field.errors %}<dd>{{ field.errors }}</dd>{% endif %}
{% endfor %}


-- 

regards
kg
http://lawgon.livejournal.com
http://nrcfosshelpline.in/web/
Foss Conference for the common man: http://registration.fossconf.in/web/



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to