fixes with dialogs

This commit is contained in:
Steve Nyemba 2022-10-20 17:05:54 -05:00
parent dde722191e
commit 7426705ffb
4 changed files with 32 additions and 3 deletions

View File

@ -40,6 +40,7 @@ def _index ():
_index_page = "index.html" _index_page = "index.html"
except Exception as e: except Exception as e:
_index_page = "404.html" _index_page = "404.html"
_args['uri'] = request.base_url
pass pass
print (_config ); print (_config );
return render_template(_index_page,**_args) return render_template(_index_page,**_args)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB

1
static/img/logo.svg Normal file
View File

@ -0,0 +1 @@
<?xml version="1.0" ?><!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'><svg enable-background="new 0 0 50 50" id="Layer_1" version="1.1" viewBox="0 0 50 50" xml:space="preserve" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><g><g><path d="M45.47913,47.26579H4.5208c-1.9445,0-3.52083-1.57633-3.52083-3.52083V6.25508 c0-1.9445,1.57633-3.52083,3.52083-3.52083h40.95833c1.9445,0,3.52083,1.57633,3.52083,3.52083v37.48988 C48.99996,45.68946,47.42363,47.26579,45.47913,47.26579z" fill="#E7E3E6"/><path d="M48.99997,9.76048V6.25507c0-1.94453-1.57633-3.52086-3.52081-3.52086H4.52079 c-1.94448,0-3.52081,1.57633-3.52081,3.52086v3.50541H48.99997z" fill="#53B1E2"/><path d="M17.06462,10.40814H4.45078v-2.7194c0-0.67552,0.54762-1.22313,1.22313-1.22313h10.16758 c0.67552,0,1.22313,0.54762,1.22313,1.22313V10.40814z" fill="#E7E3E6"/><path d="M29.67847,9.76048H17.06462V7.68875c0-0.67552,0.54762-1.22313,1.22313-1.22313h10.16758 c0.67552,0,1.22313,0.54762,1.22313,1.22313V9.76048z" fill="#D2D2D2"/><circle cx="40.42996" cy="6.54935" fill="#E7E3E6" r="1.34955"/><circle cx="36.3145" cy="6.54935" fill="#E7E3E6" r="1.34955"/></g><g><rect fill="#D2D2D2" height="8.07299" width="41.91538" x="4.26873" y="12.18866"/><g><circle cx="10.19687" cy="25.56284" fill="#EC6E62" r="2.83107"/><circle cx="25.22643" cy="25.56284" fill="#85BD57" r="2.83107"/><circle cx="40.25598" cy="25.56284" fill="#53B1E2" r="2.83107"/><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="5.72802" y="31.618"/><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="5.72802" y="30.11498"/><rect fill="#D2D2D2" height="0.79575" width="6.33346" x="5.72803" y="33.12099"/><g><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="20.75758" y="31.618"/><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="20.75758" y="30.11498"/><rect fill="#D2D2D2" height="0.79575" width="6.33346" x="20.75757" y="33.12099"/></g><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="35.78713" y="31.618"/><rect fill="#D2D2D2" height="0.79573" width="8.9377" x="35.78713" y="30.11498"/><rect fill="#D2D2D2" height="0.79575" width="6.33346" x="35.78712" y="33.12099"/><rect fill="#EC6E62" height="7.46029" width="11.23692" x="4.57841" y="35.93731"/><rect fill="#85BD57" height="7.46029" width="11.23692" x="19.60796" y="35.93731"/><rect fill="#53B1E2" height="7.46029" width="11.23692" x="34.63752" y="35.93731"/></g></g></g></svg>

After

Width:  |  Height:  |  Size: 2.4 KiB

View File

@ -36,9 +36,36 @@ Vanderbilt University Medical Center
<script src="{{system.context}}/static/js/search.js"></script> <script src="{{system.context}}/static/js/search.js"></script>
<script src="{{system.context}}/static/js/fontawesome/js/all.js"></script> <script src="{{system.context}}/static/js/fontawesome/js/all.js"></script>
</head> </head>
<style>
.dialog div:first-child{
width:500px;
padding:4px;
}
.fa-circle-xmark {color:maroon}
</style>
<script>
$(document).ready(function(){
_html = jx.dom.get.value('dialog')
jx.dom.hide('dialog')
jx.modal.show(_html)
})
</script>
<body> <body>
<div align="center" class="large-text"> <div class="main">
404 <div class="header">
{%include "header.html" %}
</div>
<div id="dialog" class="dialog">
<div align="center" class="large-text" style="font-size:48px">
<p><i class="fa-regular fa-circle-xmark"></i> 404
</p>
</div>
<p></p>
<div class="border-top" style="padding:8px">
<div>Page Not Found or Content Unavailable</div>
</div>
</div>
</div> </div>
</body></html> </body></html>