1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

87 Commits

Author SHA1 Message Date
fa60f9d2a8 Closes #11294: Markdown Preview (#11894)
* MarkdownWidget

* Change border and color of active markdown tab

* Fix template name typo

* Add render markdown endpoint

* Static assets for markdown widget

* widget style fix and unique ids based on name

* Replace SmallTextArea with SmallMarkdownWidget

* Clear innerHTML before swapping

* render markdown directly in template

* change render markdown view path

* remove small markdown widget

* Simplify rendering logic

* Use a form to clean input Markdown data

---------

Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2023-03-09 08:21:13 -05:00
d7c37d9dd6 Fixes #11483: Apply configured formatting to custom date fields 2023-01-13 08:23:57 -05:00
758030733c #8366: Misc cleanup 2022-12-12 15:27:37 -05:00
f56e3eb784 Fixes #8058: Display server-side form errors inline with fields 2022-11-22 12:02:21 -05:00
c3dcd8937f Merge branch 'develop' into feature 2022-11-22 10:08:23 -05:00
90f15b8d55 Fixes #10938: render_field template tag should respect label kwarg 2022-11-21 09:49:30 -05:00
150cb772fe Fixes #10984: Fix navigation menu expansion for plugin menus comprising multiple words 2022-11-21 08:38:44 -05:00
484efdaf75 Closes #9623: Implement saved filters (#10801)
* Initial work on saved filters

* Return only enabled/shared filters

* Add tests

* Clean up filtering of usable SavedFilters
2022-11-02 12:27:53 -04:00
9628dead07 Closes #10560: New global search (#10676)
* Initial work on new search backend

* Clean up search backends

* Return only the most relevant result per object

* Clear any pre-existing cached entries on cache()

* #6003: Implement global search functionality for custom field values

* Tweak field weights & document guidance

* Extend search() to accept a lookup type

* Move get_registry() out of SearchBackend

* Enforce object permissions when returning search results

* Add indexers for remaining models

* Avoid calling remove() on non-cacheable objects

* Use new search backend by default

* Extend search backend to filter by object type

* Clean up search view form

* Enable specifying lookup logic

* Add indexes for value field

* Remove object type selector from search bar

* Introduce SearchTable and enable HTMX for results

* Enable pagination

* Remove legacy search backend

* Cleanup

* Use a UUID for CachedValue primary key

* Refactoring search methods

* Define max search results limit

* Extend reindex command to support specifying particular models

* Add clear() and size to SearchBackend

* Optimize bulk caching performance

* Highlight matched portion of field value

* Performance improvements for reindexing

* Started on search tests

* Cleanup & docs

* Documentation updates

* Clean up SearchIndex

* Flatten search registry to register by app_label.model_name

* Clean up search backend classes

* Clean up RestrictedGenericForeignKey and RestrictedPrefetch

* Resolve migrations conflict
2022-10-21 13:16:16 -04:00
1fc8de85a3 Add device NAPALM view tabs 2022-10-07 14:17:18 -04:00
0d7851ed9d #9072: Implement a mechanism for dynamically registering model detail views 2022-10-06 16:20:35 -04:00
e75e189933 Render "Set Null" button for custom fields 2022-08-26 14:32:17 +02:00
562769fb89 Merge branch 'develop' into feature 2022-08-01 14:42:09 -04:00
ff3fcb8134 #9871: Tweak display of utilization graph value 2022-08-01 12:38:12 -04:00
d4d73674fc Fixes #9871: Fix utilization graph value alignments 2022-08-01 11:54:39 -04:00
1bbf5d214b Closes #9881: Increase granularity in utilization graph values 2022-08-01 10:23:18 -04:00
466931d2fb Fixes #9829: Arrange custom fields by group when editing objects 2022-07-26 12:41:51 -04:00
d442f8fd60 Fixes #9843: Fix rendering of custom field values (regression from #9647) 2022-07-26 11:09:51 -04:00
a57398b0d6 Closes #9647: Introduce customfield_value template tag 2022-07-01 14:45:22 -04:00
779969f150 Closes #9070: Hide navigation menu items based on user permissions 2022-06-29 16:36:10 -04:00
22908a12e9 Merge branch 'develop' into feature 2022-03-25 10:38:44 -04:00
dde4495e20 #8232: Cleanup & test fix 2022-03-25 09:59:58 -04:00
1278429518 Closes #8232: Add color show full 100% utilization (#8816)
* Closes #8232: Add color show full 100% utilization

* change rounding

* change rounding

* fix hard code html

* format
2022-03-25 09:52:13 -04:00
15005209d1 Merge branch 'develop' into feature 2022-03-18 13:34:31 -04:00
0da04232f3 Fixes #8813 Retain search value after submitting (#8907)
* Fixes #8813 Retain search value after submitting

* remove autofocus from searchbar

Co-authored-by: Pieter Lambrecht <pieter.lambrecht@sentia.com>
2022-03-18 13:23:39 -04:00
76445bd19c Move bulk edit/delete buttons to template tags 2022-03-10 16:27:53 -05:00
5a3e99626d Simplify add/import/export button invocation 2022-03-10 15:56:09 -05:00
655bc49fad Clean up form select widgets 2022-03-07 15:11:57 -05:00
1319b62acb Standardize on get_FOO_color() method for returning ChoiceField colors 2022-02-11 14:25:13 -05:00
7c105019d8 Closes #8600: Document built-in template tags & filters 2022-02-09 16:01:58 -05:00
24f48b11e6 Closes #8530: Indicate CSV or YAML as format for "all data" export 2022-02-03 10:22:38 -05:00
443b4ccc57 Initial work on #8231 2022-01-05 14:06:56 -05:00
662cafe416 Form widgets & style cleanup 2022-01-04 15:01:16 -05:00
82a0240d2e Closes #8182: Introduce checkmark template tag 2021-12-29 10:26:42 -05:00
f369b5f588 Reorganize & clean up templatetag templates 2021-12-22 15:05:24 -05:00
fd785fc9a5 Move speed select dropdown menu to widget template 2021-12-16 08:41:43 -05:00
a1110b07de Fixes #7153: Allow clearing of assigned device type images 2021-09-02 16:48:54 -04:00
fe54acef51 v3.0 nav menu tweaks (#6906)
* Clean up nav menu spacing & link colors

* Shrink NetBox icon & collapsed sidebar

* Fix gap between scrollbar and righthand window border
2021-08-06 17:43:02 -04:00
e8ba4b0564 #6797: Improve controls & custom link styling 2021-08-03 10:21:06 -07:00
53e21ceed4 #6797: Improve global search styles 2021-08-03 09:19:24 -07:00
1de46f592c Various styling improvements 2021-08-02 02:18:31 -07:00
d18c83beb0 #6828: Fix various mobile UI issues 2021-07-30 00:35:38 -07:00
3752cb3e56 #6797: Implement new sidebar 2021-07-29 17:33:10 -07:00
2d32aeb972 Migrate to collapsed sidebar layout 2021-07-26 14:46:05 -07:00
5ba053a1c0 #6797: Fix duplicate ID on searchbar fields 2021-07-24 00:41:49 -07:00
a0b17e145b Clean up nav menu template 2021-07-22 10:29:21 -04:00
6b09c139e7 Refactor navigation menu 2021-07-22 10:21:39 -04:00
ebe7779f40 Use button role names instead of color shades 2021-07-20 21:21:03 -04:00
a5dda0705e Standardize button colors 2021-07-20 13:46:59 -04:00
726b148aa9 Clean up sidebar layout 2021-07-10 21:30:55 -04:00