Implement "premium price ack required" checkbox

Implement a checkbox in the "Resources" tab to allow registrars to toggle
their "premium price ack required" flag.

Tested:
  Verfied the console functionality by hand.  I've started work on an
  automated test, but we can't actually test those from blaze and the
  kokoro tests are way too time-consuming to be practical for development, so
  we're going to have to either find a way to run those locally outside of
  the normal process or make do without a test.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=190212177
This commit is contained in:
mmuller 2018-03-23 06:42:32 -07:00 committed by jianglai
parent f47965d5f6
commit 785225fc28
22 changed files with 423 additions and 50 deletions

View file

@ -49,6 +49,18 @@
<url-pattern>/registrar-settings</url-pattern>
</servlet-mapping>
<!--
Registrar Self-serve console to support updating the premium price ack
flag. Ideally, this should be handled by /registrar-settings (above), but
unfortunately the console is broken and registrar-settings doesn't support
this use-case as it requires fields that are not universally sent during
updates.
-->
<servlet-mapping>
<servlet-name>frontend-servlet</servlet-name>
<url-pattern>/registrar-premium-price-ack</url-pattern>
</servlet-mapping>
<!-- HTTP WHOIS. -->
<servlet-mapping>
<servlet-name>frontend-servlet</servlet-name>