Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
scheduling-system
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
External wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
SMASCH
scheduling-system
Commits
3b76d5e3
Commit
3b76d5e3
authored
6 years ago
by
Carlos Vega
Browse files
Options
Downloads
Patches
Plain Diff
highlighted visit period. Issue
#247
parent
135aff67
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!206
Improvement/interface changes
Pipeline
#8088
passed
6 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
smash/web/templates/appointments/add.html
+25
-0
25 additions, 0 deletions
smash/web/templates/appointments/add.html
with
25 additions
and
0 deletions
smash/web/templates/appointments/add.html
+
25
−
0
View file @
3b76d5e3
...
@@ -33,6 +33,13 @@
...
@@ -33,6 +33,13 @@
background-color
:
#fafafa
;
background-color
:
#fafafa
;
border
:
solid
1px
#ccc
;
border
:
solid
1px
#ccc
;
}
}
.visit-period
{
background
:
repeating-linear-gradient
(
-45deg
,
white
,
white
5px
,
#F5F5F5
5px
,
#F5F5F5
7px
);
}
.fc-today
>
.fc-day-number
{
font-weight
:
600
;
text-decoration
:
underline
;
}
</style>
</style>
{% endblock styles %}
{% endblock styles %}
...
@@ -127,6 +134,7 @@ New appointment for visit from {{visit_start}} to {{visit_end}}
...
@@ -127,6 +134,7 @@ New appointment for visit from {{visit_start}} to {{visit_end}}
<script
src=
"{% static 'AdminLTE/plugins/datatables/jquery.dataTables.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/datatables/jquery.dataTables.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/datatables/dataTables.bootstrap.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/moment.js/moment-range.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/moment.js/moment.min.js' %}"
></script>
<script
src=
"{% static 'AdminLTE/plugins/moment.js/moment.min.js' %}"
></script>
<script
src=
"{% static 'js/appointment.js' %}"
></script>
<script
src=
"{% static 'js/appointment.js' %}"
></script>
<script
src=
"{% static 'fullcalendar-scheduler/lib/fullcalendar.min.js' %}"
></script>
<script
src=
"{% static 'fullcalendar-scheduler/lib/fullcalendar.min.js' %}"
></script>
...
@@ -151,6 +159,23 @@ New appointment for visit from {{visit_start}} to {{visit_end}}
...
@@ -151,6 +159,23 @@ New appointment for visit from {{visit_start}} to {{visit_end}}
center
:
'
title
'
,
center
:
'
title
'
,
right
:
'
month,agendaWeek
'
right
:
'
month,agendaWeek
'
},
},
{
%
if
isGeneral
%
}
{
%
else
%
}
dayRender
:
function
(
daysOfWeek
,
cell
)
{
var
visit_start
=
moment
(
'
{{visit_start}}
'
);
var
visit_end
=
moment
(
'
{{visit_end}}
'
);
if
(
visit_start
<=
daysOfWeek
&&
daysOfWeek
<=
visit_end
){
$
(
cell
).
addClass
(
'
visit-period
'
);
if
(
$
(
cell
).
hasClass
(
'
fc-today
'
)){
$
(
cell
).
css
(
'
background
'
,
'
repeating-linear-gradient( -45deg, #fcf8e3, #fcf8e3 5px, #e8e2c2 5px, #e8e2c2 7px )
'
);
}
}
else
{
$
(
cell
).
removeClass
(
'
visit-period
'
);
}
},
{
%
endif
%
}
dayClick
:
function
(
date
,
jsEvent
,
view
)
{
dayClick
:
function
(
date
,
jsEvent
,
view
)
{
var
dateString
=
date
.
format
();
var
dateString
=
date
.
format
();
if
(
dateString
.
indexOf
(
"
T
"
)
>=
0
)
{
if
(
dateString
.
indexOf
(
"
T
"
)
>=
0
)
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment