Actions

Translations

Translations:New Template System in LS3.x/78/vi

From LimeSurvey Manual

Chế độ xem đã sửa đổi cho Tiêu đề khảo sát trong thanh điều hướng

  1. Tạo thư mục mới /upload/themes/survey/yourThemeName/views/subviews/header/ .
  2. Copy /themes/survey/vanilla/ lượt xem/subviews/header/nav_bar.twig vào thư mục mới đó.
  3. Mở /themes/survey/vanilla/views/subviews/header/nav_bar.twig và tìm "{# Logo option #}". Theo đó, hãy sửa đổi câu lệnh IF cho logo/tên khảo sát để nó trông như thế này:
     
     {# Tùy chọn biểu trưng #}
     {% if( aSurveyInfo.options.brandlogo == "on") %}
     <div class="{{ aSurveyInfo.class.navbarbrand }} logo-container"  {{ aSurveyInfo.attr.navbarbrand }}  > 
     {{ image(aSurveyInfo.options.brandlogofile, aSurveyInfo.name, {"class": "logo img- responsive"}) }}
    </div> 
     {% endif %}
     {% if( aSurveyInfo.options.surveyname1 == "on") %}
    <div class="{{ aSurveyInfo.class.navbarbrand }}"  {{ aSurveyInfo.attr.navbarbrand }} > 
     {{ aSurveyInfo.name }}
    </div> 
     {% endif %}
    
  4. Thêm nội dung như thế này vào /upload/themes/survey/yourThemeName/css/custom.css :
     .navbar-thương hiệu {
     chiều cao dòng: 60px;
     cỡ chữ: 32px;
    }
    
  5. Chuyển tùy chọn chủ đề "Tên khảo sát trong thanh điều hướng" thành "Có"
  6. Bạn sẽ thấy điều này:

Chế độ xem đã sửa đổi cho Tiêu đề khảo sát trong thanh tiến trình

  1. Tạo thư mục mới /upload/themes/survey/yourThemeName/views/subviews/survey/group_subviews .
  2. Sao chép /themes/survey/vanilla/views/subviews/survey/group_subviews/group_container.twig vào thư mục mới đó.
  3. Open /themes/survey/vanilla/views/subviews/survey/group_subviews/group_container .twig và thêm một<h1> phần tử cho tên khảo sát. Vì vậy, nó trông như thế này:
    <div class="{{ aSurveyInfo.class.groupcontainer }} space-col" {{ aSurveyInfo.attr.groupcontainer }}>
     
     {# Tên khảo sát tùy chỉnh #}
     {% if( aSurveyInfo.options.surveyname2 == "on") %}
    <h1 class="custom-survey-name"> {{ aSurveyInfo.name }}</h1> 
     {% endif %}
     
     {# Tên nhóm #}
     {{ include('./subviews/survey/group_subviews/group_name.twig') }}
     
     {# Mô tả nhóm #}
     {{ include('./subviews/survey/group_subviews/group_desc.twig') }}
     
     {#
     TRÌNH BÀY CÂU HỎI
     
     Đây là phần chính. Nó sẽ hiển thị từng câu hỏi cho nhóm này
     #}
     
    <!-- PRESENT THE QUESTIONS --> 
     {% cho aQuestion trong aGroup.aQuestions %}
     {{ include('./subviews/survey/question_container.twig') }}
     {% endfor %}
     
    <!-- Hidden inputs --> 
     {% if aGroup.show_last_group == true %}
    <input type='hidden' name='lastgroup' value='{{ aGroup.lastgroup }}' id='lastgroup' /> 
     {% endif %}
     
     {% if aGroup.show_last_answer == true %}
    <input type='hidden' name='lastanswer' value='{{ aGroup.lastanswer }}' id='lastanswer' /> 
     {% endif %}
    </div>
    
  4. Thêm nội dung như thế này vào /upload/themes/survey/yourThemeName/css/custom.css :
     .navbar-thương hiệu {
     chiều cao dòng: 60ph1.custom-survey-name {
     lề: 0;
     căn chỉnh văn bản: giữa;
    }
    
  5. Chuyển tùy chọn chủ đề "Tên khảo sát bên dưới thanh tiến trình" thành "Có"
  6. Bạn sẽ thấy điều này: