Skip to content

Commit

Permalink
Add some building blocks
Browse files Browse the repository at this point in the history
 * Add ComponentFormMixin which automatically leverages component widgets
 * Default frame has a max-width which is overriden on list pages to use full width
 * Refresh number claiming for twilio / nexmo
 * Move bulk sender / voice caller to channel menu
 * Use modax for channel removals
 * Start on channel detail page
  • Loading branch information
ericnewcomer committed Jul 30, 2020
1 parent c0526c4 commit b7a8e3c
Show file tree
Hide file tree
Showing 29 changed files with 784 additions and 637 deletions.
6 changes: 4 additions & 2 deletions code_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

parser = argparse.ArgumentParser(description="Code checks")
parser.add_argument("--skip-compilemessages", action="store_true")
parser.add_argument("--skip-flake", action="store_true")
parser.add_argument("--debug", action="store_true")
args = parser.parse_args()

Expand Down Expand Up @@ -73,8 +74,9 @@ def get_current_msgids():
status("Running black")
cmd("black --line-length=119 --target-version=py36 temba")

status("Running flake8")
cmd("flake8")
if not args.skip_flake:
status("Running flake8")
cmd("flake8")

status("Running isort")
cmd("isort -rc temba")
Expand Down
82 changes: 40 additions & 42 deletions locale/en_US/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2020-07-29 00:16+0000\n"
"POT-Creation-Date: 2020-07-30 21:00+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <[email protected]>\n"
Expand Down Expand Up @@ -2096,10 +2096,19 @@ msgstr ""
msgid "Allow international sending"
msgstr ""

msgid "The number or address of this channel"
msgid "Phone number of this channel"
msgstr ""

msgid "Phone number of this channel"
msgid "Settings"
msgstr ""

msgid "Channel Log"
msgstr ""

msgid "Call Log"
msgstr ""

msgid "Edit Channel"
msgstr ""

msgid "Disable Bulk Sending"
Expand All @@ -2111,7 +2120,16 @@ msgstr ""
msgid "Disable Voice Calling"
msgstr ""

msgid "Remove"
msgid "Disable Voice Caliing"
msgstr ""

msgid "Enable Voice Calling"
msgstr ""

msgid "Delete"
msgstr ""

msgid "Delete Channel"
msgstr ""

msgid "Whitelist Domain"
Expand All @@ -2135,6 +2153,12 @@ msgstr ""
msgid "Remove Android"
msgstr ""

msgid "Remove Voice Calling"
msgstr ""

msgid "Remove Bulk Sending"
msgstr ""

msgid "We have disconnected your Twilio number. If you do not need this number you can delete it from the Twilio website."
msgstr ""

Expand Down Expand Up @@ -2238,9 +2262,6 @@ msgstr ""
msgid "Sync"
msgstr ""

msgid "Delete"
msgstr ""

msgid "Your classifier has been synched."
msgstr ""

Expand Down Expand Up @@ -2813,6 +2834,9 @@ msgstr ""
msgid "The following flows are still used by campaigns so could not be archived: %(flows)s"
msgstr ""

msgid "Remove"
msgstr ""

msgid "Contact Name"
msgstr ""

Expand Down Expand Up @@ -3722,9 +3746,6 @@ msgstr ""
msgid "%(name)s Credits Alert"
msgstr ""

msgid "Settings"
msgstr ""

msgid "Used"
msgstr ""

Expand Down Expand Up @@ -3924,6 +3945,9 @@ msgstr ""
msgid "Failed to send email with STMP server configuration"
msgstr ""

msgid "Workspaces"
msgstr ""

msgid "Topups"
msgstr ""

Expand Down Expand Up @@ -3960,9 +3984,6 @@ msgstr ""
msgid "Two Factor Authentication"
msgstr ""

msgid "Workspaces"
msgstr ""

msgid "New Workspace"
msgstr ""

Expand Down Expand Up @@ -4717,13 +4738,8 @@ msgstr ""
msgid "Additionally you will need to make sure the following IP addresses are whitelisted"
msgstr ""

msgid "Are you sure you want to remove this number from your workspace?"
msgstr ""

msgid "Cancel"
msgstr ""

msgid "Remove Phone"
#, python-format
msgid "You are about to disable bulk sending for <span class='font-normal'> %(object)s. </span> There is no way to undo this. Are you sure?"
msgstr ""

msgid "Bulk sending enabled"
Expand All @@ -4732,12 +4748,6 @@ msgstr ""
msgid "Voice calls enabled"
msgstr ""

msgid "Channel Log"
msgstr ""

msgid "Call Log"
msgstr ""

msgid "Last synced"
msgstr ""

Expand All @@ -4753,9 +4763,6 @@ msgid_plural "unsent messages"
msgstr[0] ""
msgstr[1] ""

msgid "Enable Voice"
msgstr ""

msgid "unsent messages"
msgid_plural "unsent message"
msgstr[0] ""
Expand Down Expand Up @@ -4833,19 +4840,7 @@ msgid_plural "Used by %(num_flows)s flows:"
msgstr[0] ""
msgstr[1] ""

msgid "Are you sure you want to remove bulk sending for this number?"
msgstr ""

msgid "Disable Voice Calls"
msgstr ""

msgid "Are you sure you want to remove voice calling for this number?"
msgstr ""

msgid "Ok"
msgstr ""

msgid "Select a Country"
msgid "Cancel"
msgstr ""

#, python-format
Expand Down Expand Up @@ -5855,6 +5850,9 @@ msgstr ""
msgid "This classifier cannot be removed because it in use."
msgstr ""

msgid "Ok"
msgstr ""

msgid "Hold up!"
msgstr ""

Expand Down
Binary file modified locale/es/LC_MESSAGES/django.mo
Binary file not shown.
Loading

0 comments on commit b7a8e3c

Please sign in to comment.