Arthur Hanson
816fedb78d
8853 Prevent the retrieval of API tokens after creation ( #10645 )
...
* 8853 hide api token
* 8853 hide key on edit
* 8853 add key display
* 8853 cleanup html
* 8853 make token view accessible only once on POST
* Clean up display of tokens in views
* Honor ALLOW_TOKEN_RETRIEVAL in API serializer
* Add docs & tweak default setting
* Include token key when provisioning with user credentials
Co-authored-by: jeremystretch <jstretch@ns1.com>
2022-11-02 12:45:00 -04:00
jeremystretch
123e758c6d
Closes #9708 : Render user API tokens in a table
2022-07-11 15:43:59 -04:00
Jeremy Stretch
cfb9605e9b
Merge branch 'feature' into issue_9536
2022-06-23 10:35:27 -04:00
Jeremy Stretch
7043c6faf9
Merge pull request #9175 from PieterL75/issue_8233
...
Closes #8233 : Restrict API key access by source IP
2022-06-22 16:23:59 -04:00
Pieter Lambrecht
81cea9b9d9
Show LastUsed in /user/api-tokens/
2022-06-19 13:03:03 +02:00
Kim Johansson
e8b970608e
Replace None in templates with placeholder filter
...
To be consistent, all uses of — or None is replaced with the
placeholder filter.
Fixes #9537
2022-06-15 22:33:21 +02:00
Pieter Lambrecht
2587720298
Fix 8878: Restrict API key usage by Source IP
2022-04-19 14:44:35 +02:00
jeremystretch
e6072a51f8
Closes #8765 : Display and enable bulk clearing of user's table preferences
2022-03-03 10:03:43 -05:00
jeremystretch
ccb3a75281
Move fieldsets out of Meta for model forms
2022-01-31 15:52:36 -05:00
jeremystretch
3bb485d0b8
Merge v3.1.3
2021-12-29 12:41:56 -05:00
jeremystretch
82a0240d2e
Closes #8182 : Introduce checkmark template tag
2021-12-29 10:26:42 -05:00
jeremystretch
146a51ceba
Clean up API tokens view
2021-12-29 09:10:56 -05:00
jeremystretch
7926225e9b
Improve preferences form rendering
2021-12-22 09:35:29 -05:00
jeremystretch
1aafcf241f
Enable plugins to define user preferences
2021-12-22 09:10:50 -05:00
jeremystretch
70f257b1ea
Introduce UserConfigForm for managing user preferences
2021-12-21 16:29:01 -05:00
jeremystretch
50d393e0f9
Clean up user preferences view
2021-12-08 16:36:06 -05:00
jeremystretch
cd08836f3e
Refresh user profile view; add recent activity
2021-12-08 16:32:31 -05:00
jeremystretch
d11ea67bdd
Update design of user profile section
2021-08-24 15:24:03 -04:00
jeremystretch
84479925bf
Shrink & center form section titles
2021-07-22 12:31:50 -04:00
jeremystretch
19eafef41e
General UI cleanup
2021-07-21 12:06:43 -04:00
jeremystretch
88e382e7a1
Merge v2.11.8 changes
2021-07-06 12:10:29 -04:00
Robin Schneider
74f1b51b38
Use annotated_date also for updated datetimes
...
This changes the text from: Updated 5 months, 1 week ago
to: Updated 2021-01-24 00:33 (5 months, 1 week ago)
Co-authored-by: Jeremy Stretch <jstretch@ns1.com>
2021-07-02 22:22:38 +02:00
Robin Schneider
0ad9b83623
Closes #5503 : ISO 8601 date in UI and alternative format as tooltip
...
With this commit all dates in the UI are now consistently displayed.
I changed the long date format as suggested by @xkilian and confirmed by my own
research.
* DATETIME_FORMAT
* Before July 20, 2020 4:52 p.m.
* Now 20th July, 2020 16:52
"20th July, 2020" would be spoken as "the 20th of July, 2020" but the "the" and
"of" are never written.
The only exception is `object_list.html`. I tried it but there it does not
work so easily because the dates are passed to Jinja as SafeString.
2021-07-02 22:22:37 +02:00
Jeremy Stretch
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
Daniel Sheppard
744792452f
Closes : #5278 - Remove Secrets ( #6397 )
...
* Remove Secrets
* #5278 : Remove secrets javascript from netbox core
* Remove userkey references
* Fix PEP8
* Remove a few more instances of secrets. Rebundle
* Remove Secrets
Co-authored-by: checktheroads <matt@allroads.io>
2021-05-17 16:26:02 -04:00
checktheroads
22e484edd4
#6732 : Change “Update” button to “Save”
2021-05-07 17:02:22 -07:00
checktheroads
460a203c29
Add basic support for smaller screens
2021-04-30 15:55:37 -07:00
checktheroads
aef513f038
improve styles and documentation
2021-04-26 00:31:51 -07:00
checktheroads
2b159fc40f
implement dark mode
2021-04-25 20:11:46 -07:00
checktheroads
f7c1bc71d9
migrate templates to bootstrap 5
2021-04-18 16:42:28 -07:00
checktheroads
726ab7fc05
fix user key styles
2021-04-16 17:04:08 -07:00
checktheroads
4c3b0abe7b
Merge branch 'feature' of https://github.com/netbox-community/netbox into feature
...
# Conflicts:
# netbox/dcim/tables/template_code.py
# netbox/netbox/views/__init__.py
# netbox/project-static/css/base.css
# netbox/templates/base.html
# netbox/templates/circuits/circuit.html
# netbox/templates/circuits/circuittermination_edit.html
# netbox/templates/circuits/inc/circuit_termination.html
# netbox/templates/circuits/provider.html
# netbox/templates/dcim/device.html
# netbox/templates/dcim/device/base.html
# netbox/templates/dcim/device_component.html
# netbox/templates/dcim/devicetype.html
# netbox/templates/dcim/inc/device_napalm_tabs.html
# netbox/templates/dcim/rack.html
# netbox/templates/dcim/site.html
# netbox/templates/dcim/virtualchassis.html
# netbox/templates/extras/configcontext.html
# netbox/templates/extras/object_journal.html
# netbox/templates/extras/tag.html
# netbox/templates/generic/object.html
# netbox/templates/generic/object_list.html
# netbox/templates/home.html
# netbox/templates/inc/nav_menu.html
# netbox/templates/ipam/aggregate.html
# netbox/templates/ipam/ipaddress.html
# netbox/templates/ipam/prefix.html
# netbox/templates/ipam/vlan.html
# netbox/templates/ipam/vlangroup_edit.html
# netbox/templates/ipam/vlangroup_vlans.html
# netbox/templates/secrets/secret.html
# netbox/templates/tenancy/tenant.html
# netbox/templates/users/api_tokens.html
# netbox/templates/virtualization/cluster.html
# netbox/templates/virtualization/vminterface_edit.html
# netbox/utilities/forms/fields.py
# netbox/utilities/templates/buttons/export.html
2021-04-14 11:30:15 -07:00
checktheroads
d1d2ad6a5c
bootstrap 5 class updates
2021-04-13 21:51:12 -07:00
jeremystretch
46e144f647
Clean up object header
2021-04-13 16:03:07 -04:00
Jeremy Stretch
6ec8ac7597
Fixes #6073 : Permit users to manage their own REST API tokens without needing explicit permission
2021-03-31 13:25:06 -04:00
Jeremy Stretch
e5caea04c1
Update UserKey views to use "object" context var
2020-11-19 13:43:17 -05:00
Jeremy Stretch
a3675854be
Clean up generic view templates
2020-11-11 16:58:29 -05:00
Jeremy Stretch
72dace29b7
Replace Glyphicons with Material Design
2020-11-06 14:49:14 -05:00
Jeremy Stretch
867f308027
Replace Font Awesome icons with Material Design
2020-11-06 14:33:20 -05:00
Jeremy Stretch
82cd24a7de
Remove deprecated ifequal template tags
2020-07-16 13:01:31 -04:00
Jeremy Stretch
fbc8b46d13
Cosmetic tweaks to the user area
2020-05-06 13:25:17 -04:00
Jeremy Stretch
587339bea0
Add page for user to view/clear preferences
2020-04-24 10:29:06 -04:00
Jeremy Stretch
d8494e44e7
Document available user preferences
2020-04-24 09:46:02 -04:00
Jeremy Stretch
19a10cee82
Rename base template
2020-04-10 10:21:02 -04:00
hSaria
6a6959d041
Fixes #3761 : copy button for tokens
2019-12-13 18:06:14 +00:00
Sander Steffann
7f779e3942
Hide password change page when user is logged in using LDAP
2019-11-03 16:05:53 +03:00
dansheps
c208d8fc2e
* Added CSS to:
...
* Hide URLs
* Hide elements with "noprint" class
* Added noprint to:
* Header Panel
* Search Panel, Tags Panel
* Buttons
* Various list elements
* Related elements
2019-03-05 15:42:47 -06:00
Jeremy Stretch
0a71c63583
Upgraded to Django 2.1
2018-11-02 14:42:15 -04:00
Jeremy Stretch
22ed4f1b53
Merge release v2.4.6
2018-10-10 09:36:51 -04:00
Jeremy Stretch
5d10d8418e
Closes #2479 : Add user permissions for creating/modifying API tokens
2018-10-05 11:06:59 -04:00