diff --git a/app/assets/stylesheets/utilities.css b/app/assets/stylesheets/utilities.css index e252d8981..91c04ff53 100644 --- a/app/assets/stylesheets/utilities.css +++ b/app/assets/stylesheets/utilities.css @@ -16,6 +16,7 @@ .txt-ink { color: var(--color-ink); } .txt-reversed { color: var(--color-ink-inverted); } .txt-negative { color: var(--color-negative); } + .txt-positive { color: var(--color-positive); } .txt-subtle { color: var(--color-ink-dark); } .txt-alert { color: var(--color-marker); } .txt-undecorated { text-decoration: none; } diff --git a/saas/app/views/admin/accounts/edit.html.erb b/saas/app/views/admin/accounts/edit.html.erb index 950ecc761..76c23497c 100644 --- a/saas/app/views/admin/accounts/edit.html.erb +++ b/saas/app/views/admin/accounts/edit.html.erb @@ -1,46 +1,63 @@ -
| Account Name: | +<%= @account.name %> | +
| Subscription plan: | +<%= @account.plan.name %> | +
| Actual card count: | +<%= @account.cards_count %> cards | +
| Actual bytes used: | +<%= storage_to_human_size(@account.bytes_used) %> | +
|
+ <%= form.label :card_count, class: "txt-subtle" do %>
+ Override card count <%= "(Exceeds plan limit)" if @account.exceeding_card_limit? %> + <% end %> + |
+ <%= form.number_field :card_count, value: @account.overridden_limits&.card_count, class: "input" %> | +
|
+ <%= form.label :bytes_used, class: "txt-subtle" do %>
+ Override bytes used <%= "(Exceeds plan limit)" if @account.exceeding_storage_limit? %> + <% end %> + |
+ <%= form.number_field :bytes_used, value: @account.overridden_limits&.bytes_used, class: "input" %> | +