mirror of
https://github.com/zero-peak/ZeroOmega.git
synced 2025-02-02 11:08:13 -05:00
Auto-focus fields in forms on the popup menu. Fix #722.
This commit is contained in:
parent
72f8499e98
commit
23fe7dca62
@ -36,7 +36,7 @@ html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
|
|||||||
= ' '
|
= ' '
|
||||||
span(ng-show='!nameExternal.open') {{'popup_externalProfile' | tr}}
|
span(ng-show='!nameExternal.open') {{'popup_externalProfile' | tr}}
|
||||||
input.form-control(ng-show='!!nameExternal.open' ng-model='externalProfile.name' ng-blur='nameExternalForm.submit()'
|
input.form-control(ng-show='!!nameExternal.open' ng-model='externalProfile.name' ng-blur='nameExternalForm.submit()'
|
||||||
placeholder='{{"popup_externalProfileName" | tr}}' ui-validate='validateProfileName')
|
placeholder='{{"popup_externalProfileName" | tr}}' ui-validate='validateProfileName' autofocus)
|
||||||
li.request-info(ng-show='!!requestInfoProvided' class='bg-warning')
|
li.request-info(ng-show='!!requestInfoProvided' class='bg-warning')
|
||||||
a(href='#' role='button' ng-click='showRequestInfo = true' data-shortcut='requestInfo')
|
a(href='#' role='button' ng-click='showRequestInfo = true' data-shortcut='requestInfo')
|
||||||
span.glyphicon.glyphicon-warning-sign.text-warning
|
span.glyphicon.glyphicon-warning-sign.text-warning
|
||||||
@ -105,7 +105,7 @@ html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
|
|||||||
option(value='KeywordCondition') {{'condition_KeywordCondition' | tr}}
|
option(value='KeywordCondition') {{'condition_KeywordCondition' | tr}}
|
||||||
div.form-group
|
div.form-group
|
||||||
label {{'options_conditionDetails' | tr}}
|
label {{'options_conditionDetails' | tr}}
|
||||||
input.form-control.condition-details(type='text' required ng-model='rule.condition.pattern')
|
input.form-control.condition-details(type='text' required ng-model='rule.condition.pattern' autofocus)
|
||||||
div.form-group
|
div.form-group
|
||||||
label {{'options_resultProfile' | tr}}
|
label {{'options_resultProfile' | tr}}
|
||||||
div(omega-profile-select='validResultProfiles' ng-model='rule.profileName'
|
div(omega-profile-select='validResultProfiles' ng-model='rule.profileName'
|
||||||
@ -135,9 +135,10 @@ html(lang='en' ng-app='omegaPopup' ng-controller='PopupCtrl' ng-csp)
|
|||||||
.text-warning {{'popup_requestErrorWarning' | tr}}
|
.text-warning {{'popup_requestErrorWarning' | tr}}
|
||||||
p.help-block {{'popup_requestErrorWarningHelp' | tr}}
|
p.help-block {{'popup_requestErrorWarningHelp' | tr}}
|
||||||
p.help-block(ng-show='!!currentProfileCanAddRule') {{'popup_requestErrorAddCondition' | tr}}
|
p.help-block(ng-show='!!currentProfileCanAddRule') {{'popup_requestErrorAddCondition' | tr}}
|
||||||
.checkbox(ng-repeat='domain in requestInfo.domains')
|
.checkbox(ng-repeat='domain in requestInfo.domains track by domain.domain')
|
||||||
label
|
label
|
||||||
input(type='checkbox' ng-model='domainsForCondition[domain.domain]')
|
input(type='checkbox' ng-model='domainsForCondition[domain.domain]' autofocus ng-if='$index === 0')
|
||||||
|
input(type='checkbox' ng-model='domainsForCondition[domain.domain]' ng-if='$index > 0')
|
||||||
span.label.label-warning {{domain.errorCount}}
|
span.label.label-warning {{domain.errorCount}}
|
||||||
=' {{domain.domain}}'
|
=' {{domain.domain}}'
|
||||||
div.form-group(ng-show='!!currentProfileCanAddRule')
|
div.form-group(ng-show='!!currentProfileCanAddRule')
|
||||||
|
Loading…
Reference in New Issue
Block a user