diff --git a/resources/assets/admin/css/vendor.css b/resources/assets/admin/css/vendor.css index 25e2efd5..c680f32f 100644 --- a/resources/assets/admin/css/vendor.css +++ b/resources/assets/admin/css/vendor.css @@ -9520,11 +9520,11 @@ pre code { border-bottom-width: 2px; } -.table-striped tbody tr:nth-of-type(odd) { +.table-striped tbody tr:nth-of-type(odd), .rows-striped .row:nth-of-type(odd) { background-color: #F9F9F9; } -.table-hover tbody tr:hover { +.table-hover tbody tr:hover, .rows-striped .row:hover { background-color: #F5F5F5; } @@ -14168,7 +14168,7 @@ img { } .users-list img { - border-radius: 500px; + border-radius: 50%; padding: 3px; } @@ -14191,7 +14191,6 @@ img { .timeline > li { position: relative; - } .timeline > li:before, @@ -14204,7 +14203,6 @@ img { clear: both; } - .timeline > li > .timeline-panel { width: 46%; float: left; @@ -14250,7 +14248,7 @@ img { top: 26px; left: 50%; margin-left: -14px; - background-color: #ddd; + background-color: #DDD; z-index: 100; border-radius: 50%; } @@ -14349,6 +14347,7 @@ img { .ace-editor-container { position: relative; } + .ace-editor { position: absolute !important; width: 100%; @@ -14367,4 +14366,20 @@ img { .header-block img { margin-right: 10px; +} + +.truncate { + width: 90%; + white-space: nowrap; + overflow: hidden; + text-overflow: ellipsis; +} + +.bold { + font-weight: bold; +} + +.p-tb-15 { + padding-top: 15px; + padding-bottom: 15px; } \ No newline at end of file diff --git a/resources/assets/admin/js/app.js b/resources/assets/admin/js/app.js index dde0296d..4b10be8d 100644 --- a/resources/assets/admin/js/app.js +++ b/resources/assets/admin/js/app.js @@ -1346,7 +1346,6 @@ $ (function () { }); - $ (function () { $ ("body").addClass ("loaded"); @@ -1364,7 +1363,6 @@ $ (function () { } }); - /** * Makes slug from input string * @@ -1401,24 +1399,45 @@ function slugify(text, trimSpaces) { // bind some custom methods $ (document).ready (function () { - $ ('.confirm').click (function () { - var confirmMessage = $ (this).data ('confirm-message'); + var previousTitle, previousMessage; - // set some default message - if (typeof confirmMessage == 'undefined') { - confirmMessage = 'Really?'; - } + $ ('.confirm').click (function (e) { - return confirm (confirmMessage); + var titleElement = $ ('#confirmation-title'); + var messageElement = $ ('#confirmation-message'); + + previousTitle = titleElement.text (); + previousMessage = messageElement.text (); + + var confirmTitle = $ (this).data ('title'); + var confirmMessage = $ (this).data ('message'); + var href = $ (this).attr ('href'); + + $ ('#confirm-button').attr ('href', href); + + if (confirmTitle) + titleElement.text (confirmTitle); + + if (confirmMessage) + messageElement.text (confirmMessage); + + $ ('#confirm-modal').modal ('show'); + + e.preventDefault (); }); - $('#lockUrl').change(function () { + $ ('#confirm-modal').on ('hidden.bs.modal', function () { + $ ('#confirmation-title').text (previousTitle); + $ ('#confirmation-message').text (previousMessage); + }); + + $ ('#lockUrl').change (function () { $ ('.slug-source').keyup (); }); $ ('.slug-target').keyup (function () { $ (this).val (slugify ($ (this).val (), false)); - $('#lockUrl').prop('checked', true); + $ ('#lockUrl').prop ('checked', true); }); $ ('.slug-source').keyup (function () { @@ -1430,22 +1449,19 @@ $ (document).ready (function () { target.val (slugify (source.val (), true)); }); - $(function () { - $('[data-toggle="tooltip"]').tooltip() - }) + $ (function () { + $ ('[data-toggle="tooltip"]').tooltip () + }); // find if any error occured and mark tab with that error - $('.has-error').each(function () { - var error = $(this); - var tabCard = error.closest('.tab-pane'); + $ ('.has-error').each (function () { + var error = $ (this); + var tabCard = error.closest ('.tab-pane'); - $("#"+tabCard.prop('id')+"-tab").addClass('tab-with-error'); + $ ("#" + tabCard.prop ('id') + "-tab").addClass ('tab-with-error'); }); }); - - - /*********************************************** * NProgress Settings ***********************************************/ diff --git a/resources/lang/cs/admin/common.php b/resources/lang/cs/admin/common.php index 259eed6e..f2a6a17f 100644 --- a/resources/lang/cs/admin/common.php +++ b/resources/lang/cs/admin/common.php @@ -1,6 +1,10 @@ "Administrace", -"logout" => "Odhlášení", -"logoutSuccessfull" => "Odhlášení proběhlo úspěšně", + "admin" => "Administrace", + "confirmation" => "Opravdu chcete vykonat tuto akci?", + "confirmationTitle" => "Opravdu?", + "logout" => "Odhlášení", + "logoutSuccessfull" => "Odhlášení proběhlo úspěšně", + "no" => "Ne", + "yes" => "Ano", ]; diff --git a/resources/lang/en/admin/common.php b/resources/lang/en/admin/common.php index 30d10b3a..699067ab 100644 --- a/resources/lang/en/admin/common.php +++ b/resources/lang/en/admin/common.php @@ -2,5 +2,9 @@ return [ 'admin' => 'Administration', 'logout' => 'Log out', - 'logoutSuccessfull' => 'Logout was successfull.' + 'logoutSuccessfull' => 'Logout was successfull.', + 'yes' => 'Yes', + 'no' => 'No', + 'confirmationTitle' => 'Really?', + 'confirmation' => 'Do you really want to perform this action?', ]; \ No newline at end of file diff --git a/resources/views/admin/content/overview.blade.php b/resources/views/admin/content/overview.blade.php index d35f9ee7..3a7fcaf7 100644 --- a/resources/views/admin/content/overview.blade.php +++ b/resources/views/admin/content/overview.blade.php @@ -4,9 +4,9 @@ @section('headerButtons') @if($module) - - - + + + @endif @endsection @@ -21,21 +21,19 @@ @endif - - @if (count($pages)) -