Browse Source

HUE-5875 [metastore] Drop database modal message is misplaced

Enrico Berti 8 năm trước cách đây
mục cha
commit
e539a6a

+ 3 - 2
apps/metastore/src/metastore/templates/metastore.mako

@@ -320,9 +320,9 @@ ${ components.menubar() }
           ${ csrf_token(request) | n,unicode }
           <div class="modal-header">
             <a href="#" class="close" data-dismiss="modal">&times</a>
-            <div class="alert-message block-message warning">${ _('Warning: This will drop all tables and objects within the database.') }</div>
-            </br>
             <h3 id="dropDatabaseMessage">${ _('Do you really want to delete the following database(s)?') }</h3>
+          </div>
+          <div class="modal-body">
             <ul data-bind="foreach: selectedDatabases">
               <li>
                 <span data-bind="text: name"></span>
@@ -333,6 +333,7 @@ ${ components.menubar() }
             </ul>
           </div>
           <div class="modal-footer">
+            <div class="label label-important margin-top-5 pull-left">${ _('Warning: This will drop all tables and objects within the database.') }</div>
             <input type="button" class="btn" data-dismiss="modal" value="${_('No')}">
             <input type="submit" class="btn btn-danger" value="${_('Yes')}"/>
           </div>

+ 4 - 0
desktop/core/src/desktop/static/desktop/css/hue3.css

@@ -2083,6 +2083,10 @@ input.no-margin, select.no-margin {
   margin-top: -10px;
 }
 
+.margin-top-5 {
+  margin-top: 5px;
+}
+
 .margin-top-10 {
   margin-top: 10px;
 }