美文网首页
edusoho修改班级保障服务 classroom_servic

edusoho修改班级保障服务 classroom_servic

作者: 写给我的公主的简书 | 来源:发表于2020-02-15 12:35 被阅读0次

    前台services修改

    1. 添加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,
            )
        );
    
    
    1. 添加CodeArray

    Location:edusoho\src\AppBundle\Twig\AppExtension.php

    
    $tags = ServiceToolkit::getServicesByCodes(
       array('homeworkReview', 'testpaperReview', 'teacherAnswer', 'liveAnswer', 'event', 'workAdvise')
    );
    
    1. 修改翻译文件

    Location:edusoho\app\Resources\translations\messages.zh_CN.yml

    site.services.homeworkReview.shortName: 练
    site.services.homeworkReview.fullName: 24小时作业批阅
    site.services.homeworkReview.summary: 24小时内完成作业批阅,即时反馈并巩固您的学习效果
    

    后台services修改

    1. 修改

    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: 完成全部学习后,老师对您的学习成果和能力水平给出评估,并提供专业化的就业指导
    

    相关文章

      网友评论

          本文标题:edusoho修改班级保障服务 classroom_servic

          本文链接:https://www.haomeiwen.com/subject/memefhtx.html