Use a dynamic subclass instead that always deconstructs to a fake
subclass with a __eq__ method that always returns True. This should
trick makemigrations into never creating a new migrations for
changes to the storage class or the arguments.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Wrap storages directly connected to file model fields to avoid
Django triggering a migration change when an attribute of the
storage is changed, like the location.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add new icons for the apps: Document comments, documents, file metadata,
parsing and OCR.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Use the new icon classes to add custom icons. Improve
the URL schemes of some apps for uniformity.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Improve the code that restores the menu state after a refresh.
Add hover styling for menu sub links. Add an active class
for the menu sub links and JavaScript to assign it to the
link clicked or restored.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add new icon classes based on Font Awesome that support
layering, masking and combining glyphs.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the class to disable displaying the column label by default
and only so when the include_label argument is True.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Increase the width of the border for hightlighted panels.
Add a hover shadow to selectable panels.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add an additional method to obtain the request when it is
not available from the context.
Add support for SourceColumn resolution of inherited
sub models.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update usage of SourceColumns in the sources app.
Move some colum definitions from the view to the app
module using SourceColumn instances.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the JavaScript dependency installation code to handle scoped
packages. The code is also updated to use pathlib's Path.
Move the JavaScript dependency installation to its own app named
dependencies.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Remove the HTML based MultiItemForm and use a Bootstrap dropdown
menu for the bulk actions list.
Add a text message explaining that items must be selected in
other to activate the bulk action menu.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update UI code to display a fixed location sidebar. The sidebar is
also of a fixed width instead of being a certain number columns
wide. The action dropdown is also now in a fixed location.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Change the left hand side menu designation to be the 'main'
menu from 'sidebar', the menu at the top goes from 'main'
to 'topside'. All menus are referenced by their name only
and the fragment 'menu' is dropped from all as it is obvious
that they are menus and the Menu class doesn't supply any
other kind of object.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add code to detect the current URL and open the parent of
the menu entry that correlates to it.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Since tables row height can't be controlled using CSS (they
will always resize to the size of their elements), this commit
adds a table cell container whose size can be controlled from
the view. This way big thumbnail images won't break the appearance
of the table.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Move the current user detail and edit views from the common app
to the user_management app. Add the user created and edited events.
Add an user detail view.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update template code to display the resolved attribute's absolute_url
and if it doesn't provide it, fallback to display the main object's
absolute_url.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
The SourceColumn class has now the ability to render a link's
absolute_url, turn this on for the document parsing error and
OCR error list columns and remove the document_link widget.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add a separator under the setup link in the system menu.
Fix the user menu separator which is at the top of the username
and should be udner it.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add a new argument to the SourceColumn class to flag a column as
sortable. The SourceColum will generate a request querystring to
be used as the table header archor href. The SingleObjectListView
will capture the querystring and call the order_by on the queryset
to sort it.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Improve the method of slicing the document list to produce
a queryset that can be further sorted.
Add a new date added column to the recently added document list.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Remove the variable multi_select_item_properties and the
get_encoded_parameter custom filter.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
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>
Disable the link to view an user's (or current user)
group list if the user is a superuser or staff.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Compute the SourceColumn at definition instead of doing it
during the resolve method. This move the label calculation
from the rendering to the startup.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add the new generic list and generic list items toolbar which allow
switching the list display mode.
This toolbar also includes a stylized button to select and deselect
all items emulating the check-all checkbox.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the invalid document template to use the new font awesome
defitions.
Increase the size of the default template.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the code of some SourceColumn invocations to be model methods
instead of lambda wapped functions.
Move the translated labels to the models too.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>