1
0
mirror of https://github.com/kakwa/ldapcherry synced 2024-12-18 10:50:04 +01:00

34 Commits

Author SHA1 Message Date
kakwa
921a0820f4 switch to using lists in templates
Sets are not available in mako templates when using python3.
Reverting to using lists with 'if not in' checks to avoid duplication.
2019-02-06 22:26:46 +01:00
kakwa
2df56d2de2 fix template over-escaping + python 3 support
The templates were html escaping the generated js code for the
autofill and the role management. This was breaking these features.
It's okay to not escape these as they are coming from a trusted source
(configuration file).

Also make the templates python3 compatible (not need to import Set in
python 3)
2019-02-06 21:38:11 +01:00
John Thiltges
c6cce54d5f Escape form values with markupsafe
- Use markupsafe to format escaped HTML fragments
- Correct the formatting problems introduced with the XSS fixes
2019-01-03 13:12:53 -06:00
kakwa
6e526b6f15 hack to have a cleaner resize 2017-04-06 00:32:24 +02:00
kakwa
de5f760c37 removing duplicate option in form select fields 2017-04-05 23:37:41 +02:00
kakwa
a33a46e8b8 add dynamic resizing to align input-group-addon
* add class to identify the 2 form columns
* add a js that calculate max width and resize all input-group-addon
spans
* load the js in the base template
2017-04-05 23:24:19 +02:00
Stan Rudenko
f7f72c7e11 adding textarea 2017-03-02 18:47:49 -08:00
kakwa
abf3d5dea9 focus on first field for all forms
previously, only the add form had focus on first field. Now every form
(add, modifify, selfmodify) have focus on first field.
2016-07-10 08:54:59 +02:00
kakwa
0beac119f9 fix many error with html unescaped attributes 2016-07-08 21:46:00 +02:00
kakwa
655ccabd79 force focus on the first input of forms 2016-07-06 21:22:48 +02:00
kakwa
3b6cf61b93 grotesque hacks to disable firefox autofilling of the forms 2016-07-06 20:37:24 +02:00
kakwa
921eef4b04 implementing default value in form 2016-06-16 22:11:48 +02:00
kakwa
7a1fb0dc8c modifying the templates to include custom ppolicy error message 2015-11-02 23:25:01 +01:00
kakwa
04c294e038 disable autofill for modify forms 2015-07-10 20:11:07 +02:00
kakwa
3cbdfe62ec using onchange instead on onkeyup 2015-07-08 00:57:03 +02:00
kakwa
5dc8011749 implement hooks to call autofill functions 2015-07-08 00:43:58 +02:00
kakwa
405367fd75 various fixes in html + unit tests on html 2015-07-05 17:50:42 +02:00
kakwa
ac7661731c implementing frontend password policy check 2015-07-01 08:50:50 +02:00
kakwa
04e28f10b1 enable error message for not valid/empty fields 2015-06-30 23:19:07 +02:00
kakwa
147cad3511 fix unicode 2015-06-27 22:35:34 +02:00
kakwa
45f32df72e make the key attribute not modifiable in modify form 2015-06-25 02:08:30 +02:00
kakwa
117d18bc92 prefixing all form attributes to differenciate between types 2015-06-24 00:46:10 +02:00
kakwa
5f9758832f fix form input string list 2015-06-23 22:30:43 +02:00
kakwa
834b5a5152 begin implementing modify user form 2015-06-18 23:43:58 +02:00
kakwa
22fb758c83 fixing two columns layout 2015-06-10 23:30:16 +02:00
kakwa
d755a6fc8f implementing form on two column 2015-06-10 22:45:04 +02:00
kakwa
e2497671cb implementing adding default values to form 2015-06-09 09:19:58 +02:00
kakwa
2b52e121d1 adding basic js validation for forms 2015-06-03 23:57:22 +02:00
kakwa
0343644004 handle fixed value while displaying it in form 2015-06-03 22:45:34 +02:00
kakwa
eee3b419cf name the attributes of the add form 2015-06-03 00:06:59 +02:00
kakwa
c5796ae56e fix placeholder on string + allign 2015-06-02 23:37:29 +02:00
kakwa
228c65ab8f implementing form list 2015-06-02 08:33:46 +02:00
kakwa
f8b3df8b58 implementing weight and normalizing each kind of attributes 2015-05-31 23:27:04 +02:00
kakwa
1dd3f2a73d implementing forms to add user 2015-05-31 22:38:13 +02:00