Create a widget for editing an amount and its unit of measurement.

Review Request #13051 — Created May 19, 2023 and updated

maubin
Djblets
release-3.x
13045
djblets

Create a widget for editing an amount and its unit of measurement. This can be
used for setting an integer amount that can be described in a set of units,
for example a number of days, weeks, months, years, or a number of bytes,
kilobytes, megabytes, etc. The widget has a number input and a dropdown select
which contains the units to choose from.

  • Ran unit tests.
  • Tested with the upcoming client web-based logon change for Review Board
    that uses the widget.
Summary
Create a widget for editing an amount and its unit of measurement.
Description From Last Updated

This is basically the same as $input.toggle(val)

daviddavid
Checks run (2 succeeded)
flake8 passed.
JSHint passed.
david
  1. 
      
  2. djblets/forms/templates/djblets_forms/amount_selector_widget.html (Diff revision 1)
     
     
     
     
     
     
     
     

    This is basically the same as $input.toggle(val)

  3. 
      
Loading...