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>
Add a red alert for faster visual scanning. Place the
status code output in the same line as the initial message to
save some vertical space for debug output.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update the arguments of the function to be full length and more explicit.
Use exceptions to find the correct way of using the attribute of the
object passed instead of trying to use introspection.
Add support for passing key word arguments to the attribute being
resolved even if it is a class method.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add support for selecting a document from the UI by just clicking
on the title of the body of the card, not just on the checkbox
next to the title.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Add a left side menu navigation style. The main app navigation links
will be displayed here. The notification, user and system tools are now
displayed at the top navigation bar.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
Update sourcs to accept a test argument to their check methods.
This is to allow for explicit test behavior like running the
check method code even when the source is disabled and to
not deleted downloaded content during a test.
Signed-off-by: Roberto Rosario <Roberto.Rosario@mayan-edms.com>
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>