Browse Source

Fix error modal styles

master
Igor Zhukov 11 years ago
parent
commit
b514ec10b2
  1. 9
      app/css/app.css
  2. 10
      app/partials/error_modal.html

9
app/css/app.css

@ -461,8 +461,9 @@ input[type="number"]::-webkit-inner-spin-button { @@ -461,8 +461,9 @@ input[type="number"]::-webkit-inner-spin-button {
}
.modal_simple_header {
font-size: 14px;
margin: 0 0 12px;
margin: 0 0 10px;
text-align: center;
font-weight: bold;
}
.modal_simple_form {
@ -3136,6 +3137,12 @@ ce671b orange @@ -3136,6 +3137,12 @@ ce671b orange
.countries_modal_window .modal-dialog {
max-width: 392px;
}
.countries_modal_window .modal_simple_header {
margin-bottom: 12px;
font-weight: normal;
}
.countries_modal_col {
max-height: 350px;
}

10
app/partials/error_modal.html

@ -2,8 +2,9 @@ @@ -2,8 +2,9 @@
<a class="modal-close-button" ng-click="$close()"><i></i></a>
<div class="modal-header">
<h4 ng-if="error" class="modal-title" ng-switch="error.type">
<div class="modal-body">
<h4 ng-if="error" class="modal_simple_header" ng-switch="error.type">
<span ng-switch-when="ACCOUNT_REQUIRED">No account</span>
<span ng-switch-default ng-switch="error.code">
<span ng-switch-when="400">Error</span>
@ -15,10 +16,7 @@ @@ -15,10 +16,7 @@
<span ng-switch-default>Server error</span>
</span>
</h4>
<h4 ng-if="!error" class="modal-title" ng-bind="title || 'Alert'"></h4>
</div>
<div class="modal-body">
<h4 ng-if="!error" class="modal_simple_header" ng-bind="title || 'Alert'"></h4>
<div ng-if="error" class="error_modal_description" ng-switch="error.type">
<span ng-switch-when="NETWORK_BAD_REQUEST">

Loading…
Cancel
Save