Add a button in the admin panel to check OT&E status of a registrar

For now, it only displays a status of "Passed: true|false" or an error message in simple text. In further work we will make the UI nicer.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=229971564
This commit is contained in:
gbrodman 2019-01-18 12:14:17 -08:00 committed by Ben McIlwain
parent 87ab149049
commit 5f87c3bff3
13 changed files with 195 additions and 82 deletions

View file

@ -14,8 +14,6 @@
{namespace registry.soy.registrar.admin}
/** Registrar admin settings page for view and edit. */
{template .settings}
{@param allowedTlds: list<string>}
@ -48,6 +46,9 @@
<label class="{css('setting-label')}">OT&amp;E setup page</label>
<td class="{css('setting')}">
<p>Generate new OT&amp;E accounts <a href="/registrar-ote-setup">here</a>
</p></td>
</tr>
{call .oteStatus /}
</table>
</form>
{/template}
@ -64,3 +65,17 @@
<input name="{$name}" value="{$tld}" readonly>
</div>
{/template}
{template .oteStatus}
<tr class="{css('kd-settings-pane-section')}">
<td class="{css('setting')}">
<button
type="button"
id="btn-ote-status"
value="Check OT&amp;E status"
class="{css('kd-button')} {css('kd-button-submit')}">Check OT&amp;E status
</button>
</td>
<td id="ote-status-area-parent" class="{css('setting')}"></td>
</tr>
{/template}