前台services修改
- 添加services参数
Location:edusoho\src\AppBundle\Common\ServiceToolkit.php
private static $services = array(
'homeworkReview' => array(
'code' => 'homeworkReview',
'shortName' => 'site.services.homeworkReview.shortName',
'fullName' => 'site.services.homeworkReview.fullName',
'summary' => 'site.services.homeworkReview.summary',
'active' => 0,
)
);
- 添加CodeArray
Location:edusoho\src\AppBundle\Twig\AppExtension.php
$tags = ServiceToolkit::getServicesByCodes(
array('homeworkReview', 'testpaperReview', 'teacherAnswer', 'liveAnswer', 'event', 'workAdvise')
);
- 修改翻译文件
Location:edusoho\app\Resources\translations\messages.zh_CN.yml
site.services.homeworkReview.shortName: 练
site.services.homeworkReview.fullName: 24小时作业批阅
site.services.homeworkReview.summary: 24小时内完成作业批阅,即时反馈并巩固您的学习效果
后台services修改
- 修改
Location:edusoho\app\Resources\views\classroom-manage\services.html.twig
<a class="label label-md bg-primary-hover js-service-item mr10 mb20 inline-block{% if 'tuifei' in classroom.service %} label-primary {% else %} label-default {% endif %} " data-container="body" data-toggle="popover" data-trigger="hover" data-placement="top" data-content="{{'classroom.tuifei_tips'|trans({'%name%':setting('classroom.name')|default('classroom'|trans)})}}">
{{setting("classroom.name")|default('classroom'|trans)}}{{'classroom.tuifei'|trans}}
<input class="hidden" type="checkbox" name="service[]" value="tuifei" {% if 'tuifei' in classroom.service %} checked='checked'{% endif %}>
</a>
2.修改
Location:edusoho\app\Resources\translations\messages.zh_CN.yml
classroom.employ_guide: 就业指导
classroom.employ_guide_tips: 完成全部学习后,老师对您的学习成果和能力水平给出评估,并提供专业化的就业指导
网友评论