[pmwiki-users] Fox Forms and Show/Hide or ToggleHide

Scott Smith smackaysmith at gmail.com
Thu Jun 12 12:17:42 CDT 2008


Sorry about the partial. I didn't know if putting the full form in an email
would be bad form, like using all caps.

This is set: $EnablePostDirectives = true;

Form:

(:foxmessages:)
(:fox projectform put=top target='{$$projecttitle}' ptvupdate=1
template=ProjectTemplates#new redirect=1 upload=1 :)
(:input defaults source={$EditSource} :)

'''Hide from reports:'''(:input default $:hide Yes :)
(:input radio $:hide Yes :) Yes
(:input radio $:hide No :) No

'''Notify:'''
(:input checkbox foxnotify[] SystemManagers "Systems" :) Systems
(:input checkbox foxnotify[] DevManagers "Development" :) Development

'''Status:'''(:input default $:status Pending :)
(:input radio $:status Pending :) Pending
(:input radio $:status Active :) Active
(:input radio $:status Hold :) Hold
(:input radio $:status Completed :) Completed
(:input radio $:status Archived :) Archived

'''Area:'''(:input default $:area Project :)
(:input radio $:area Project :) Project
(:input radio $:area Maintenance :) Maintenance

|| '''Project Title:'''||(:input text projecttitle "{$:projecttitle}"
size=80:) ||
|| '''Project Manager:'''||(:input text name=$:leader size=80:) ||
|| '''IT Members:'''||(:input text name=$:itmembers size=80:) ||
|| '''Objective:'''||(:input text name=$:objective size=80:) ||
|| '''Implementation Date:'''||(:input text name=$:implementation size=80:)
||
|| '''Business Contact:'''||(:input text name=$:businesscontact size=80:) ||
|| '''Statement of Work:'''||(:input textarea name=$:work cols=80 rows=10:)
||
|| '''Itinerary:'''||(:input textarea name=$:itinerary cols=80 rows=10:) ||
|| '''Testing Procedures:'''||(:input textarea name=$:testing cols=80
rows=10:) ||
|| '''Post Mortem:'''||(:input textarea name=$:postmortem cols=80 rows=10:)
||
|| '''References:'''||(:input textarea name=$:references cols=80 rows=10:)
||
|| '''Author:'''||(:input text author {$Author} size=20:) ||
|| ||(:input submit post Enter:)||
(:foxend projectform:)


Template--

!!!#display for Project Templates
[@
[[#display]]
(:title {{$$projecttitle}}:)
>>right messageheader<<
%green%[-created {(ftime "%d %b %Y - %H:%M" @{{$$date}})}-] (:if expr ( auth
admin || author {$$author} ):) {[foxedit form=NewProject]}%% (:if:)
>>frame messagetext<<
||border=0 rules=rows frame=hsides
||'''Hide from reports:'''||{{$$hide}}||
||'''Status:'''||{{$$status}}||
||'''Area:'''||{{$$area}}||
||'''Project Title:'''||{{$$projecttitle}} ||
||'''Project Manager:'''||{{$$leader}} ||
||'''IT Members:'''||{{$$itmembers}} ||
||'''Objective:'''||{{$$objective}} ||
||'''Implementation Date:'''||{{$$implementation}} ||
||'''Business Contact:'''||{{$$businesscontact}} ||
!!!Statement of Work
{{$$work}}

!!!Itinerary
{{$$itinerary}}

!!!Testing Procedures
{{$$testing}}

!!!Post Mortem
{{$$postmortem}}

!!!References
{{$$references}}

>><<

-----
[[Projects]]

[[#displayend]]
@]


!!!#new for new project pages
This is used by form on NewProject page
[@
[[#new]]
#foxbegin#
(:title {$$projecttitle}:)
(:include ProjectTemplates#display date=$:date hide=$:hide status=$:status
area=$:area projecttitle=$:projecttitle leader=$:leader
itmembers=$:itmembers objective=$:objective implementation=$:implementation
businesscontact=$:businesscontact work=$:work itinerary=$:itinerary
testing=$:testing postmortem=$:postmortem references=$:references
author=$:author :)

(:author: {$$author}:)
(:date: {$$(timestamp)}:)
(:hide: {$$hide}:)
(:status: {$$status}:)
(:area: {$$area}:)
(:projecttitle: {$$projecttitle}:)
(:leader: {$$leader}:)
(:itmembers: {$$itmembers}:)
(:objective: {$$objective}:)
(:implementation: {$$implementation}:)
(:businesscontact: {$$businesscontact}:)
(:work: {$$work}:)
(:itinerary: {$$itinerary}:)
(:testing: {$$testing}:)
(:postmortem: {$$postmortem}:)
(:references: {$$references}:)
#foxend#
[[#newend]]
@]



On Thu, Jun 12, 2008 at 1:06 PM, Hans <design5 at softflow.co.uk> wrote:

> Wednesday, June 11, 2008, 7:09:00 PM, Scott Smith wrote:
>
> > Here's a snippet--
>
> > ||'''References:'''||(:input textarea cols=80 rows=10:) ||
>
> > So, you're saying it should be (:input textarea references
> "{$:references}"
> > cols=80 rows=10:)
>
> No. name=$:references refers to the PTV name 'references'
>
> Actually your form snippet works fine for me, like in this form
> (and no need for quotes anywhere):
> -----
> (:foxmessage:)
> (:fox frm ptvtarget={$FullName}:)
> ||
> ||'''References:'''||(:input textarea name=$:references cols=80 rows=10:)
> ||
> (:input submit post Enter:)
> (:foxend frm:)
>
> references: blabla
> -----
>
> With this form I can post directives of form (:....:),
> if I have set in config
>   $EnablePostDirectives = true;
>
> If I don't set this, then the directive gets 'disarmed' by converting
> the (: .... :) into (&#x3a; ..... #x3a;)
>
> If it does not work for you, then please provide a complete example!
> Parts of forms are not much use for analising!
>
>
>  ~Hans
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20080612/a5bc658d/attachment.html 


More information about the pmwiki-users mailing list