Added updated .gitignore with storage directory.

This commit is contained in:
Alex Tselegidis 2016-07-13 22:56:05 +02:00
parent b8b1d546fd
commit bb83b6b839
7 changed files with 102 additions and 42 deletions

9
.gitignore vendored
View file

@ -3,6 +3,11 @@ composer
easyappointments.zip easyappointments.zip
node_modules node_modules
npm-debug.log npm-debug.log
src/application/logs/* src/storage/cache/*
!src/application/logs/index.html !src/storage/cache/.htaccess
!src/storage/cache/index.html
src/storage/logs/*
!src/storage/logs/index.html
src/storage/uploads/*
!src/storage/uploads/index.html
src/config.php src/config.php

View file

@ -48,31 +48,22 @@
</div> </div>
<div id="calendar-actions" class="col-xs-12 col-md-7"> <div id="calendar-actions" class="col-xs-12 col-md-7">
<div class="btn-group"> <?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER)
<?php if (($role_slug == DB_SLUG_ADMIN || $role_slug == DB_SLUG_PROVIDER) && Config::GOOGLE_SYNC_FEATURE == TRUE): ?>
&& Config::GOOGLE_SYNC_FEATURE == TRUE) { ?> <button id="google-sync" class="btn btn-primary"
<button id="google-sync" class="btn btn-primary" title="<?php echo $this->lang->line('trigger_google_sync_hint'); ?>">
title="<?php echo $this->lang->line('trigger_google_sync_hint'); ?>"> <span class="glyphicon glyphicon-refresh"></span>
<span class="glyphicon glyphicon-refresh"></span> <span><?php echo $this->lang->line('synchronize'); ?></span>
<span><?php echo $this->lang->line('synchronize'); ?></span>
</button>
<button id="enable-sync" class="btn btn-default" data-toggle="button"
title="<?php echo $this->lang->line('enable_appointment_sync_hint'); ?>">
<span class="glyphicon glyphicon-calendar"></span>
<span><?php echo $this->lang->line('enable_sync'); ?></span>
</button>
<?php } ?>
<button id="reload-appointments" class="btn btn-default"
title="<?php echo $this->lang->line('reload_appointments_hint'); ?>">
<span class="glyphicon glyphicon-repeat"></span>
<?php echo $this->lang->line('reload'); ?>
</button> </button>
</div>
<button id="enable-sync" class="btn btn-default" data-toggle="button"
title="<?php echo $this->lang->line('enable_appointment_sync_hint'); ?>">
<span class="glyphicon glyphicon-calendar"></span>
<span><?php echo $this->lang->line('enable_sync'); ?></span>
</button>
<?php endif ?>
<?php if ($privileges[PRIV_APPOINTMENTS]['add'] == TRUE): ?> <?php if ($privileges[PRIV_APPOINTMENTS]['add'] == TRUE): ?>
<div class="btn-group">
<button id="insert-appointment" class="btn btn-primary" <button id="insert-appointment" class="btn btn-primary"
title="<?php echo $this->lang->line('new_appointment_hint'); ?>"> title="<?php echo $this->lang->line('new_appointment_hint'); ?>">
<span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-plus"></span>
@ -84,8 +75,13 @@
<span class="glyphicon glyphicon-plus"></span> <span class="glyphicon glyphicon-plus"></span>
<?php echo $this->lang->line('unavailable'); ?> <?php echo $this->lang->line('unavailable'); ?>
</button> </button>
</div>
<?php endif ?> <?php endif ?>
<button id="reload-appointments" class="btn btn-default"
title="<?php echo $this->lang->line('reload_appointments_hint'); ?>">
<span class="glyphicon glyphicon-repeat"></span>
<?php echo $this->lang->line('reload'); ?>
</button>
</div> </div>
</div> </div>

View file

@ -1,5 +1,5 @@
<div id="footer"> <div id="footer">
<div id="footer-content"> <div id="footer-content" class="col-xs-12 col-md-6">
Powered by Powered by
<a href="http://easyappointments.org">Easy!Appointments <a href="http://easyappointments.org">Easy!Appointments
<?php <?php
@ -20,7 +20,7 @@
</a> </a>
</div> </div>
<div id="footer-user-display-name"> <div id="footer-user-display-name" class="col-xs-12 col-md-6">
<?php echo $this->lang->line('hello') . ', ' . $user_display_name; ?>! <?php echo $this->lang->line('hello') . ', ' . $user_display_name; ?>!
</div> </div>
</div> </div>

View file

@ -74,6 +74,11 @@
<nav id="header" class="navbar"> <nav id="header" class="navbar">
<div class="container-fluid"> <div class="container-fluid">
<div class="navbar-header"> <div class="navbar-header">
<div id="header-logo" class="navbar-brand">
<img src="<?php echo $base_url; ?>/assets/img/logo.png">
<span><?php echo $company_name; ?></span>
</div>
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-menu" <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#header-menu"
aria-expanded="false" aria-controls="navbar"> aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span> <span class="sr-only">Toggle navigation</span>
@ -81,11 +86,6 @@
<span class="icon-bar"></span> <span class="icon-bar"></span>
<span class="icon-bar"></span> <span class="icon-bar"></span>
</button> </button>
<div id="header-logo" class="navbar-brand">
<img src="<?php echo $base_url; ?>/assets/img/logo.png">
<span><?php echo $company_name; ?></span>
</div>
</div> </div>

View file

@ -40,7 +40,7 @@ root {
#header #header-logo span { #header #header-logo span {
float: left; float: left;
font-size: 20px; font-size: 16px;
color: white; color: white;
margin-top: 14px; margin-top: 14px;
font-weight: lighter; font-weight: lighter;
@ -57,7 +57,7 @@ root {
#header #header-menu .menu-item { #header #header-menu .menu-item {
cursor: pointer; cursor: pointer;
min-width: 100px; min-width: 130px;
color: #FFF; color: #FFF;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
@ -85,11 +85,13 @@ root {
padding: 10px 15px; padding: 10px 15px;
display: inline-block; display: inline-block;
float: left; float: left;
line-height: 2;
} }
#footer #footer-user-display-name { #footer #footer-user-display-name {
display: inline-block; display: inline-block;
float: right; float: right;
text-align: right;
padding: 10px 15px; padding: 10px 15px;
font-weight: bold; font-weight: bold;
} }
@ -147,6 +149,7 @@ body .modal-header h3 {
body .modal-header .close { body .modal-header .close {
margin-top: 2px; margin-top: 2px;
color: #12482a;
} }
@ -255,7 +258,7 @@ body .jspTrack {
color: white; color: white;
} }
#calendar-page #calendar-filter > div { #calendar-page #calendar-filter .form-group {
margin: 5px 0; margin: 5px 0;
} }
@ -273,7 +276,7 @@ body .jspTrack {
background-color: #FFF; background-color: #FFF;
padding: 0 10px; padding: 0 10px;
background-position-x: 95%; background-position-x: 95%;
height: 36px; min-width: 240px;
} }
#calendar-page #calendar-filter select:disabled { #calendar-page #calendar-filter select:disabled {
@ -281,7 +284,11 @@ body .jspTrack {
cursor: auto; cursor: auto;
} }
#calendar-page #calendar-actions > div { #calendar-page #calendar-actions {
text-align: right;
}
#calendar-page #calendar-actions > .btn {
margin: 5px 0; margin: 5px 0;
} }
@ -312,6 +319,10 @@ body .jspTrack {
background-image: url('../img/custom.jpg'); background-image: url('../img/custom.jpg');
} }
#calendar-page .fc-header {
margin-bottom: 10px;
}
#calendar .fc-header-title h2 { #calendar .fc-header-title h2 {
font-size: 16px; font-size: 16px;
margin: 0px; margin: 0px;
@ -766,7 +777,50 @@ body .form-horizontal .controls {
margin-left: 12px; margin-left: 12px;
} }
@media(max-width: 1200px) {
#header #header-menu .menu-item {
min-width: 100px;
}
#calendar-page #calendar-actions {
text-align: left;
}
}
@media(max-width: 860px) {
#header #header-menu .menu-item {
min-width: 85px;
}
#footer #footer-user-display-name {
text-align: left;
}
#calendar-page #calendar-filter label {
margin-bottom: 5px;
}
}
@media(max-width: 468px) { @media(max-width: 468px) {
#calendar .fc-header-title #calendar-page .fc-header td {
display: block;
width: 70vw;
float: left;
margin: 10px auto;
text-align: left;
}
#calendar-page #calendar-actions .btn {
width: 100%;
margin: 5px 0;
}
.ui-dialog {
margin: 0 12px;
}
#calendar-page #calendar-filter select {
min-width: auto;
}
} }

View file

@ -20,6 +20,10 @@ body .custom-qtip {
color: #258D53; color: #258D53;
} }
body .ui-widget {
font-family: "Roboto","Helvetica Neue",Helvetica,Arial,sans-serif
}
body .ui-widget-overlay { body .ui-widget-overlay {
background: #000 50% 50% repeat-x; background: #000 50% 50% repeat-x;
opacity: .5; opacity: .5;
@ -34,9 +38,10 @@ body .ui-draggable .ui-dialog-titlebar {
background: #35B66F; background: #35B66F;
color: #FFF; color: #FFF;
font-size: 1.5em; font-size: 1.5em;
padding: 14px 10px; font-weight: lighter;
padding: 12px 10px;
border: none; border: none;
border-bottom: 4px solid #1A865F; border-bottom: 4px solid #c0f1d6;
margin-bottom: 10px; margin-bottom: 10px;
} }

View file

@ -797,8 +797,8 @@ window.BackendCalendar = window.BackendCalendar || {};
* @return {Number} Returns the calendar element height in pixels. * @return {Number} Returns the calendar element height in pixels.
*/ */
function _getCalendarHeight() { function _getCalendarHeight() {
var result = window.innerHeight - $('#footer').height() - $('#header').height() var result = window.innerHeight - $('#footer').outerHeight() - $('#header').outerHeight()
- $('#calendar-toolbar').height() - 50; // 80 for fine tuning - $('#calendar-toolbar').outerHeight() - 60; // 60 for fine tuning
return (result > 500) ? result : 500; // Minimum height is 500px return (result > 500) ? result : 500; // Minimum height is 500px
} }