Skip to content

Commit

Permalink
Fix release 4.0
Browse files Browse the repository at this point in the history
Fix some uppercase / lowercase errors
  • Loading branch information
DidierViret committed Jan 11, 2022
2 parents f9059a5 + c96eb4d commit 53b0927
Show file tree
Hide file tree
Showing 19 changed files with 36 additions and 30 deletions.
2 changes: 1 addition & 1 deletion app/Controllers/BaseController.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public function display_view($view_parts, $data = NULL)
foreach (config('Common\Config\AdminPanelConfig')->tabs as $tab){
if (strstr(current_url(), $tab['pageLink'])) {
$data['title'] = lang($tab['title']);
echo view('\Common\Adminmenu');
echo view('\Common\adminMenu');
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public function up() {
$this->forge->addKey('id', true, true);
$this->forge->addForeignKey('fk_trainer', 'user','id');
$this->forge->addForeignKey('fk_acquisition_status', 'acquisition_status','id');
$this->forge->createTable('Comment');
$this->forge->createTable('comment');

}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,19 @@ public function up() {
'name' => [
'type' => 'varchar',
'constraint' => '150',
'default' => 'null',
],
'symbol' => [
'type' => 'varchar',
'constraint' => '10',
],
'methodologic' => [
'type' => 'text',
'default' => 'null',
],
'social' => [
'type' => 'text',
'default' => 'null',
],
'personal' => [
'type' => 'text',
'default' => 'null',
],

'archive timestamp null',
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions orif/plafor/Views/apprentice/list.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
view('\Plafor\templates\navigator',['reset'=>true]);
helper('Form');
helper('form');
/**
* Users List View
*
Expand Down Expand Up @@ -69,7 +69,7 @@
<script type="text/babel" defer>

$(document).ready(function () {
initProgress("<?=base_url("plafor/apprentice/getcourseplanprogress")?>"+'/',"<?=lang('plafor_lang.details_progress')?>");
setTimeout(()=>{initProgress("<?=base_url("plafor/apprentice/getcourseplanprogress")?>"+'/',"<?=lang('plafor_lang.details_progress')?>")},200);
$('#toggle_deleted').change(e => {
let checked = e.currentTarget.checked;
$.post('<?php echo base_url("plafor/apprentice/list_apprentice") . '/'?>' + ((checked == true ? '1' : '0')), {}, data => {
Expand Down
2 changes: 1 addition & 1 deletion orif/plafor/Views/apprentice/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
<script type="text/babel">
$(document).ready(()=>{
$('#usercourseSelector').val(<?=isset($userCourseMax)?$userCourseMax['id']:null?>);
displayDetails(null,<?=json_encode($userCourseMax)?>,'integrated',"<?=base_url("plafor/apprentice/getcourseplanprogress")?>"+'/',"<?=base_url('plafor/apprentice/view_user_course')?>");
setTimeout(()=>{displayDetails(null,<?=json_encode($userCourseMax)?>,'integrated',"<?=base_url("plafor/apprentice/getcourseplanprogress")?>"+'/',"<?=base_url('plafor/apprentice/view_user_course')?>");},200)
$('#usercourseSelector').change((event)=>{
let userCourses=<?= json_encode($user_courses)?>;
let coursePlans=<?= json_encode($course_plans)?>;
Expand Down
2 changes: 1 addition & 1 deletion orif/plafor/Views/course_plan/list.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?php
view('\Plafor\templates\navigator',['reset'=>true]);
helper('Form');
helper('form');
/**
* Users List View
*
Expand Down
32 changes: 21 additions & 11 deletions orif/plafor/Views/operational_competence/view.php
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@
</div>
</div>
</div>
<script type="text/javascript" defer>
<script defer type="text/javascript">
window.addEventListener('resize',()=>{

if (window.innerWidth<476){
if (window.innerWidth<490){

if (document.querySelectorAll('.responsiveTable td:nth-child(2) .descTitle').item(0)!==null?window.getComputedStyle(document.querySelectorAll('.responsiveTable td:nth-child(2) .descTitle').item(0)).display!=="none":false)
document.querySelectorAll('.responsiveTable td:nth-child(2)').forEach((element)=>{
document.querySelectorAll('.responsiveTable td:nth-child(2)').forEach((element)=>{
let tax=document.createElement('span');
tax.innerHTML=`<span class='taxonomyResponsive'>${element.innerHTML}<span>`

Expand All @@ -129,15 +129,25 @@
}

});
if (window.getComputedStyle(document.querySelectorAll('.responsiveTable td:nth-child(2) .descTitle').item(0)).display!=="none")
document.querySelectorAll('.responsiveTable td:nth-child(2)').forEach((element)=>{
let tax=document.createElement('span');
tax.innerHTML=`<span class='taxonomyResponsive'>${element.innerHTML}<span>`

element.previousElementSibling.appendChild(tax);
element.remove();
if (window.innerWidth<490){

})
if (document.querySelectorAll('.responsiveTable td:nth-child(2) .descTitle').item(0)!==null?window.getComputedStyle(document.querySelectorAll('.responsiveTable td:nth-child(2) .descTitle').item(0)).display!=="none":false)
document.querySelectorAll('.responsiveTable td:nth-child(2)').forEach((element)=>{
let tax=document.createElement('span');
tax.innerHTML=`<span class='taxonomyResponsive'>${element.innerHTML}<span>`

element.previousElementSibling.appendChild(tax);
element.remove();

})
}
else{
document.querySelectorAll('.responsiveTable td:nth-child(1) .taxonomyResponsive').forEach((element)=>{
let td=document.createElement('td');
td.innerHTML=element.innerHTML;
if (element.parentElement.parentElement.nextElementSibling.querySelector('.descTitle')==null)
element.parentElement.parentElement.after(td);
element.remove();
})
}
</script>
2 changes: 1 addition & 1 deletion orif/plafor/Views/templates/navigator.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<?php echo count($navigatorLink)>1 && $i!=count($navigatorLink)-1 ? '<span class="text-primary"><i class="bi bi-arrow-right-short" ></i></span>' : ''?>
<?php } ?>
<?php else : ?>
<a id="navigator-back" class="btn btn-outline-primary mr-2 bi bi-arrow-left-circle" href="<?= base_url("courseplan/list_course_plan") ?>">
<a id="navigator-back" class="btn btn-outline-primary mr-2 bi bi-arrow-left-circle" href="<?= base_url("plafor/courseplan/list_course_plan") ?>">
<?= lang("common_lang.btn_back") ?>
</a>
<?php endif;?>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,23 @@ public function up()
{
$this->forge->addField([
'id'=>[
'type' => 'INT',
'type' => 'VARCHAR',
'constraint' => '128',
'unsigned' => true,
'null' => false
],
'ip_address'=>[
'type' => 'VARCHAR',
'constraint' => '45',
'null' => false,
'null' => false
],
'timestamp timestamp DEFAULT CURRENT_TIMESTAMP',
'timestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL',
'data'=>[
'type' => 'BLOB',
'null' => false,
'type' => 'blob',
'null' => false
]

]);
$this->forge->addPrimaryKey('id');

$this->forge->addKey('id', TRUE);
$this->forge->addKey('timestamp');
$this->forge->createTable('ci_sessions',true);
}
Expand Down

0 comments on commit 53b0927

Please sign in to comment.