Commit Graph

252 Commits

Author SHA1 Message Date
Oliver f96051d863 Replace print statement with a logger warning 2021-08-23 21:39:54 +10:00
Matthias Mair 4c8fdab072
fixed descriptions 2021-08-23 09:44:52 +02:00
Matthias 8edfada22a
adding settings definitions for turning off features 2021-08-22 22:08:41 +02:00
Oliver 8861ffad81 PEP fixes 2021-08-15 12:06:31 +10:00
Oliver faab1f2464 Provide global_settings and user_settings as context objects
- Adds a new context middleware
- Refactor the way that settings are provided to the javascript layer
2021-08-15 11:57:05 +10:00
Oliver Walters ca9536f687 Implement option to display labels "inline" in the browser 2021-08-07 22:09:15 +10:00
Oliver Walters d77b99c0ca Add user settings for report and labels 2021-08-07 21:57:41 +10:00
Oliver Walters b04f22fc53 CreatePart form now uses the API
- Simplify the way category parameter templates are copied
2021-08-04 23:27:16 +10:00
Matthias 55762f2a96 do not use safe in template
that can cause wrong escaping and generally is considered unsafe
2021-08-01 01:41:46 +02:00
Matthias 369864574e only include setting in the settings that have a key 2021-07-30 23:25:45 +02:00
Oliver c39e3aaa82 Bug fix 2021-07-29 17:52:24 +10:00
Oliver 4381a16b0e Template cleanup 2021-07-29 12:31:07 +10:00
Oliver 28bf5bfdbc Fix table_filters.js 2021-07-29 11:52:50 +10:00
Oliver a222efda33 Fix rendering issues 2021-07-29 11:43:50 +10:00
Oliver 27ec65a002 Add 'settings.js' which provides all settings (global and user) as a dynamic javascript file
- Minimal database hits required
2021-07-29 11:28:04 +10:00
Oliver 78ed2776d1
Merge pull request #1863 from SchrodingersGat/settings-refactor
Refactoring existing settings views
2021-07-28 15:04:37 +10:00
eeintech 4e3635d1fe Exact query on ID made the PostGreSQL DB choke 2021-07-27 10:05:22 -04:00
Oliver 990b987692 Reload settings values "live" (without a page refresh) 2021-07-27 17:03:37 +10:00
Oliver 46d5a6f00b - Convert "PART_RECENT_COUNT" to user setting
- Convert "STOCK_RECENT_COUNT" to user setting
2021-07-27 14:53:32 +10:00
Oliver 33a0b73a05 Convert SEARCH_PREVIEW_RESULTS to a "user" setting 2021-07-27 14:44:51 +10:00
Matthias 31050f23aa adding all homepage settings 2021-07-24 00:08:46 +02:00
Matthias e97ee95deb typo 2021-07-23 01:09:06 +02:00
Matthias 46b0db8263 more hompage settings 2021-07-23 01:07:28 +02:00
Matthias e167f27258 get user settings in templates 2021-07-23 00:46:48 +02:00
Matthias 50356afd41 Merge branch 'master' of https://github.com/inventree/InvenTree into homepage-settings 2021-07-23 00:03:21 +02:00
Matthias 7abf70fdd7 style fix 2021-07-22 23:53:17 +02:00
Matthias 3b12b0231e fixing wired unique behaviour 2021-07-22 23:50:51 +02:00
Matthias 5f2bef7ee1 base implementation of user setting 2021-07-22 23:50:09 +02:00
Matthias e287860e10 admin for user setting 2021-07-22 23:46:31 +02:00
Matthias 449fc329c9 usersetting edit url 2021-07-22 23:45:34 +02:00
Matthias 7ef87320a0 abstract edit 2021-07-22 23:44:25 +02:00
Matthias 6f5fc528b7 override functions 2021-07-22 23:43:51 +02:00
Matthias 8f374e255e abstract filters and refactor 2021-07-22 23:43:03 +02:00
Matthias c0d6ef80fc unique model settings 2021-07-22 23:39:19 +02:00
Oliver 2ffae368f1 Add an option to configure number of parts displayed in search preview box 2021-07-21 15:05:14 +10:00
Matthias ce3f7b698d InvenTreeUserSettings added 2021-07-20 01:35:58 +02:00
Matthias ec53099872 abstracting Settings model 2021-07-20 01:34:35 +02:00
eeintech 53f2aa107a Umm watch out for the true fix! 2021-07-19 15:51:04 -04:00
eeintech 9acd57f8e0 CI was not completely fixed 2021-07-19 15:29:04 -04:00
eeintech c1db4c7b3d Try to catch encoding error, fixed CI 2021-07-19 15:14:08 -04:00
eeintech 3ab058e84b Fixed default currency selection 2021-07-19 14:49:55 -04:00
Matthias 210a4bccde setting for #1796 2021-07-18 02:20:56 +02:00
Oliver 09d175f7cf Fix purchase order import form 2021-07-15 23:11:59 +10:00
Matthias 1bfa3cdd63 makes currency selection human-readable 2021-07-02 20:02:15 +02:00
Matthias 5aaced6e66 migration for file-based currency setting 2021-07-01 18:20:39 +02:00
Matthias 14c904c0c5 style fixes 2021-07-01 10:45:33 +02:00
Matthias 951e8910ba using functions for currency codes 2021-07-01 10:41:23 +02:00
Matthias 983255a05e naming refactor 2021-07-01 10:37:16 +02:00
Matthias 66c1e9c97d currency codes in own function 2021-07-01 10:32:07 +02:00
Matthias fcdefc4f83 removing default_currency in fields 2021-07-01 00:40:26 +02:00