adminita 0.1.2__py3-none-any.whl → 0.1.4__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -11,7 +11,27 @@
11
11
 
12
12
 
13
13
  {% block content %}
14
- <form method="post" id="{{ opts.model_name }}_form" enctype="multipart/form-data" class="space-y-6">
14
+ <!-- Object Tools (History, View on Site) -->
15
+ {% if change and not is_popup %}
16
+ <div class="mb-6 flex items-center justify-end space-x-3">
17
+ <a href="{% url opts|admin_urlname:'history' original.pk|admin_urlquote %}" class="inline-flex items-center px-4 py-2 border border-gray-300 dark:border-gray-600 hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-700 dark:text-gray-300 rounded-lg font-medium text-sm transition-colors">
18
+ <svg class="w-4 h-4 mr-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
19
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z"/>
20
+ </svg>
21
+ {% trans 'History' %}
22
+ </a>
23
+ {% if has_absolute_url %}
24
+ <a href="{{ absolute_url }}" class="inline-flex items-center px-4 py-2 bg-blue-600 hover:bg-blue-700 text-white rounded-lg font-medium text-sm transition-colors" target="_blank">
25
+ {% trans 'View on site' %}
26
+ <svg class="w-4 h-4 ml-2" fill="none" stroke="currentColor" viewBox="0 0 24 24">
27
+ <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"/>
28
+ </svg>
29
+ </a>
30
+ {% endif %}
31
+ </div>
32
+ {% endif %}
33
+
34
+ <form method="post" id="{{ opts.model_name }}_form" enctype="multipart/form-data" class="space-y-6">
15
35
  {% csrf_token %}
16
36
 
17
37
  {% if errors %}
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: adminita
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: A modern admin interface for Django using Tailwind CSS v4
5
5
  Author-email: Adminita <hello@todiane.com>
6
6
  License: MIT
@@ -7,7 +7,7 @@ adminita/static/css/output.css,sha256=iESJzTwRkBGsrzaxp-O7gDov40CAYVxx06Zh6tP6vt
7
7
  adminita/static/src/input.css,sha256=RJdxa-y5oOawPZfNDdDfFdDWokF2BbPsdTKtXDVYL70,11875
8
8
  adminita/templates/admin/app_index.html,sha256=rPlhwWcDz_6WyszObeVGsCx-xfEwSBzC2iDx6ZO5Hf8,3206
9
9
  adminita/templates/admin/base.html,sha256=IZVQHMmU2mOvZCZ2s0_J1aPbB81yMP4hNC5JmffULRY,9922
10
- adminita/templates/admin/change_form.html,sha256=iDkKdYrpNtrMe3XX_Cooo0ueQ9tRYt5Ps7xWXkd-mgM,8808
10
+ adminita/templates/admin/change_form.html,sha256=QsRQSoI_s9wTVo9ui2cr5zwbK9CBVZA8eC8j6qs1AB4,10174
11
11
  adminita/templates/admin/change_list.html,sha256=89ip4IoaJ5-0JAISFm_YCNRHMC3cPUp0318Ty5J54LU,9028
12
12
  adminita/templates/admin/delete_confirmation.html,sha256=vk08fctcOIDGmuEc1QBSDcEizIlX8H-Fqt2ibKuC3wo,5764
13
13
  adminita/templates/admin/delete_selected_confirmation.html,sha256=ddGh4fEVzGLPYUNuEgdPNwV4h5MjxG3h_-nBy4DcVjM,6043
@@ -17,8 +17,8 @@ adminita/templates/admin/login.html,sha256=9HsOKISPrsxVDvdgm9s9oNnz1CZYAHHbjga3s
17
17
  adminita/templates/admin/object_history.html,sha256=t01XSu9xqeGIs8QZNtZav6jchyH1_8dmz9VTG-0HONE,6718
18
18
  adminita/templates/admin/password_change_done.html,sha256=_n0CtRSyi5J-E7wsTZqn4u7URs1eL294D6ipo5MpWVI,1831
19
19
  adminita/templates/admin/password_change_form.html,sha256=fw58OLBteChy7r0DRbCiFTsk7Twa5fz1FAiFxZ9DH5c,7304
20
- adminita-0.1.2.dist-info/licenses/LICENSE,sha256=pH2s9_dYGXbt81EPn0RTenMzlMmgH65KfQhnUuENiT0,1131
21
- adminita-0.1.2.dist-info/METADATA,sha256=QMwEQjsxqiDful2-OhaaaQRZoVFruTyv8q60d3WLeB0,12205
22
- adminita-0.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
- adminita-0.1.2.dist-info/top_level.txt,sha256=bHXkKMEo8dBqliVV347K_MWJG-dyuNzj9cwXYg6gEa8,9
24
- adminita-0.1.2.dist-info/RECORD,,
20
+ adminita-0.1.4.dist-info/licenses/LICENSE,sha256=pH2s9_dYGXbt81EPn0RTenMzlMmgH65KfQhnUuENiT0,1131
21
+ adminita-0.1.4.dist-info/METADATA,sha256=UeETlfFNuZ_nlS7EoCyyxRh2rHlxjz6S5pS62iBXPsA,12205
22
+ adminita-0.1.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
23
+ adminita-0.1.4.dist-info/top_level.txt,sha256=bHXkKMEo8dBqliVV347K_MWJG-dyuNzj9cwXYg6gEa8,9
24
+ adminita-0.1.4.dist-info/RECORD,,