Re: [PacketFence-users] tweaking the create users page

2015-10-14 Thread Morris, Andi
That’s got it, thanks. I just needed the following line:


All seems to be working perfectly now. Thanks very much.


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 13 October 2015 19:45
To: ML PF <packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

What is the “expiration” action type ?

Can you send me the whole file so I see what you are trying to do.

If you try to hide the “registration window” section use the followings:




For the “actions” section, the followings:







Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 13, 2015, at 9:22 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek,
That’s been a really big help and I’m nearly there. What is the format for the 
date field? I’ve tried the following, but I get errors:




The errors I get when creating a user are:
Error! Expiration field is required
Error! ‘expiration’ is not a valid value

The values for dates I’ve tried are:
“-mm-dd”
“/mm/dd”
“-mm-dd hh:mm”
“/mm/dd hh:mm”

Cheers,
Andi


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 18:00
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I’ll keep looking for ways to give the users a default unreg date.

Here’s how I usually do it:




Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 8, 2015, at 12:04 PM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
changed the order. That means that the Actions now shows ‘Set access duration’ 
by default on the create screen, perfect.

I’ll keep looking for ways to give the users a default unreg date.

Cheers,
Andi

From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk]
Sent: 08 October 2015 16:32
To: 
packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

Thanks Derek,
I can see how that would work for a simple field such as Name, but I can’t work 
it out for the unregistration date.

  77   
   78 [% l('Registration 
Window') %]
   79 
   80   [% form.field('valid_from').render_element | none %] 
   81   [% form.field('expiration').render_element | none %]
   82 
   83   


I still need to swap access duration for the set role action too.


   85   

   86 [% l('Actions') %]

   87 

   88   

   89 

   90   [% FOREACH action IN form.field('actions').fields -%]

   91   <tr[% ' class="hidden"' IF loop.last %]>

   92 

   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 %][% 
END %]

   94 

   95 

   96   [% action.field('type').render_element | none %]

   97   [% action.field('value').render_element | none %]

   98 

   99 

  100   

  101   

  102 

  103   

  104   [% END -%]

  105   

  106 

  107   

  108 

  109   


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 15:44
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I managed to hide the registration window from view, but the user couldn’t be 
created as this seems to be a required field. Is there a way I can make all 
created users have a certain registration window by default? I’m finding that 
having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 7, 2015, at 11:38 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be 

Re: [PacketFence-users] tweaking the create users page

2015-10-14 Thread Derek Wuelfrath
Excellent!

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

> On Oct 14, 2015, at 4:51 AM, Morris, Andi <amor...@cardiffmet.ac.uk> wrote:
> 
> That’s got it, thanks. I just needed the following line:
> 
>  
> All seems to be working perfectly now. Thanks very much.
>  
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca] 
> Sent: 13 October 2015 19:45
> To: ML PF <packetfence-users@lists.sourceforge.net>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Andi,
>  
> What is the “expiration” action type ?
>  
> Can you send me the whole file so I see what you are trying to do.
>  
> If you try to hide the “registration window” section use the followings:
>  
> 
> 
>  
> For the “actions” section, the followings:
>  
> 
> 
>  
> 
> 
> 
> Cheers!
> dw.
>  
> —
> Derek Wuelfrath
> dwuelfr...@inverse.ca <mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 
> (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
> PacketFence (www.packetfence.org <http://www.packetfence.org/>)
>  
> On Oct 13, 2015, at 9:22 AM, Morris, Andi <amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>> wrote:
>  
> Thanks Derek,
> That’s been a really big help and I’m nearly there. What is the format for 
> the date field? I’ve tried the following, but I get errors:
>  
> 
> 
>  
> The errors I get when creating a user are:
> Error! Expiration field is required
> Error! ‘expiration’ is not a valid value
>  
> The values for dates I’ve tried are:
> “-mm-dd”
> “/mm/dd”
> “-mm-dd hh:mm”
> “/mm/dd hh:mm”
>  
> Cheers,
> Andi
>  
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca 
> <mailto:dwuelfr...@inverse.ca>] 
> Sent: 08 October 2015 18:00
> To: ML PF <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> I’ll keep looking for ways to give the users a default unreg date.
>  
> Here’s how I usually do it:
>  
> 
> 
> 
> Cheers!
> dw.
>  
> —
> Derek Wuelfrath
> dwuelfr...@inverse.ca <mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 
> (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
> PacketFence (www.packetfence.org <http://www.packetfence.org/>)
>  
> On Oct 8, 2015, at 12:04 PM, Morris, Andi <amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>> wrote:
>  
> Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
> changed the order. That means that the Actions now shows ‘Set access 
> duration’ by default on the create screen, perfect.
>  
> I’ll keep looking for ways to give the users a default unreg date.
>  
> Cheers,
> Andi
>  
> From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>] 
> Sent: 08 October 2015 16:32
> To: packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Thanks Derek,
> I can see how that would work for a simple field such as Name, but I can’t 
> work it out for the unregistration date.
>  
>   77   
>  <>   78 [% l('Registration 
> Window') %]
>  <>   79 
>  <>   80   [% form.field('valid_from').render_element | none %]  class="icon-arrow-right">
>  <>   81   [% form.field('expiration').render_element | none %]
>  <>   82 
>  <>   83   
>  
>  
> I still need to swap access duration for the set role action too.
>  
>85   
>  <>   86 [% l('Actions') %]
>  <>   87 
>  <>   88   
>  <>   89 
>  <>   90   [% FOREACH action IN form.field('actions').fields -%]
>  <>   91   <tr[% ' class="hidden"' IF loop.last %]>
>  <>   92 
>  <>   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 
> %][% END %]
>  <>   94 
>  <>   95 
>  <>   96   [% action.field('type').render_element | none %]
>  <>   97       [% action.field('value').render_element | none %]
>  <>   98 
>  <>   99 
>  <>  100

Re: [PacketFence-users] tweaking the create users page

2015-10-13 Thread Morris, Andi
Thanks Derek,
That’s been a really big help and I’m nearly there. What is the format for the 
date field? I’ve tried the following, but I get errors:




The errors I get when creating a user are:
Error! Expiration field is required
Error! ‘expiration’ is not a valid value

The values for dates I’ve tried are:
“-mm-dd”
“/mm/dd”
“-mm-dd hh:mm”
“/mm/dd hh:mm”

Cheers,
Andi


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 18:00
To: ML PF <packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

I’ll keep looking for ways to give the users a default unreg date.

Here’s how I usually do it:




Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 8, 2015, at 12:04 PM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
changed the order. That means that the Actions now shows ‘Set access duration’ 
by default on the create screen, perfect.

I’ll keep looking for ways to give the users a default unreg date.

Cheers,
Andi

From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk]
Sent: 08 October 2015 16:32
To: 
packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

Thanks Derek,
I can see how that would work for a simple field such as Name, but I can’t work 
it out for the unregistration date.

  77   
   78 [% l('Registration 
Window') %]
   79 
   80   [% form.field('valid_from').render_element | none %] 
   81   [% form.field('expiration').render_element | none %]
   82 
   83   


I still need to swap access duration for the set role action too.


   85   

   86 [% l('Actions') %]

   87 

   88   

   89 

   90   [% FOREACH action IN form.field('actions').fields -%]

   91   <tr[% ' class="hidden"' IF loop.last %]>

   92 

   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 %][% 
END %]

   94 

   95 

   96   [% action.field('type').render_element | none %]

   97   [% action.field('value').render_element | none %]

   98 

   99 

  100   

  101   

  102 

  103   

  104   [% END -%]

  105   

  106 

  107   

  108 

  109   


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 15:44
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I managed to hide the registration window from view, but the user couldn’t be 
created as this seems to be a required field. Is there a way I can make all 
created users have a certain registration window by default? I’m finding that 
having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 7, 2015, at 11:38 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be created as this seems to be a required field. Is there 
a way I can make all created users have a certain registration window by 
default? I’m finding that having the registration time, and access duration is 
confusing to users.

Cheers,
Andi

From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 01 October 2015 21:39
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would need to create some custom code.

You could have a look at html/pfappserver/root/user/create.tt and add some 
“hidden” fields.

There’s of course, may have more file to check but basically, that should do it 
:)

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: 
www.inverse.ca<http://www.inverse.ca/>
+1.514.447.4918 (x110) :: +1.866.353.6

Re: [PacketFence-users] tweaking the create users page

2015-10-13 Thread Derek Wuelfrath
Andi,

What is the “expiration” action type ?

Can you send me the whole file so I see what you are trying to do.

If you try to hide the “registration window” section use the followings:




For the “actions” section, the followings:







Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

> On Oct 13, 2015, at 9:22 AM, Morris, Andi <amor...@cardiffmet.ac.uk> wrote:
> 
> Thanks Derek,
> That’s been a really big help and I’m nearly there. What is the format for 
> the date field? I’ve tried the following, but I get errors:
>  
> 
> 
>  
> The errors I get when creating a user are:
> Error! Expiration field is required
> Error! ‘expiration’ is not a valid value
>  
> The values for dates I’ve tried are:
> “-mm-dd”
> “/mm/dd”
> “-mm-dd hh:mm”
> “/mm/dd hh:mm”
>  
> Cheers,
> Andi
>  
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca] 
> Sent: 08 October 2015 18:00
> To: ML PF <packetfence-users@lists.sourceforge.net>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> I’ll keep looking for ways to give the users a default unreg date.
>  
> Here’s how I usually do it:
>  
> 
> 
> 
> Cheers!
> dw.
>  
> —
> Derek Wuelfrath
> dwuelfr...@inverse.ca <mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 
> (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
> PacketFence (www.packetfence.org <http://www.packetfence.org/>)
>  
> On Oct 8, 2015, at 12:04 PM, Morris, Andi <amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>> wrote:
>  
> Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
> changed the order. That means that the Actions now shows ‘Set access 
> duration’ by default on the create screen, perfect.
>  
> I’ll keep looking for ways to give the users a default unreg date.
>  
> Cheers,
> Andi
>  
> From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>] 
> Sent: 08 October 2015 16:32
> To: packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Thanks Derek,
> I can see how that would work for a simple field such as Name, but I can’t 
> work it out for the unregistration date.
>  
>   77   
>  <>   78 [% l('Registration 
> Window') %]
>  <>   79 
>  <>   80   [% form.field('valid_from').render_element | none %]  class="icon-arrow-right">
>  <>   81   [% form.field('expiration').render_element | none %]
>  <>   82 
>  <>   83   
>  
>  
> I still need to swap access duration for the set role action too.
>  
>85   
>  <>   86 [% l('Actions') %]
>  <>   87 
>  <>   88   
>  <>   89 
>  <>   90   [% FOREACH action IN form.field('actions').fields -%]
>  <>   91   <tr[% ' class="hidden"' IF loop.last %]>
>  <>   92 
>  <>   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 
> %][% END %]
>  <>   94 
>  <>   95 
>  <>   96   [% action.field('type').render_element | none %]
>  <>   97   [% action.field('value').render_element | none %]
>  <>   98 
>  <>   99 
>  <>  100    class="icon-plus-sign">
>  <>  101href="#delete">
>  <>  102 
>  <>  103   
>  <>  104   [% END -%]
>  <>  105   
>  <>  106 
>  <>  107   
>  <>  108 
>  <>  109   
>  
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca 
> <mailto:dwuelfr...@inverse.ca>] 
> Sent: 08 October 2015 15:44
> To: ML PF <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> I managed to hide the registration window from view, but the user couldn’t be 
> created as this seems to be a required field. Is there a way I can make all 
> created users have a certain registration window by default? I’m finding that 
> having the registration time, and access duration is confusing to users.
>  
> Can you make the fields “hidden” with a value ?
> Th

Re: [PacketFence-users] tweaking the create users page

2015-10-13 Thread Morris, Andi
Aha, I think I now see that this is not because of the format of the date, but 
because the ‘expiration’ field isn’t declared as an Action.

From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk]
Sent: 13 October 2015 14:33
To: packetfence-users@lists.sourceforge.net
Subject: Re: [PacketFence-users] tweaking the create users page

Thanks Derek,
That’s been a really big help and I’m nearly there. What is the format for the 
date field? I’ve tried the following, but I get errors:




The errors I get when creating a user are:
Error! Expiration field is required
Error! ‘expiration’ is not a valid value

The values for dates I’ve tried are:
“-mm-dd”
“/mm/dd”
“-mm-dd hh:mm”
“/mm/dd hh:mm”

Cheers,
Andi


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 18:00
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I’ll keep looking for ways to give the users a default unreg date.

Here’s how I usually do it:




Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 8, 2015, at 12:04 PM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
changed the order. That means that the Actions now shows ‘Set access duration’ 
by default on the create screen, perfect.

I’ll keep looking for ways to give the users a default unreg date.

Cheers,
Andi

From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk]
Sent: 08 October 2015 16:32
To: 
packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

Thanks Derek,
I can see how that would work for a simple field such as Name, but I can’t work 
it out for the unregistration date.

  77   
   78 [% l('Registration 
Window') %]
   79 
   80   [% form.field('valid_from').render_element | none %] 
   81   [% form.field('expiration').render_element | none %]
   82 
   83   


I still need to swap access duration for the set role action too.


   85   

   86 [% l('Actions') %]

   87 

   88   

   89 

   90   [% FOREACH action IN form.field('actions').fields -%]

   91   <tr[% ' class="hidden"' IF loop.last %]>

   92 

   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 %][% 
END %]

   94 

   95 

   96   [% action.field('type').render_element | none %]

   97   [% action.field('value').render_element | none %]

   98 

   99 

  100   

  101   

  102 

  103   

  104   [% END -%]

  105   

  106 

  107   

  108 

  109   


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 15:44
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I managed to hide the registration window from view, but the user couldn’t be 
created as this seems to be a required field. Is there a way I can make all 
created users have a certain registration window by default? I’m finding that 
having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 7, 2015, at 11:38 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be created as this seems to be a required field. Is there 
a way I can make all created users have a certain registration window by 
default? I’m finding that having the registration time, and access duration is 
confusing to users.

Cheers,
Andi

From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 01 October 2015 21:39
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would

Re: [PacketFence-users] tweaking the create users page

2015-10-08 Thread Derek Wuelfrath
> I managed to hide the registration window from view, but the user couldn’t be 
> created as this seems to be a required field. Is there a way I can make all 
> created users have a certain registration window by default? I’m finding that 
> having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

> On Oct 7, 2015, at 11:38 AM, Morris, Andi <amor...@cardiffmet.ac.uk> wrote:
> 
> Thanks Derek.
>  
> That was really helpful. I managed to hide the registration window from view, 
> but the user couldn’t be created as this seems to be a required field. Is 
> there a way I can make all created users have a certain registration window 
> by default? I’m finding that having the registration time, and access 
> duration is confusing to users.
>  
> Cheers,
> Andi
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca 
> <mailto:dwuelfr...@inverse.ca>] 
> Sent: 01 October 2015 21:39
> To: ML PF <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Andi,
>  
> It is indeed possible to do it (it’s like zombocom, everything is possible). 
> I actually did it for some specific use cases
>  
> You would need to create some custom code.
>  
> You could have a look at html/pfappserver/root/user/create.tt and add some 
> “hidden” fields.
>  
> There’s of course, may have more file to check but basically, that should do 
> it :)
>  
> Cheers!
> dw.
>  
> —
> Derek Wuelfrath
> dwuelfr...@inverse.ca <mailto:dwuelfr...@inverse.ca> :: www.inverse.ca 
> <http://www.inverse.ca/>
> +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
> PacketFence (www.packetfence.org <http://www.packetfence.org/>)
>  
> On Oct 1, 2015, at 11:45, Morris, Andi <amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>> wrote:
>  
> Is there a way to remove the registration window option and make two actions 
> appear by default (access duration and role) in the create users window? I’m 
> trying to make this page as simple as possible for the staff creating users.
>  
> Cheers,
> Andi
>  
> -
> Andi Morris
> IT Security Officer
> Cardiff Metropolitan University
> T: 02920 205720
> E: amor...@cardiffmet.ac.uk <mailto:amor...@cardiffmet.ac.uk>
> --
>  
> 
>  <http://www.cardiffmet.ac.uk/cardiffmet150> 
> --
> ___
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net 
> <mailto:PacketFence-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> <https://lists.sourceforge.net/lists/listinfo/packetfence-users>
>  
> --
> Full-scale, agent-less Infrastructure Monitoring from a single dashboard
> Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
> Physical-Virtual-Cloud Infrastructure monitoring from one console
> Real user monitoring with APM Insights and performance trend reports 
> Learn More 
> http://pubads.g.doubleclick.net/gampad/clk?id=247754911=/4140___
>  
> <http://pubads.g.doubleclick.net/gampad/clk?id=247754911=/4140___>
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net 
> <mailto:PacketFence-users@lists.sourceforge.net>
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> <https://lists.sourceforge.net/lists/listinfo/packetfence-users>

--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


Re: [PacketFence-users] tweaking the create users page

2015-10-08 Thread Morris, Andi
Thanks Derek,
I can see how that would work for a simple field such as Name, but I can’t work 
it out for the unregistration date.

  77   
   78 [% l('Registration 
Window') %]
   79 
   80   [% form.field('valid_from').render_element | none %] 
   81   [% form.field('expiration').render_element | none %]
   82 
   83   


I still need to swap access duration for the set role action too.


   85   

   86 [% l('Actions') %]

   87 

   88   

   89 

   90   [% FOREACH action IN form.field('actions').fields -%]

   91   <tr[% ' class="hidden"' IF loop.last %]>

   92 

   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 %][% 
END %]

   94 

   95 

   96   [% action.field('type').render_element | none %]

   97   [% action.field('value').render_element | none %]

   98 

   99 

  100   

  101   

  102 

  103   

  104   [% END -%]

  105   

  106 

  107   

  108 

  109   


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 15:44
To: ML PF <packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

I managed to hide the registration window from view, but the user couldn’t be 
created as this seems to be a required field. Is there a way I can make all 
created users have a certain registration window by default? I’m finding that 
having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 7, 2015, at 11:38 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be created as this seems to be a required field. Is there 
a way I can make all created users have a certain registration window by 
default? I’m finding that having the registration time, and access duration is 
confusing to users.

Cheers,
Andi

From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 01 October 2015 21:39
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would need to create some custom code.

You could have a look at html/pfappserver/root/user/create.tt and add some 
“hidden” fields.

There’s of course, may have more file to check but basically, that should do it 
:)

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: 
www.inverse.ca<http://www.inverse.ca/>
+1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 1, 2015, at 11:45, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Is there a way to remove the registration window option and make two actions 
appear by default (access duration and role) in the create users window? I’m 
trying to make this page as simple as possible for the staff creating users.

Cheers,
Andi

-
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>
--



<http://www.cardiffmet.ac.uk/cardiffmet150> 
--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net<mailto:PacketFence-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/packetfence-users

--
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports
Learn More 
http://pubads.g.doubleclick.net/gampad/clk?id=247754911=/4140___
PacketFence-users mailing list
PacketFence-users@lists.so

Re: [PacketFence-users] tweaking the create users page

2015-10-08 Thread Derek Wuelfrath
> I’ll keep looking for ways to give the users a default unreg date.

Here’s how I usually do it:




Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca :: +1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

> On Oct 8, 2015, at 12:04 PM, Morris, Andi <amor...@cardiffmet.ac.uk> wrote:
> 
> Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
> changed the order. That means that the Actions now shows ‘Set access 
> duration’ by default on the create screen, perfect.
>  
> I’ll keep looking for ways to give the users a default unreg date.
>  
> Cheers,
> Andi
>  
> From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk] 
> Sent: 08 October 2015 16:32
> To: packetfence-users@lists.sourceforge.net
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Thanks Derek,
> I can see how that would work for a simple field such as Name, but I can’t 
> work it out for the unregistration date.
>  
>   77   
>  <>   78 [% l('Registration 
> Window') %]
>  <>   79 
>  <>   80   [% form.field('valid_from').render_element | none %]  class="icon-arrow-right">
>  <>   81   [% form.field('expiration').render_element | none %]
>  <>   82 
>  <>   83   
>  
>  
> I still need to swap access duration for the set role action too.
>  
>85   
>  <>   86 [% l('Actions') %]
>  <>   87 
>  <>   88   
>  <>   89 
>  <>   90   [% FOREACH action IN form.field('actions').fields -%]
>  <>   91   <tr[% ' class="hidden"' IF loop.last %]>
>  <>   92 
>  <>   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 
> %][% END %]
>  <>   94 
>  <>   95 
>  <>   96   [% action.field('type').render_element | none %]
>  <>   97   [% action.field('value').render_element | none %]
>  <>   98 
>  <>   99 
>  <>  100class="icon-plus-sign">
>  <>  101href="#delete">
>  <>  102 
>  <>  103   
>  <>  104       [% END -%]
>  <>  105   
>  <>  106 
>  <>  107   
>  <>  108 
>  <>  109   
>  
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca 
> <mailto:dwuelfr...@inverse.ca>] 
> Sent: 08 October 2015 15:44
> To: ML PF <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> I managed to hide the registration window from view, but the user couldn’t be 
> created as this seems to be a required field. Is there a way I can make all 
> created users have a certain registration window by default? I’m finding that 
> having the registration time, and access duration is confusing to users.
>  
> Can you make the fields “hidden” with a value ?
> That’s how I usually do it
> 
> Cheers!
> dw.
>  
> —
> Derek Wuelfrath
> dwuelfr...@inverse.ca <mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 
> (x110) :: +1.866.353.6153 (x110)
> Inverse inc. :: Leaders behind SOGo (www.sogo.nu <http://www.sogo.nu/>) and 
> PacketFence (www.packetfence.org <http://www.packetfence.org/>)
>  
> On Oct 7, 2015, at 11:38 AM, Morris, Andi <amor...@cardiffmet.ac.uk 
> <mailto:amor...@cardiffmet.ac.uk>> wrote:
>  
> Thanks Derek.
>  
> That was really helpful. I managed to hide the registration window from view, 
> but the user couldn’t be created as this seems to be a required field. Is 
> there a way I can make all created users have a certain registration window 
> by default? I’m finding that having the registration time, and access 
> duration is confusing to users.
>  
> Cheers,
> Andi
>  
> From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca 
> <mailto:dwuelfr...@inverse.ca>] 
> Sent: 01 October 2015 21:39
> To: ML PF <packetfence-users@lists.sourceforge.net 
> <mailto:packetfence-users@lists.sourceforge.net>>
> Subject: Re: [PacketFence-users] tweaking the create users page
>  
> Andi,
>  
> It is indeed possible to do it (it’s like zombocom, everything is possible). 
> I actually did it for some specific use cases
>  
> You would need to create some custom code.
>  
> You could have a look at html/pfappserver/root/user/create.tt and add some 
> “hidden” fields.
>  
> Ther

Re: [PacketFence-users] tweaking the create users page

2015-10-08 Thread Morris, Andi
Aha, I found the Actions array in /lib/pf/Authentication/constants.pm and 
changed the order. That means that the Actions now shows ‘Set access duration’ 
by default on the create screen, perfect.

I’ll keep looking for ways to give the users a default unreg date.

Cheers,
Andi

From: Morris, Andi [mailto:amor...@cardiffmet.ac.uk]
Sent: 08 October 2015 16:32
To: packetfence-users@lists.sourceforge.net
Subject: Re: [PacketFence-users] tweaking the create users page

Thanks Derek,
I can see how that would work for a simple field such as Name, but I can’t work 
it out for the unregistration date.

  77   
   78 [% l('Registration 
Window') %]
   79 
   80   [% form.field('valid_from').render_element | none %] 
   81   [% form.field('expiration').render_element | none %]
   82 
   83   


I still need to swap access duration for the set role action too.


   85   

   86 [% l('Actions') %]

   87 

   88   

   89 

   90   [% FOREACH action IN form.field('actions').fields -%]

   91   <tr[% ' class="hidden"' IF loop.last %]>

   92 

   93   [% IF loop.last %]1[% ELSE %][% loop.index + 1 %][% 
END %]

   94 

   95 

   96   [% action.field('type').render_element | none %]

   97   [% action.field('value').render_element | none %]

   98 

   99 

  100   

  101   

  102 

  103   

  104   [% END -%]

  105   

  106 

  107   

  108 

  109   


From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 08 October 2015 15:44
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

I managed to hide the registration window from view, but the user couldn’t be 
created as this seems to be a required field. Is there a way I can make all 
created users have a certain registration window by default? I’m finding that 
having the registration time, and access duration is confusing to users.

Can you make the fields “hidden” with a value ?
That’s how I usually do it

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: +1.514.447.4918 (x110) 
:: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 7, 2015, at 11:38 AM, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be created as this seems to be a required field. Is there 
a way I can make all created users have a certain registration window by 
default? I’m finding that having the registration time, and access duration is 
confusing to users.

Cheers,
Andi

From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 01 October 2015 21:39
To: ML PF 
<packetfence-users@lists.sourceforge.net<mailto:packetfence-users@lists.sourceforge.net>>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would need to create some custom code.

You could have a look at html/pfappserver/root/user/create.tt and add some 
“hidden” fields.

There’s of course, may have more file to check but basically, that should do it 
:)

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: 
www.inverse.ca<http://www.inverse.ca/>
+1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu/>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org/>)

On Oct 1, 2015, at 11:45, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Is there a way to remove the registration window option and make two actions 
appear by default (access duration and role) in the create users window? I’m 
trying to make this page as simple as possible for the staff creating users.

Cheers,
Andi

-
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>
--



<http://www.cardiffmet.ac.uk/cardiffmet150> 
--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net<mailto:PacketFence-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/packetfence-users


Re: [PacketFence-users] tweaking the create users page

2015-10-07 Thread Morris, Andi
Thanks Derek.

That was really helpful. I managed to hide the registration window from view, 
but the user couldn’t be created as this seems to be a required field. Is there 
a way I can make all created users have a certain registration window by 
default? I’m finding that having the registration time, and access duration is 
confusing to users.

Cheers,
Andi

From: Derek Wuelfrath [mailto:dwuelfr...@inverse.ca]
Sent: 01 October 2015 21:39
To: ML PF <packetfence-users@lists.sourceforge.net>
Subject: Re: [PacketFence-users] tweaking the create users page

Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would need to create some custom code.

You could have a look at html/pfappserver/root/user/create.tt and add some 
“hidden” fields.

There’s of course, may have more file to check but basically, that should do it 
:)

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca<mailto:dwuelfr...@inverse.ca> :: 
www.inverse.ca<http://www.inverse.ca>
+1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu<http://www.sogo.nu>) and 
PacketFence (www.packetfence.org<http://www.packetfence.org>)

On Oct 1, 2015, at 11:45, Morris, Andi 
<amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>> wrote:

Is there a way to remove the registration window option and make two actions 
appear by default (access duration and role) in the create users window? I’m 
trying to make this page as simple as possible for the staff creating users.

Cheers,
Andi

-
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: amor...@cardiffmet.ac.uk<mailto:amor...@cardiffmet.ac.uk>
--



[Image removed by sender. Cardiff Metropolitan University - 150 years of 
nurturing talent]<http://www.cardiffmet.ac.uk/cardiffmet150> 
--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net<mailto:PacketFence-users@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/packetfence-users

--
Full-scale, agent-less Infrastructure Monitoring from a single dashboard
Integrate with 40+ ManageEngine ITSM Solutions for complete visibility
Physical-Virtual-Cloud Infrastructure monitoring from one console
Real user monitoring with APM Insights and performance trend reports 
Learn More http://pubads.g.doubleclick.net/gampad/clk?id=247754911=/4140___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


[PacketFence-users] tweaking the create users page

2015-10-01 Thread Morris, Andi
Is there a way to remove the registration window option and make two actions 
appear by default (access duration and role) in the create users window? I'm 
trying to make this page as simple as possible for the staff creating users.

Cheers,
Andi

-
Andi Morris
IT Security Officer
Cardiff Metropolitan University
T: 02920 205720
E: amor...@cardiffmet.ac.uk
--



[Cardiff Metropolitan University - 150 years of nurturing 
talent]
--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users


Re: [PacketFence-users] tweaking the create users page

2015-10-01 Thread Derek Wuelfrath
Andi,

It is indeed possible to do it (it’s like zombocom, everything is possible). I 
actually did it for some specific use cases

You would need to create some custom code.

You could have a look at html/pfappserver/root/user/create.tt and add some 
“hidden” fields.

There’s of course, may have more file to check but basically, that should do it 
:)

Cheers!
dw.

—
Derek Wuelfrath
dwuelfr...@inverse.ca :: www.inverse.ca
+1.514.447.4918 (x110) :: +1.866.353.6153 (x110)
Inverse inc. :: Leaders behind SOGo (www.sogo.nu) and PacketFence 
(www.packetfence.org)

> On Oct 1, 2015, at 11:45, Morris, Andi  wrote:
> 
> Is there a way to remove the registration window option and make two actions 
> appear by default (access duration and role) in the create users window? I’m 
> trying to make this page as simple as possible for the staff creating users.
>  
> Cheers,
> Andi
>  
> -
> Andi Morris
> IT Security Officer
> Cardiff Metropolitan University
> T: 02920 205720
> E: amor...@cardiffmet.ac.uk 
> --
>  
> 
>   
> --
> ___
> PacketFence-users mailing list
> PacketFence-users@lists.sourceforge.net 
> 
> https://lists.sourceforge.net/lists/listinfo/packetfence-users 
> 
--
___
PacketFence-users mailing list
PacketFence-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/packetfence-users