Roberto Rosario
64e1c6bb67
Add widget support to SourceColumn
...
Allow passing a widget class to SourceColumn. This makes
using lambdas to render model column unnecesary and are
mostly removed too.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-22 05:35:31 -04:00
Roberto Rosario
7672aca7a9
Add button widget for forms
...
This widget will allow displaying HTML anchor buttons inside
the forms. It uses by default the navigation instance template
from the navigation app.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-18 17:21:21 -04:00
Roberto Rosario
55a30379bd
Various apps: Sort imports
...
Run imports as per Mayan EDMS best practices.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com >
2018-12-06 01:57:24 -04:00
Roberto Rosario
44ac0932b3
Fix relative icon import.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-09-06 01:48:06 -04:00
Roberto Rosario
7389369832
Add support for the two state widget to be centered.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-26 05:07:30 -04:00
Roberto Rosario
4f028b1f54
Convert the two_state_widget to a class and update it to use the new icon class.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-08-04 16:56:03 -04:00
Roberto Rosario
aa38b1c0e8
PEP8 cleanups.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-06-29 03:10:17 -04:00
Roberto Rosario
90623ed372
Update rendering of the readonly multiselect widget to conform to Django's updated field class interface.
...
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2018-04-06 16:44:46 -04:00
Michael Price
744976e8a1
Fix flake8 warnings.
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:30:27 -04:00
Michael Price
b1080e5fe5
Convert the TextAreaDiv widget to use template-based rendering as per Django's release notes: https://docs.djangoproject.com/en/2.0/releases/1.11/#template-based-widget-rendering
...
Signed-off-by: Michael Price <loneviking72@gmail.com >
2018-04-01 18:25:03 -04:00
Roberto Rosario
6c6ca38374
Replace all instances of unicode only handling to use force_text.
...
Replace all __unicode__ methods to __str__ and the
@python_2_unicode_compatible decorator.
Replace all instance of smart_str, smart_unicode, force_uncode
with force_text.
Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com >
2017-07-05 15:03:24 -04:00
Roberto Rosario
86a602aa34
PEP8 cleanups.
2016-12-31 02:25:02 -04:00
Roberto Rosario
27171597de
Use the select2 widget for the user language and locale.
...
Remove the ModelForm class.
2016-12-31 02:22:11 -04:00
Roberto Rosario
6b3fe7a876
Fix futher Django Warnings.
2016-01-22 04:52:47 -04:00
Roberto Rosario
68f3c6eee7
PEP8 cleanups.
2015-08-19 14:50:44 -04:00
Roberto Rosario
4527563d89
PEP8 cleanups, specially E501 line too long.
2015-07-22 18:21:37 -04:00
Roberto Rosario
e891fe9525
PEP8 cleanups and code style cleanups.
2015-07-10 17:19:36 -04:00
Roberto Rosario
441eae28bc
Add DisableableSelectWidget widget
2015-07-10 00:41:18 -04:00
Roberto Rosario
b41be2e763
Re-add incorrectly removed widget class EmailInput
2015-06-16 01:43:46 -04:00
Roberto Rosario
d8322031c5
PEP8 cleanups
2015-06-14 03:52:18 -04:00
Roberto Rosario
5d1af4f8b7
Fix icon class
2015-04-01 13:27:38 -04:00
Roberto Rosario
80c04b1fb7
New bootstrap based frontend UI. Merged from #121 with many fixes. Closes issues #121 , #59 and #100
2015-03-31 03:26:57 -04:00
Roberto Rosario
d59ea3ede2
Add from __future__ import unicode_literals, issue #37
2015-01-19 04:06:40 -04:00
Roberto Rosario
97dcf507ab
PEP8 cleanups
2014-10-08 18:14:05 -04:00
Roberto Rosario
908f2eef84
Fix quotation style
2014-10-08 10:24:04 -04:00
Roberto Rosario
7321b12c7d
Update remaining exception syntaxes
2014-07-20 22:44:12 -04:00
Roberto Rosario
41d0cfb7bf
Code cleanups
2014-06-29 20:35:36 -04:00
Roberto Rosario
ec1745b50b
Initial changes to support the new Django 1.6 project structure
2014-06-15 13:13:21 +02:00