Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dev: Converted php into twig for browserdetect question theme
- Loading branch information
1 parent
cf03359
commit c0779ad
Showing
3 changed files
with
70 additions
and
70 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
69 changes: 0 additions & 69 deletions
69
...es/question/browserdetect/survey/questions/answer/shortfreetext/text/item_alternative.php
This file was deleted.
Oops, something went wrong.
69 changes: 69 additions & 0 deletions
69
...s/question/browserdetect/survey/questions/answer/shortfreetext/text/item_alternative.twig
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{# | ||
/** | ||
* Shortfreetext, input text style, item Html | ||
* | ||
* $extraclass | ||
* $name $ia[1] | ||
* $prefix | ||
* $suffix | ||
* $kpclass | ||
* $tiwidth | ||
* $dispVal | ||
* $maxlength | ||
* $checkconditionFunction | ||
*/ | ||
#} | ||
|
||
{% if withColumn %} | ||
<div class='{{ coreClass }} row'> | ||
<div class="{{ extraclass }}"> | ||
{% else %} | ||
<div class='{{ coreClass }} {{ extraclass }}'> | ||
{% endif %} | ||
{% if prefix != '' or suffix != '' %} | ||
<div class="ls-input-group"> | ||
{% endif %} | ||
<!-- Prefix --> | ||
{% if prefix != '' %} | ||
<div class='ls-input-group-extra prefix-text prefix'>{{ prefix }}</div> | ||
{% endif %} | ||
|
||
<!-- Input --> | ||
<input | ||
class="form-control {{ kpclass }}" | ||
type="text" | ||
name="{{ name }}" | ||
id="answer{{ name }}" | ||
value="{{ dispVal }}" | ||
{{ inputsize ? 'size="'~inputsize~'"': '' }} | ||
{{ maxlength ? 'maxlength="'~maxlength~'"': '' }} | ||
aria-labelledby="ls-question-text-{{ basename }}" | ||
/> | ||
|
||
<!-- Suffix --> | ||
{% if suffix != '' %} | ||
<div class='ls-input-group-extra suffix-text suffix'>{{ suffix }}</div> | ||
{% endif %} | ||
{% if prefix != '' or suffix != '' %} | ||
</div> | ||
{% endif %} | ||
{% if withColumn %} | ||
</div> | ||
</div> | ||
{% else %} | ||
</div> | ||
{% endif %} | ||
<script> | ||
$(function(){ | ||
//first define | ||
var parseBrowser = new BrowserCheck(); | ||
{% if suffix != '' %} | ||
var result = parseBrowser.getBrowserInfoShort(); | ||
{% else %} | ||
var result = parseBrowser.getBrowserInfoLong(); | ||
{% endif %} | ||
$("answer{{ name }}").val() | ||
}); | ||
</script> |