django-bom 1.238__py3-none-any.whl → 1.239__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.
- bom/templates/bom/_subscription_panel.html +6 -0
- bom/templates/bom/settings.html +1 -0
- bom/views/views.py +2 -0
- {django_bom-1.238.dist-info → django_bom-1.239.dist-info}/METADATA +1 -1
- {django_bom-1.238.dist-info → django_bom-1.239.dist-info}/RECORD +8 -7
- {django_bom-1.238.dist-info → django_bom-1.239.dist-info}/WHEEL +0 -0
- {django_bom-1.238.dist-info → django_bom-1.239.dist-info}/licenses/LICENSE +0 -0
- {django_bom-1.238.dist-info → django_bom-1.239.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{# Placeholder for subscription/billing UI. Host applications (e.g., indabom) can override this template by providing their own `bom/_subscription_panel.html` earlier in the template search path. #}
|
|
2
|
+
<div class="row">
|
|
3
|
+
<div class="col">
|
|
4
|
+
<i>As a self-hosted django-bom app, you can upgrade any organization using the admin dashboard by finding your <b>Organization</b> and changing the <b>Subscription</b> property to <b>Pro</b>.</i>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
bom/templates/bom/settings.html
CHANGED
|
@@ -186,6 +186,7 @@
|
|
|
186
186
|
<div id="organization" class="col s12">
|
|
187
187
|
{% if user.bom_profile.role == 'A' %}
|
|
188
188
|
<h3>Organization</h3>
|
|
189
|
+
{% include 'bom/_subscription_panel.html' %}
|
|
189
190
|
<div class="row">
|
|
190
191
|
<div class="col s12">
|
|
191
192
|
<form name="seller" action="{% url 'bom:settings' tab_anchor=ORGANIZATION_TAB %}" method="post" class="col s12" enctype="multipart/form-data">
|
bom/views/views.py
CHANGED
|
@@ -361,6 +361,8 @@ def bom_settings(request, tab_anchor=None):
|
|
|
361
361
|
'first_name', 'last_name', 'email')
|
|
362
362
|
users_in_organization_count = users_in_organization.count()
|
|
363
363
|
has_member_capacity = users_in_organization_count < organization.subscription_quantity
|
|
364
|
+
# Seats available for adding new members (never negative)
|
|
365
|
+
seats_available = max(organization.subscription_quantity - users_in_organization_count, 0)
|
|
364
366
|
is_pro = organization.subscription == constants.SUBSCRIPTION_TYPE_PRO
|
|
365
367
|
user_can_manage_members = request.user.has_perm('bom.manage_members', organization)
|
|
366
368
|
google_authentication = UserSocialAuth.objects.filter(user=user).first()
|
|
@@ -125,6 +125,7 @@ bom/static/bom/js/jquery-3.4.1.min.js,sha256=CSXorXvZcTkaix6Yvo6HppcZGetbYMGWSFl
|
|
|
125
125
|
bom/static/bom/js/jquery.ba-floatingscrollbar.min.js,sha256=NptA5rS2zjhkcu26WQJtMr34psHYzUYRsLrSziTusgg,1271
|
|
126
126
|
bom/static/bom/js/jquery.treetable.js,sha256=JEXnh_LuKYxk8CUIT1anQ4es4nfOqC0bds_NjsbMBUI,16611
|
|
127
127
|
bom/static/bom/js/materialize.min.js,sha256=9aWZlbcIvNSnb4BWaUYlFNGylNeTWUL_yffW_3Dbk_o,181114
|
|
128
|
+
bom/templates/bom/_subscription_panel.html,sha256=KE3f4DJ72c93GkW9O6bJw94ht05wNZxORP7o31qafcg,461
|
|
128
129
|
bom/templates/bom/account-delete.html,sha256=YjtG5o-sJHuK4Np3vyEliySF-eAwmFn0ROynDdvPMsU,728
|
|
129
130
|
bom/templates/bom/add-manufacturer-part.html,sha256=gM5_-RfgiuQwfns7s1J006d6ypKMbdG8F_kdLGQrJjA,3242
|
|
130
131
|
bom/templates/bom/add-sellerpart.html,sha256=W9rUYrfpqw3yx45S86GIpepdmN_8Xrf23urYexgObBw,4279
|
|
@@ -159,7 +160,7 @@ bom/templates/bom/part-revision-release.html,sha256=voG7wmYc1Cm3e_H1IasvQcPuyqnn
|
|
|
159
160
|
bom/templates/bom/search-help.html,sha256=Wh_tXBJtz0bznk0F1C7OSdRhMe2qpOs9NMCBb2i0CFI,4398
|
|
160
161
|
bom/templates/bom/seller-info.html,sha256=MACsHMYQXMWfRslXuvh9hD2z28VXzVi0DSy4yg7WQMk,3595
|
|
161
162
|
bom/templates/bom/sellers.html,sha256=6ut7LwRMGUKYB4BRjiSpDBP9BGgqT7nxpNQpUVWDvkw,5412
|
|
162
|
-
bom/templates/bom/settings.html,sha256=
|
|
163
|
+
bom/templates/bom/settings.html,sha256=NNwmlPv2Uk3oaMLm7ESfJ9e9Q7kPFo2y9Q4yfe63O0Y,25452
|
|
163
164
|
bom/templates/bom/signup.html,sha256=tB_x7q3IufSNXsd9Dfh8fdWpkiWSGH2_Zgw749B1PaU,884
|
|
164
165
|
bom/templates/bom/table_of_contents.html,sha256=7wXWOfmVkk5Itjax5x1PE-g5QjxqmYBr7RW8NgtGRng,1763
|
|
165
166
|
bom/templates/bom/upload-bom.html,sha256=qGlI9HoUNe9H2m5T5TqKWGphaNupz3Y0020h_7GebsU,5230
|
|
@@ -177,9 +178,9 @@ bom/third_party_apis/mouser.py,sha256=q2-p0k2n-LNel_QRlfak0kAXT-9hh59k_Pt51PTG09
|
|
|
177
178
|
bom/third_party_apis/test_apis.py,sha256=2W0jtTisGTmktC7l556pn9-pZYseTQmmQfo6_4uP4Dc,679
|
|
178
179
|
bom/views/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
179
180
|
bom/views/json_views.py,sha256=CaDMxHGnp2182ZV9QZfNkgM7tc_rNmokkelav9rF2dE,2462
|
|
180
|
-
bom/views/views.py,sha256=
|
|
181
|
-
django_bom-1.
|
|
182
|
-
django_bom-1.
|
|
183
|
-
django_bom-1.
|
|
184
|
-
django_bom-1.
|
|
185
|
-
django_bom-1.
|
|
181
|
+
bom/views/views.py,sha256=SvD7Yku9rPwLFmrWC0c15g_a0nC-YkCOnIqEVC32DfU,72267
|
|
182
|
+
django_bom-1.239.dist-info/licenses/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
183
|
+
django_bom-1.239.dist-info/METADATA,sha256=x2kwDE99WQthXTTXKswN4EOHZ2LFAhY9abKJyaAu1jE,7558
|
|
184
|
+
django_bom-1.239.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
185
|
+
django_bom-1.239.dist-info/top_level.txt,sha256=6zytg4lnnobI96dO-ZEadPOCslrrFmf4t2Pnv-y8x0Y,4
|
|
186
|
+
django_bom-1.239.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|