Added tooltip + improved error messages
This commit is contained in:
parent
6824bc0ef2
commit
305e73c190
3 changed files with 5 additions and 5 deletions
|
@ -49,7 +49,7 @@ $scopes = $this->getParam('scopes', []);
|
||||||
<input type="hidden" name="projectId" data-ls-bind="{{router.params.project}}" />
|
<input type="hidden" name="projectId" data-ls-bind="{{router.params.project}}" />
|
||||||
<input type="hidden" name="keyId" data-ls-bind="{{key.$id}}" />
|
<input type="hidden" name="keyId" data-ls-bind="{{key.$id}}" />
|
||||||
|
|
||||||
<label data-ls-attrs="for=name-{{key.$id}}">Name</label>
|
<label data-ls-attrs="for=name-{{key.$id}}">Name <span class="tooltip large" data-tooltip="Choose any name that will help you distinguish between your different API keys."><i class="icon-question"></i></span></label>
|
||||||
<input type="text" class="full-width" data-ls-attrs="id=name-{{key.$id}}" name="name" required autocomplete="off" data-ls-bind="{{key.name}}" />
|
<input type="text" class="full-width" data-ls-attrs="id=name-{{key.$id}}" name="name" required autocomplete="off" data-ls-bind="{{key.name}}" />
|
||||||
|
|
||||||
<label data-ls-attrs="for=scopes-{{key.$id}}">Scopes (<a data-ls-attrs="href={{env.HOME}}/docs/keys" target="_blank" rel="noopener">Learn more</a>)</label>
|
<label data-ls-attrs="for=scopes-{{key.$id}}">Scopes (<a data-ls-attrs="href={{env.HOME}}/docs/keys" target="_blank" rel="noopener">Learn more</a>)</label>
|
||||||
|
@ -144,7 +144,7 @@ $scopes = $this->getParam('scopes', []);
|
||||||
|
|
||||||
<input type="hidden" name="projectId" data-ls-bind="{{router.params.project}}" />
|
<input type="hidden" name="projectId" data-ls-bind="{{router.params.project}}" />
|
||||||
|
|
||||||
<label for="name">Name</label>
|
<label for="name">Name <span class="tooltip large" data-tooltip="Choose any name that will help you distinguish between your different API keys."><i class="icon-question"></i></span></label>
|
||||||
<input type="text" class="full-width" id="name" name="name" required autocomplete="off" />
|
<input type="text" class="full-width" id="name" name="name" required autocomplete="off" />
|
||||||
|
|
||||||
<label for="scopes">Scopes (<a data-ls-attrs="href={{env.HOME}}/docs/keys" target="_blank" rel="noopener">Learn more</a>)</label>
|
<label for="scopes">Scopes (<a data-ls-attrs="href={{env.HOME}}/docs/keys" target="_blank" rel="noopener">Learn more</a>)</label>
|
||||||
|
|
|
@ -21,7 +21,7 @@ class CNAME extends Validator
|
||||||
|
|
||||||
public function getDescription()
|
public function getDescription()
|
||||||
{
|
{
|
||||||
return 'Inavlid CNAME record';
|
return 'Invalid CNAME record';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -85,8 +85,8 @@ class Origin extends Validator
|
||||||
return 'Unsupported platform';
|
return 'Unsupported platform';
|
||||||
}
|
}
|
||||||
|
|
||||||
return 'Inavlid Origin. Register your new client ('.$this->host.') as a new '
|
return 'Invalid Origin. Register your new client ('.$this->host.') as a new '
|
||||||
.$this->platforms[$this->client].' platform on your project console';
|
.$this->platforms[$this->client].' platform on your project console dashboard';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue