Skip to content

Commit

Permalink
Merge pull request #702 from nvidela/boletines_graduada
Browse files Browse the repository at this point in the history
modificaciones en boletines graduada
  • Loading branch information
nvidela authored May 11, 2022
2 parents 14e9b61 + 731c34a commit 54fb819
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 12 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
3.9.17
3.9.18

13 changes: 8 additions & 5 deletions flavors/anexa/modules/report_card/templates/indexSuccess.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,10 @@
<div><a href="<?php echo url_for('@export_report_cards?sf_format=pdf') ?>"><?php echo __('Export') ?></a></div>
<div><a href="<?php echo url_for($back_url) ?>"><?php echo __('Go back') ?></a></div>
</div>

<?php $count_students = 0; ?>
<?php foreach ($students as $student): ?>
<?php $student_career_school_year = StudentCareerSchoolYearPeer::getCurrentForStudentAndCareerSchoolYear($student, $division->getCareerSchoolYear()) ?>
<?php $count_students ++; ?>
<?php $student_career_school_year = StudentCareerSchoolYearPeer::getCurrentForStudentAndCareerSchoolYear($student, $division->getCareerSchoolYear()) ?>
<div class="report-wrapper">
<?php include_partial('header', array('student' => $student, 'division' => $division, 'career_id' => $career_id, 'school_year' => $student_career_school_year->getSchoolYear(), 'student_career' => CareerStudentPeer::retrieveByCareerAndStudent($career_id, $student->getId()))); ?>
<div class="report-content">
Expand Down Expand Up @@ -76,6 +77,8 @@

</div>
<div style="clear:both;"></div>
<div style="page-break-before: always;"></div>

<?php endforeach; ?>
<?php if($count_students == 2): ?>
<?php $count_students = 0; ?>
<div style="page-break-before: always;"></div>
<?php endif; ?>
<?php endforeach; ?>
13 changes: 7 additions & 6 deletions flavors/anexa/web/css/print-report-card.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ body {
{
text-align:left;
width:900px;
margin:30px auto;
margin:40px auto;
}

.report-header
Expand Down Expand Up @@ -250,7 +250,7 @@ table.lefttable tr {
float:right;
margin-top:10px;
margin-left:5px;
padding:0px 15px;
padding:0px 10px;
height:126px;
}

Expand All @@ -259,7 +259,7 @@ table.lefttable tr {
float:right;
margin-top:10px;
margin-left:5px;
padding:0px 15px;
padding:0px 10px;
height:126px;
}

Expand All @@ -276,8 +276,9 @@ table.lefttable tr {
border:1px solid #ccc;
float:left;
margin-top:10px;
padding:0px 15px;
height:150px;
margin-bottom:10px;
padding:0px 10px;
height:100px;
width:869px;
}

Expand Down Expand Up @@ -347,4 +348,4 @@ table.gridtable_bordered tr {
padding:5px;
background:#f2f2f2;
border-bottom:1px solid #ccc;
}
}

0 comments on commit 54fb819

Please sign in to comment.