Skip to content

Commit

Permalink
DEV: changing question-text works now for multiple-languages when sur…
Browse files Browse the repository at this point in the history
…vey is active
  • Loading branch information
Trischi80 authored and eddylackmann committed Jan 28, 2021
1 parent d49d6a1 commit 8dccfb3
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions application/views/questionAdministration/codeAndType.php
Expand Up @@ -47,8 +47,7 @@
<label for="questionCode"><?= gT('Code'); ?></label>
<div class="scoped-keep-in-line">
<!-- TODO: Max lenght. -->
<!-- TODO: Read-only when survey is active. -->
<?php if ($oSurvey->active !== 'Y'): ?>
<?php if ($oSurvey->active !== 'Y'){ ?>
<input
text="text"
class="form-control"
Expand All @@ -59,9 +58,20 @@ class="form-control"
maxlength="20"
onfocusout="LS.questionEditor.checkQuestionCodeUniqueness($(this).val(), <?= $question->qid; ?>)"
/>
<?php else: ?>
<span><?= $question->title; ?></span>
<?php endif; ?>
<?php
}else{ ?>
<input
text="text"
class="form-control"
id="questionCode"
name="question[title]"
value="<?= $question->title; ?>"
required="true"
maxlength="20"
readonly
/>
<?php } ?>

<!--
<type-counter
:countable="currentQuestionCode.length"
Expand Down

0 comments on commit 8dccfb3

Please sign in to comment.