Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
iena
iena-course-format
Commits
108153dc
Commit
108153dc
authored
Jan 15, 2019
by
Thomas Fradet
Browse files
Initial commit
parents
Changes
47
Expand all
Hide whitespace changes
Inline
Side-by-side
.gitignore
0 → 100644
View file @
108153dc
# Created by .ignore support plugin (hsz.mobi)
### JetBrains template
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio and Webstorm
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
# User-specific stuff:
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/dictionaries
# Sensitive or high-churn files:
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.xml
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
# Gradle:
.idea/**/gradle.xml
.idea/**/libraries
# CMake
cmake-build-debug/
cmake-build-release/
# Mongo Explorer plugin:
.idea/**/mongoSettings.xml
## File-based project format:
*.iws
## Plugin-specific files:
# IntelliJ
out/
# mpeltonen/sbt-idea plugin
.idea_modules/
# JIRA plugin
atlassian-ide-plugin.xml
# Cursive Clojure plugin
.idea/replstate.xml
# Crashlytics plugin (for Android Studio and IntelliJ)
com_crashlytics_export_strings.xml
crashlytics.properties
crashlytics-build.properties
fabric.properties
LICENSE.md
0 → 100644
View file @
108153dc
This diff is collapsed.
Click to expand it.
classes/task/sync_task_iena_message.php
0 → 100644
View file @
108153dc
<?php
/**
* Created by PhpStorm.
* User: softia
* Date: 15/03/18
* Time: 16:22
*/
// This file is part of Moodle - http://moodle.org/
//
// Moodle is free software: you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// Moodle is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
/**
*
* sync_task_iena_message lunch cron_message()
*
* @package format_iena
* @category format
* @copyright 2018 Softia/Université lorraine
* @author vrignaud camille
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
namespace
format_iena\task
;
class
sync_task_iena_message
extends
\
core\task\scheduled_task
{
/**
* Get a descriptive name for this task (shown to admins).
*
* @return string
*/
public
function
get_name
()
{
return
"task_iena_message"
;
}
public
function
execute
()
{
global
$CFG
;
require_once
(
$CFG
->
dirroot
.
'/course/format/iena/entity/course_format_iena_cron_action.php'
);
$cron_test
=
new
\
course_format_iena_cron_action
();
echo
'send message start'
;
$cron_test
->
cron_message
();
echo
'send message stop'
;
}
}
\ No newline at end of file
common.css
0 → 100644
View file @
108153dc
.test
{
color
:
red
;
font-size
:
2rem
;
}
.left
{
float
:
left
;
}
.img_moodle_course
{
max-width
:
100%
;
-webkit-border-radius
:
50%
;
-moz-border-radius
:
50%
;
border-radius
:
50%
;
display
:
block
;
margin
:
-1px
;
min-height
:
64px
;
min-width
:
64px
;
}
.padding_column
{
padding
:
2rem
;
}
.align_center
{
display
:
flex
;
justify-content
:
center
;
align-items
:
center
;
}
.button
{
box-shadow
:
0
2px
2px
0
rgba
(
0
,
0
,
0
,
0.14
),
0
1px
5px
0
rgba
(
0
,
0
,
0
,
0.12
),
0
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
);
}
.img_center
{
top
:
1rem
;
left
:
1rem
;
}
.img_moodle_list
{
max-width
:
100%
;
-webkit-border-radius
:
50%
;
-moz-border-radius
:
50%
;
border-radius
:
50%
;
display
:
block
;
margin
:
-1px
;
height
:
32px
;
width
:
32px
;
}
.left_course_elements
,
.right_course_elements
{
width
:
33%
;
float
:
left
;
padding
:
1%
;
color
:
white
;
text-align
:
center
;
-webkit-box-shadow
:
0
1px
3px
0
#d4d4d5
,
0
0
0
1px
#d4d4d5
;
box-shadow
:
0
1px
3px
0
#d4d4d5
,
0
0
0
1px
#d4d4d5
;
}
.left_course_elements
{
background
:
#2d2d2d
;
}
.right_course_elements
{
background
:
#009186
;
}
.title
{
font-size
:
1.5rem
;
color
:
white
;
padding-bottom
:
0.5rem
}
.middle_elements
{
width
:
11%
;
float
:
left
;
padding
:
1%
;
}
#outer-dropzone
{
height
:
140px
;
}
#inner-dropzone
{
height
:
80px
;
}
.dropzone
{
background-color
:
#ccc
;
border
:
dashed
4px
transparent
;
border-radius
:
4px
;
margin
:
10px
auto
30px
;
padding
:
10px
;
width
:
80%
;
transition
:
background-color
0.3s
;
}
.drop-active
{
border-color
:
#aaa
;
}
.drop-target
{
background-color
:
#29e
;
border-color
:
#fff
;
border-style
:
solid
;
}
.drag-drop
{
display
:
inline-block
;
min-width
:
40px
;
padding
:
2em
0.5em
;
color
:
#fff
;
background-color
:
#29e
;
border
:
solid
2px
#fff
;
-webkit-transform
:
translate
(
0px
,
0px
);
transform
:
translate
(
0px
,
0px
);
transition
:
background-color
0.3s
;
}
.drag-drop.can-drop
{
color
:
#000
;
background-color
:
#4e4
;
}
.textarea
:not
([
rows
])
{
max-height
:
600px
;
min-height
:
120px
;
}
.textarea
{
display
:
block
;
max-width
:
99%
;
min-width
:
99%
;
padding
:
0.625em
;
resize
:
vertical
;
}
.input
,
.textarea
{
-moz-appearance
:
none
;
-webkit-appearance
:
none
;
-webkit-box-align
:
center
;
-ms-flex-align
:
center
;
align-items
:
center
;
border
:
1px
solid
transparent
;
border-top-color
:
transparent
;
border-right-color
:
transparent
;
border-bottom-color
:
transparent
;
border-left-color
:
transparent
;
border-radius
:
3px
;
-webkit-box-shadow
:
none
;
box-shadow
:
none
;
display
:
-webkit-inline-box
;
display
:
-ms-inline-flexbox
;
display
:
inline-flex
;
font-size
:
1rem
;
height
:
2.25em
;
-webkit-box-pack
:
start
;
-ms-flex-pack
:
start
;
justify-content
:
flex-start
;
line-height
:
1.5
;
padding-bottom
:
calc
(
0.375em
-
1px
);
padding-left
:
calc
(
0.625em
-
1px
);
padding-right
:
calc
(
0.625em
-
1px
);
padding-top
:
calc
(
0.375em
-
1px
);
position
:
relative
;
vertical-align
:
top
;
background-color
:
white
;
border-color
:
#dbdbdb
;
color
:
#363636
;
-webkit-box-shadow
:
inset
0
1px
2px
rgba
(
10
,
10
,
10
,
0.1
);
box-shadow
:
inset
0
1px
2px
rgba
(
10
,
10
,
10
,
0.1
);
margin
:
0.5rem
;
width
:
auto
;
max-width
:
90%
;
}
input
[
type
=
'file'
]
{
margin-bottom
:
1rem
;
padding
:
0rem
;
background
:
none
;
border
:
0px
;
box-shadow
:
none
;
}
.subject-info-box-1
,
.subject-info-box-2
{
float
:
left
;
width
:
100%
;
}
.subject-info-box-1
select
,
.subject-info-box-2
select
{
height
:
200px
;
padding
:
0
;
}
.subject-info-box-1
select
option
,
.subject-info-box-2
select
option
{
padding
:
4px
10px
4px
10px
;
}
.subject-info-box-1
select
option
:hover
,
.subject-info-box-2
select
option
:hover
{
background
:
#EEEEEE
;
}
.subject-info-arrows
{
float
:
left
;
width
:
50%
;
margin-left
:
25%
;
}
.subject-info-arrows
input
{
width
:
70%
;
margin-bottom
:
5px
;
}
.btn
{
padding
:
0.5rem
;
}
.section
{
padding-bottom
:
1.5rem
;
}
/* VIEW SINGLE ITEM */
.set_height
{
min-height
:
4rem
;
line-height
:
2rem
;
}
.heading
{
background
:
#2d2d2d
;
padding
:
0rem
;
color
:
white
;
float
:
left
;
width
:
100%
}
.percent
{
background
:
#009186
;
float
:
left
;
padding
:
1rem
;
font-size
:
1.5rem
;
}
.titre_section
{
float
:
left
;
padding-top
:
1rem
;
padding-left
:
1rem
;
padding-right
:
1rem
;
font-size
:
1.5rem
;
font-weight
:
bold
;
}
.block_button
{
padding-top
:
1rem
;
}
.nb_pers
{
background
:
#d68d01
;
float
:
left
;
min-width
:
4rem
;
padding
:
1rem
1rem
1rem
1.5rem
;
font-size
:
1.5rem
;
}
.right_info
{
float
:
right
;
}
.label_item
{
color
:
white
;
border
:
2px
solid
white
;
-webkit-border-radius
:
5px
;
border-radius
:
5px
;
margin
:
0.8rem
;
padding
:
0.05rem
0.3rem
;
float
:
left
;
font-weight
:
bold
;
}
.description
{
background
:
#EEE
;
color
:
#323232
;
padding
:
1rem
;
clear
:
both
;
margin-bottom
:
0
,
5rem
;
}
.elements
{
background
:
white
;
padding
:
1rem
;
}
/* BUTTONS */
.btn_green
,
a
.btn_green
{
color
:
white
!important
;
background-color
:
#26a69a
;
-webkit-box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
border
:
0px
;
border-radius
:
initial
;
color
:
white
!important
;
-webkit-appearance
:
none
;
}
.btn_orange
,
a
.btn_orange
{
color
:
white
!important
;
background-color
:
#DB8F00
;
border
:
0px
;
-webkit-box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
border-radius
:
initial
;
-webkit-appearance
:
none
;
}
.btn_blue
,
a
.btn_blue
{
color
:
white
!important
;
background-color
:
#118CBE
;
border
:
0px
;
-webkit-box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
-webkit-appearance
:
none
;
}
.btn-block-tide
,
a
.btn-block-tide
{
background-color
:
#26a69a
;
border
:
0px
;
color
:
white
!important
;
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
-webkit-appearance
:
none
;
}
.btn_red
,
a
.btn_red
{
background-color
:
#e84b56
;
border
:
0px
;
color
:
white
!important
;
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
-webkit-appearance
:
none
;
}
.btn_reset
,
a
.btn_reset
{
background-color
:
grey
;
border
:
0px
;
-webkit-appearance
:
none
;
border
:
0px
;
color
:
white
!important
;
box-shadow
:
0px
3px
1px
-2px
rgba
(
0
,
0
,
0
,
0.2
),
0px
2px
2px
0px
rgba
(
0
,
0
,
0
,
0.14
),
0px
1px
5px
0px
rgba
(
0
,
0
,
0
,
0.12
);
-webkit-appearance
:
none
;
margin-left
:
1%
;
}
.cg_blck
{
color
:
#393939
;
}
#first_right
{
float
:
right
;
margin-right
:
2rem
;
}
#second_right
{
float
:
right
;
margin-right
:
9%
;
}
.full
{
width
:
100%
;
display
:
flex
;
padding
:
1rem
;
-webkit-box-shadow
:
0
0
5px
0
#cfcfcf
;
box-shadow
:
0
0
5px
0
#cfcfcf
;
}
.small
{
height
:
50px
;
overflow
:
hidden
;
}
.big
{
height
:
auto
;
}
\ No newline at end of file
course-header.css
0 → 100644
View file @
108153dc
/* Top header */
.iena-course-header-top
{
margin-bottom
:
1.6rem
;
}
.iena-course-h-total
,
.iena-course-h-attendance
,
.iena-course-h-message
.btn
{
border-radius
:
0.15rem
;
}
.iena-course-h-group
,
.iena-course-h-attendance
,
.iena-course-h-message
{
margin-bottom
:
0.8rem
;
}
.iena-course-h-attendance
,
.iena-course-h-message
,
.iena-course-h-group
{
float
:
right
;
margin-left
:
0.5rem
;
}
/* teacher message dropdown */
.iena-course-h-message
.dropdown-menu
{
max-height
:
16.5rem
;
overflow-y
:
scroll
;
}
/* group select */
.iena-course-h-group
label
{
border-radius
:
0.15rem
0
0
0.15rem
;
}
.iena-course-h-group
select
{
border-radius
:
0
0.15rem
0.15rem
0
;
}
/* course total button */
.iena-course-h-total
{
font-weight
:
600
;
color
:
#009085
;
border-color
:
#009085
;
}
.iena-course-h-total
:hover
{
border-color
:
#009085
;
background-color
:
#009085
;
}
.iena-course-h-total
:active
{
border-color
:
#009085
!important
;
background-color
:
#10aa95
!important
;
box-shadow
:
none
!important
;
}
.iena-course-h-total
:focus
{
border-color
:
#009085
;
background-color
:
#10aa95
;
color
:
#ffffff
;
box-shadow
:
none
;
}
/* Bottom header */
.iena-course-header-bottom
{
margin-bottom
:
1.6rem
;
}
/* Toggler */
.iena-course-header-toggler
{
text-align
:
center
;
}
.iena-course-header-toggler
hr
{
border
:
0.5px
solid
#999
;
}
.iena-course-header-toggler
a
{
position
:
relative
;
top
:
-1.9rem
;
background-color
:
#ffffff
;
padding
:
0rem
1rem
;
}
/* Progress detail */
.iena-h-prog-sect
h2
{
margin-bottom
:
1rem
;
}
.iena-h-clear
{
clear
:
both
;
}
/* Section progression block */
/* Section progression name and % */
.iena-h-prog-name
{
color
:
#009085
;
border-color
:
#009085
;
border-radius
:
0.15rem
;
max-width
:
300px
;
overflow
:
hidden
;
position
:
relative
;
margin-bottom
:
0.5rem
;
float
:
left
;
clear
:
left
;
min-width
:
300px
;
text-align
:
left
;
}
.iena-h-prog-name
:before
{
content
:
''
;
width
:
100%
;
height
:
100%
;
position
:
absolute
;
left
:
0
;
top
:
0
;
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
255
,
255
,
0
)
245px
,
rgba
(
255
,
255
,
255
,
1
)
289px
);
}
.iena-h-prog-name
:hover
,
.iena-h-prog-name
:active
{
background-color
:
#ffffff
!important
;
color
:
#009085
!important
;
border-color
:
#009085
!important
;
}
.iena-h-prog-name
:focus:before
{
background
:
linear-gradient
(
90deg
,
rgba
(
255
,
255
,
255
,
0
)
245px
,
#009085
289px
);
}
.iena-h-prog-name
:focus
{