mirror of
https://github.com/ansible/awx.git
synced 2026-03-27 05:45:02 -02:30
more fixes to About Tower dialog modal
This commit is contained in:
@@ -58,15 +58,21 @@ angular.module('AboutAnsibleHelpModal', ['RestServices', 'Utilities','ModalDialo
|
|||||||
paddedStr = paddedStr + " ";
|
paddedStr = paddedStr + " ";
|
||||||
}
|
}
|
||||||
$('#about-modal-version').html(paddedStr);
|
$('#about-modal-version').html(paddedStr);
|
||||||
|
scope.modalOK = function(){
|
||||||
|
$('#about-modal-dialog').dialog('close');
|
||||||
|
};
|
||||||
CreateDialog({
|
CreateDialog({
|
||||||
id: 'about-modal-dialog',
|
id: 'about-modal-dialog',
|
||||||
scope: scope,
|
scope: scope,
|
||||||
buttons: [],
|
// buttons: [],
|
||||||
width: 730,
|
width: 700,
|
||||||
height: 320,
|
height: 380,
|
||||||
minWidth: 300,
|
minWidth: 300,
|
||||||
// title: , //'<img src="static/img/tower_login_logo.png">' ,//'About Ansible',
|
// title: , //'<img src="static/img/tower_login_logo.png">' ,//'About Ansible',
|
||||||
callback: 'DialogReady'
|
callback: 'DialogReady',
|
||||||
|
onOpen: function(){
|
||||||
|
$('#dialog-ok-button').focus();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
@@ -128,15 +128,19 @@ a:focus {
|
|||||||
background-color: #FFF;
|
background-color: #FFF;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cowsay {
|
||||||
|
padding-left: 30px;
|
||||||
|
max-width: 340px;
|
||||||
|
background-color: white;
|
||||||
|
border-style: none;
|
||||||
|
|
||||||
#cowsay{
|
|
||||||
margin-right: 10px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#about-modal-titlelogo{
|
#about-modal-titlelogo{
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
width: 228px;
|
width: 175px;
|
||||||
height: 70px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#copyright-text{
|
#copyright-text{
|
||||||
|
|||||||
@@ -99,6 +99,9 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
action();
|
action();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('#alert-modal2').on('shown.bs.modal', function () {
|
||||||
|
$('#alert2_ok_btn').focus();
|
||||||
|
});
|
||||||
$(document).bind('keydown', function (e) {
|
$(document).bind('keydown', function (e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27) {
|
||||||
$('#alert-modal2').modal('hide');
|
$('#alert-modal2').modal('hide');
|
||||||
@@ -122,7 +125,9 @@ angular.module('Utilities', ['RestServices', 'Utilities'])
|
|||||||
action();
|
action();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
$('#alert-modal').on('shown.bs.modal', function () {
|
||||||
|
$('#alert_ok_btn').focus();
|
||||||
|
});
|
||||||
$(document).bind('keydown', function (e) {
|
$(document).bind('keydown', function (e) {
|
||||||
if (e.keyCode === 27) {
|
if (e.keyCode === 27) {
|
||||||
$('#alert-modal').modal('hide');
|
$('#alert-modal').modal('hide');
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
|
|
||||||
<div id="about-dialog-body">
|
<div id="about-dialog-body">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-sm-5 col-xs-12">
|
<div class="col-sm-5 col-xs-12 text-center">
|
||||||
<pre id='cowsay'>
|
<pre id='cowsay' style="text-align:left;">
|
||||||
________________
|
________________
|
||||||
/ Tower Version \
|
/ Tower Version \
|
||||||
\<span id='about-modal-version'></span>/
|
\<span id='about-modal-version'></span>/
|
||||||
@@ -14,12 +14,12 @@
|
|||||||
|| ||
|
|| ||
|
||||||
</pre>
|
</pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-7 col-xs-12">
|
<div class="col-sm-7 col-xs-12 text-center">
|
||||||
<img id="about-modal-titlelogo" src="static/img/ansible_tower_logo_minimalc.png"><br>
|
<img id="about-modal-titlelogo" src="static/img/ansible_tower_logo_minimalc.png"><br>
|
||||||
<!-- <p>Tower Version <span id='about-modal-version'></span></p> -->
|
<p>Copyright 2014. All rights reserved.</p>
|
||||||
<textarea id="copyright-text" class="form-control" rows="3" readonly>Copyright 2014. All rights reserved.
Ansible is a registered trademark of Ansible, Inc.
Ansible Tower is a trademark pending registration. </textarea>
|
<p>Ansible is a registered trademark of Ansible, Inc.</p>
|
||||||
|
<p>Ansible Tower is a trademark pending registration.</p>
|
||||||
<br>
|
<br>
|
||||||
<p>Visit <a href="http://www.ansible.com" target="_blank">Ansible.com</a> for more information!</p>
|
<p>Visit <a href="http://www.ansible.com" target="_blank">Ansible.com</a> for more information.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user