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

39 Commits

Author SHA1 Message Date
197c6a1cbf Add scheduling_enabled parameter for scripts 2023-04-18 08:45:31 -04:00
d2a694a878 Closes #12068: Establish a direct relationship from jobs to objects (#12075)
* Reference database object by GFK when running scripts & reports via UI

* Reference database object by GFK when running scripts & reports via API

* Remove old enqueue_job() method

* Enable filtering jobs by object

* Introduce ObjectJobsView

* Add tabbed views for report & script jobs

* Add object_id to JobSerializer

* Move generic relation to JobsMixin

* Clean up old naming
2023-03-28 15:47:09 -04:00
f7a2eb8aef Closes #11890: Sync/upload reports & scripts (#12059)
* Initial work on #11890

* Consolidate get_scripts() and get_reports() functions

* Introduce proxy models for script & report modules

* Add add/delete views for reports & scripts

* Add deletion links for modules

* Enable resolving scripts/reports from module class

* Remove get_modules() utility function

* Show results in report/script lists

* Misc cleanup

* Fix file uploads

* Support automatic migration for submodules

* Fix module child ordering

* Template cleanup

* Remove ManagedFile views

* Move is_script(), is_report() into extras.utils

* Fix URLs for nested reports & scripts

* Misc cleanup
2023-03-24 21:00:36 -04:00
4286d74d44 Add fieldsets functionality to scripts to allow for form field groupings (#11880)
* update script template

* update docs

* introduce default_fieldset

* correct custom script docs

* default to use fieldsets in scripts

* update scripts docs for new behavior

* Misc cleanup

---------

Co-authored-by: jeremystretch <jstretch@netboxlabs.com>
2023-03-14 15:50:49 -04:00
824b4e0923 Add scheduling for reports and scripts 2022-09-18 15:06:28 +02:00
7c105019d8 Closes #8600: Document built-in template tags & filters 2022-02-09 16:01:58 -05:00
01e8017265 Clean up template blocks 2022-01-05 09:09:39 -05:00
aa9e68e121 Tweak preformatted block styling 2021-10-28 10:46:00 -04:00
3f766ffea8 Fixes #7474: Fix AttributeError exception when rendering a report or custom script 2021-10-07 09:37:21 -04:00
de58f53f9f Closes #7208: Add navigation breadcrumbs for custom scripts & reports 2021-09-15 15:14:24 -04:00
9813f3b696 Clean up custom script templates 2021-08-26 15:04:24 -04:00
a72e23eddf Fix custom script layout 2021-08-13 09:43:23 -04:00
856956afce Standardize object breadcrumbs 2021-07-20 12:14:01 -04:00
805892f623 Template cleanup (#6421)
* Clean up & comment base templates

* Clean up login template & form

* Use SVG file for NetBox logo

* Simplify breadcrumbs

* Merge changelog.html into home.html

* Rename title_container block to header

* Move breadcrumbs block to object.html

* Attach names to endblock template tags

* Reorganize root-level templates into base/ and inc/

* Remove obsolete reference to Bootstrap 3.4.1
2021-05-17 16:27:27 -04:00
460a203c29 Add basic support for smaller screens 2021-04-30 15:55:37 -07:00
4b0d5815c0 migrate script job checking to typescript & update templates for bootstrap 5 2021-04-18 14:17:13 -07:00
3c0f4278c7 update extras templates 2021-04-16 14:58:44 -07:00
46e144f647 Clean up object header 2021-04-13 16:03:07 -04:00
d58291d119 Closes #5953: Adds Markdown rendering of Custom Scripts' descriptions 2021-03-11 22:27:43 +01:00
867f308027 Replace Font Awesome icons with Material Design 2020-11-06 14:33:20 -05:00
3777fbccc3 Implements #2006 - run reports and scripts in the background 2020-06-29 03:50:05 -04:00
19a10cee82 Rename base template 2020-04-10 10:21:02 -04:00
16d3cebf3e Update markdown filter name 2020-03-09 10:42:32 -04:00
1423fd9024 Rename gfm filter to render_markdown 2020-03-09 10:31:29 -04:00
3e8799b5c7 Fix script form rendering 2019-08-28 09:20:19 -04:00
a3d9e633c1 Always include 'commit' option 2019-08-26 17:04:04 -04:00
456621695a Wrap script form inside a panel 2019-08-26 13:53:30 -04:00
de770faf6a Add FileVar for file uploads 2019-08-16 15:27:58 -04:00
f8326ef6df Add markdown rendering for log mesages 2019-08-14 14:38:11 -04:00
11e5e1c490 Show script log when an exception occurs 2019-08-14 12:19:36 -04:00
9c079ead4c Fix notice when form does not require user input 2019-08-14 10:18:25 -04:00
c562af3a13 Record script execution time 2019-08-14 10:12:30 -04:00
30e14db881 Tweak form display (cosmetic) 2019-08-14 09:40:23 -04:00
0d289d660d Add option to commit database changes 2019-08-12 14:28:06 -04:00
19eb4c510c Move script attributes under a Meta class 2019-08-12 13:16:18 -04:00
ab504439fb Implemented permissions for scripts 2019-08-12 11:39:36 -04:00
3f7f3f88f3 Fix form field ordering 2019-08-12 11:13:16 -04:00
9d054fb345 Add options for script vars; include script output 2019-08-12 11:13:16 -04:00
a25a27f31f Initial work on custom scripts (#3415) 2019-08-12 11:13:16 -04:00