lenarother / django-legaltext Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Zu manchen TNBs gibt es kein Formular. Checkboxen können in diesem Fall deaktiviert werden.
https://github.com/moccu/django-legaltext/blob/master/legaltext/admin.py#L29
You assume that legaltext querystring is always present. This schould be verified beforehand.
In the row of buttons on the lower end of the popup window is one that indicates it would be possible to edit and save the text but this is not possible currently. Would be good to either remove this one or add the functionality.
Currently, code throws exception if legal text version has no checkboxes at all.
https://github.com/moccu/django-legaltext/blob/master/legaltext/urls.py#L9
Matches anything, update to [\w-]+ - this is what is allowed in slug fields.
Optimise LegalTextCheckboxFormField field so it:
Add a template tag which acts like url tag including support for "as" which takes the internal slug of a legal text and returns the url based on slug or url name - depending on available data.
Currently, links inside checkbox contents are converted to links that cannot be customized so they open in a new window (target="_blank"), so they always open in the same window:
https://github.com/moccu/django-legaltext/blob/29f572a4816a801ff6bd0635aa233cf8efd72071/legaltext/models.py#L116-L116
This should be configurable.
https://github.com/moccu/django-legaltext/blob/master/legaltext/admin.py#L85
Make sure you don't modify the base_fields of a form. This is not threadsafe. You have to find another way of passing the initial value to the form.
Instead of overwriting the template by adding a new file into templates/legaltext/content.html
, it would be nice to define a custom filepath. For projects with more than one simultaneous participation forms, the path may need to differ.
The LegalText.slug and LegalText.url_slug field should store more characters (at least 128).
The Admin complains that an empty url slug is invalid because it is already in use. Looks like we cannot use unique=True here. Need to change the validator to make sure only url slugs with a value are considered when looking for duplicates.
Make checkboxes sortable.
Bitte auflisten, welche Variablen im Template verwendet werden können:
Options:
- current_version
- name
- valid_from
- current_version_content
Add possibility to export all LegalText versions as md. Format: YYYYMMDD_HHMMSS_VersionsID_LegalTextName_Typ.md
E.g.
Text: 20170406_194300_29_perfectage_event_terms_text_content.md
Checkbox: 20170406_194300_29_perfectage_event_terms_text_checkbox1.md
https://github.com/moccu/django-legaltext/blob/master/setup.py#L12
Markymark install required shouldn't mention a max-version if not required - this would prevent users from using a semi-new version because legaltext required a maybe older version.
https://github.com/moccu/django-legaltext/blob/master/legaltext/fields.py#L20
Form fieldnames should never be uppercase.
Please refer to django-markymark for this.
pytest.ini .coveragerc and other can be merged into one setup.cfg.
Check for other differences too. Thanks!
LegalTextFormField schould use floppyforms fields if floppyforms is installed. This can be done by
try:
import floppyforms.__future__ as forms
except ImportError
from django import forms
Instead of adding additional checkbox inputs via custom form fields.
Make sure that both builds only contain what they should, e.g. contain locale, templates and doesn't contain tests. Keep your eyes open for other files that shouldn't belong to the packaged files.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.