Mark the service as readonly in the UI in authpam plugin
authorRob Crittenden <rcritten@redhat.com>
Fri, 17 Jul 2015 18:07:16 +0000 (14:07 -0400)
committerPatrick Uiterwijk <puiterwijk@redhat.com>
Tue, 18 Aug 2015 07:52:25 +0000 (09:52 +0200)
commitbfa0e5d352ea0d6217d31c952f35cd527264e4fa
treebb1023e9b4d5049a598e39e9a763a188b49e1ee7
parent7b470b0e494a7ff5a088c3ead2e60754b67282f1
Mark the service as readonly in the UI in authpam plugin

Update the Option class to take a readonly keyword argument,
defaulting to False. Extend its subclasses to pass this value
along.

The page template will add the disabled keyword to input and
textarea if a config option is marked as readonly.

https://fedorahosted.org/ipsilon/ticket/6

Signed-off-by: Rob Crittenden <rcritten@redhat.com>
Reviewed-by: Patrick Uiterwijk <puiterwijk@redhat.com>
ipsilon/login/authpam.py
ipsilon/util/config.py
templates/admin/option_config.html