diff --git a/mocha-php/src/mocha-php/themes/avondale/uwt-colors.less b/mocha-php/src/mocha-php/themes/avondale/uwt-colors.less index 6f638b5..704d66c 100644 --- a/mocha-php/src/mocha-php/themes/avondale/uwt-colors.less +++ b/mocha-php/src/mocha-php/themes/avondale/uwt-colors.less @@ -1,14 +1,27 @@ +@ThemeColor: #00acac; + +@ThemeColorSuccess: #00acac; +@ThemeColorDanger: #ff5b57; + :root { --uwt-color-default: #e9ecef; --uwt-color-primary: #348fe2; --uwt-color-secondary: #6c757d; - --uwt-color-success: #00acac; + + --uwt-color-success-light: tint(@ThemeColorSuccess, 35%); + --uwt-color-success-dark: shade(@ThemeColorSuccess, 35%); + --uwt-color-success: @ThemeColorSuccess; + --uwt-color-info: #49b6d6; --uwt-color-warning: #f59c1a; - --uwt-color-danger: #ff5b57; + + --uwt-color-danger-light: tint(@ThemeColorDanger, 35%); + --uwt-color-danger-dark: shade(@ThemeColorDanger, 35%); + --uwt-color-danger: @ThemeColorDanger; + --uwt-color-light: #f2f3f4; - --uwt-color-dark: #2d353c; + --uwt-color-dark: #2d353c; --uwt-color-inverse: #2d353c; --uwt-color-blue: #348fe2; --uwt-color-indigo: #8753de; @@ -37,7 +50,7 @@ --uwt-color-gray-800: #2d353c; --uwt-color-gray-900: #20252a; - --uwt-color-accent: #00acac; + --uwt-color-accent: @ThemeColor; --uwt-control-text: var(--uwt-color-gray-900); --uwt-dropdown-menu-highlight-background: #eff1f3; diff --git a/mocha-php/src/mocha-php/themes/avondale/uwt-listview.less b/mocha-php/src/mocha-php/themes/avondale/uwt-listview.less index 6425901..3a0381b 100644 --- a/mocha-php/src/mocha-php/themes/avondale/uwt-listview.less +++ b/mocha-php/src/mocha-php/themes/avondale/uwt-listview.less @@ -182,4 +182,9 @@ div.uwt-listview > .uwt-content } } } +} + +tr.uwt-color-danger > td +{ + background-color: var(--uwt-color-danger-light); } \ No newline at end of file diff --git a/mocha-php/src/mocha-tms/.htaccess b/mocha-php/src/mocha-tms/.htaccess new file mode 100644 index 0000000..77a1431 --- /dev/null +++ b/mocha-php/src/mocha-tms/.htaccess @@ -0,0 +1,21 @@ +RewriteEngine On + +# Do not remove this line, otherwise mod_rewrite rules will stop working +# RewriteBase / + + +RewriteCond %{REQUEST_FILENAME}.php -f + +RewriteRule ^setup$ setup.php [PT,L,QSA] + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d + +#RewriteRule ^Themes\/(.*)\/Theme\.css$ lessc.php?filename=themes/$1/uwt [PT,L,QSA] +RewriteRule ^themes\/(.*)\/theme\.css$ lessc.php?filename=themes/$1/uwt [PT,L,QSA] + +RewriteCond %{REQUEST_FILENAME} !-f +RewriteCond %{REQUEST_FILENAME} !-d +RewriteRule ^(.*)$ index.php?virtualpath=$1 [PT,L,QSA] + +#RewriteRule ^StyleSheets\/(.*)\.css$ lessc.php?filename=$1 [PT,L,QSA] diff --git a/mocha-php/src/mocha-tms/include/Configuration.inc.php b/mocha-php/src/mocha-tms/include/Configuration.inc.php index f0fa15b..72b36d5 100644 --- a/mocha-php/src/mocha-tms/include/Configuration.inc.php +++ b/mocha-php/src/mocha-tms/include/Configuration.inc.php @@ -2,6 +2,10 @@ class System { public static $Configuration; + public static function ExpandRelativePath($path) + { + return str_replace("~/", "/", $path); + } } System::$Configuration = array(); diff --git a/mocha-php/src/mocha-tms/index.php b/mocha-php/src/mocha-tms/index.php index e591b68..4ebbff1 100644 --- a/mocha-php/src/mocha-tms/index.php +++ b/mocha-php/src/mocha-tms/index.php @@ -20,7 +20,7 @@ Tenant Management System - + " />