We have a slightly customized portal for guests and we expect them to enter 
their own phone and email.  Many of them are logging on with smartphones or 
iPads.

I REALLY want to be able to serve 


....
<div class="input-container">

<div>
<label for="fields[email]">Email</label>
<input type="email" name="fields[email]" id="fields[email]" value="">
</div>
</div>

...
<div class="input-container">

<div>
<label for="fields[telephone]">Telephone</label>
<input type="tel" name="fields[telephone]" id="fields[telephone]" value="">
</div>
</div>


Note the modified types to bring up the email and phone keypads on iPhone.  
This is such a big deal for usability on smartphones, I was surprised that it 
wasn't already present.

I'm not an expert on perl FormHandler (or in fact perl).  It seems to me that 
it supports Email but not Telephone types out of the box, so that we need to do 
two things:

1. To activate existing email support, add "has '+is_html5' => (default => 1);" in the 
right place - "html/captive-portal/lib/captiveportal/Form/Authentication.pm" works, but see 
below.
2. To add phone support, add a custom Telephone type in 
"html/pfappserver/lib/pfappserver/Form/Field/" and then cite it with has_field in 
"html/captive-portal/lib/captiveportal/Form/Authentication.pm"

Oh for the good old days when I could have just hacked the html plain text.  
This is becoming an enormous sledgehammer to crack a nut.  Can anyone help?  
This is a little beyond my skills now.

Ideally all of these changes would go in one of my new auth source module files 
(because I can't expect ops to maintain and apply diffs for every upgrade)....

html/pfappserver/lib/pfappserver/Form/Config/Authentication/Source/JLPvisitorEmail.pm
html/pfappserver/lib/pfappserver/Form/Config/PortalModule/Authentication/JLPvisitorEmail.pm
html/pfappserver/root/authentication/source/type/JLPvisitorEmail.tt
html/captive-portal/lib/captiveportal/PacketFence/DynamicRouting/Module/Authentication/JLPvisitorEmail.pm
html/captive-portal/lib/captiveportal/DynamicRouting/Module/Authentication/JLPvisitorEmail.pm
lib/pf/Authentication/Source/JLPvisitorEmailSource.pm



Thanks!
Greg
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today. http://sdm.link/xeonphi
_______________________________________________
PacketFence-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/packetfence-users

Reply via email to