Translations:New Template System in LS3.x/78/sl
From LimeSurvey Manual
Spremenjen pogled za naslov ankete v vrstici za krmarjenje
- Ustvarite nov imenik /upload/themes/survey/yourThemeName/views/subviews/header/ .
- Kopiraj /themes/survey/vanilla/ views/subviews/header/nav_bar.twig v ta novi imenik.
- Odprite /themes/survey/vanilla/views/subviews/header/nav_bar.twig in poiščite "{# Logo option #}". Pod tem spremenite izjavo IF za logotip/ime ankete, da bo videti takole:
{# Možnost logotipa #} {% 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 %} - Dodajte nekaj takega v /upload/themes/survey/yourThemeName/css/custom.css :
.navbar-blagovna znamka { line-height: 60px; velikost-pisave: 32px; }
- Preklopite možnost teme "Ime ankete v vrstici za krmarjenje" na "Da"
- Morali bi videti to:
Datoteka:Tutorial_tp_1_2.png
Spremenjen pogled za naslov ankete pod vrstico napredka
- Ustvarite nov imenik /upload/themes/survey/yourThemeName/views/subviews/survey/group_subviews .
- Kopirajte /themes/survey/vanilla/views/subviews/survey/group_subviews/group_container.twig v ta novi imenik.
- Odprite /themes/survey/vanilla/views/subviews/survey/group_subviews/group_container .vejico in dodajte<h1> element za ime ankete. Torej izgleda takole:
<div class="{{ aSurveyInfo.class.groupcontainer }} space-col" {{ aSurveyInfo.attr.groupcontainer }}> {# Ime ankete po meri #} {% if( aSurveyInfo.options.surveyname2 == "on") %} <h1 class="custom-survey-name"> {{ aSurveyInfo.name }}</h1> {% endif %} {# Ime skupine #} {{ include('./subviews/survey/group_subviews/group_name.twig') }} {# Opis skupine #} {{ include('./subviews/survey/group_subviews/group_desc.twig') }} {# PREDSTAVITE VPRAŠANJA To je glavni del. Upodobil bo vsako vprašanje za to skupino #} <!-- PRESENT THE QUESTIONS --> {% for aQuestion in 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>
- Dodajte nekaj takega v /upload/themes/survey/yourThemeName/css/custom.css :
.navbar-blagovna znamka { line-height: 60ph1.custom-survey-name { rob: 0; poravnava besedila: sredina; }
- Preklopite možnost teme »Ime ankete pod vrstico napredka« na »Da«
- Morali bi videti tole:
Datoteka:Tutorial_tp_1_3.png