Hi Mark, On 07/09/11 8:59 AM, Mark Holmes wrote: > All, > > I'm changing things on my PacketFence setup so that after the first > registration page, a second page is displayed which shows our AUP. > > I have changed the number of reg pages setting to 2 and created a > register_2.html page. > > All works OK, however when I go to register a machine, the register.html is > displayed and a get a button which I have to click which says '2/2'. How can > I change the text of that button to 'Continue'? >
If you don't mind having "Continue" on both pages then replacing [% button_text %] in the following string in the registration template (html/user/content/templates/register.html): <input type="submit" name="submit" value="[% button_text %]"> with Continue would do. Otherwise if you want "I accept" then "Continue" for example then you have two options: a) override generate_registration_page() in pf::web (into pf::web::custom) and modify $vars->{'button_text'} to your liking b) modify the register.html template by adding a condition like [% IF reg_page_content_file eq 'register_2.html' %] Continue [% ELSE %] [% button_text %] [% END %]. See Template Toolkit documentation for details about it's syntax (online or through perldoc Template::Toolkit) Cheers! -- Olivier Bilodeau obilod...@inverse.ca :: +1.514.447.4918 *115 :: www.inverse.ca Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence (www.packetfence.org) ------------------------------------------------------------------------------ Using storage to extend the benefits of virtualization and iSCSI Virtualization increases hardware utilization and delivers a new level of agility. Learn what those decisions are and how to modernize your storage and backup environments for virtualization. http://www.accelacomm.com/jaw/sfnl/114/51434361/ _______________________________________________ Packetfence-users mailing list Packetfence-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/packetfence-users