Difference between revisions of "Template:Verdict"
From cm2.liecourt.com
(Fill database) |
|||
Line 345: | Line 345: | ||
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{#explode:{{{Deceit|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{#explode:{{{Deceit percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence" >{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<span class="add-more deceit">{{fa|plus}}</span>}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence" >{{#explode:{{{Deceit text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more deceit">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 361: | Line 361: | ||
|}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{{Deceit|}}}</wsfield> | |}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Deceit[]" placeholder="Lie about Plans">{{{Deceit|}}}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Deceit percentage[]" placeholder="0" value="{{{Deceit percentage|}}}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence">{{{Deceit text|}}}</wsfield><span class="add-more deceit">{{fa|plus}}</span></div></div> | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Deceit text[]" placeholder="Evidence">{{{Deceit text|}}}</wsfield><!--<span class="add-more deceit">{{fa|plus}}</span>--></div></div> |
}} | }} | ||
}} | }} | ||
Line 392: | Line 392: | ||
{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | {{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<div class="original">|<div class="old-copy">}}<div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{#explode:{{{Motivation|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{#explode:{{{Motivation percentage|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<span class="add-more motivation">{{fa|plus}}</span>}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{#explode:{{{Motivation text|}}}|,|{{#expr:{{#var:@decietscount}} - 1}} }}</wsfield>{{#ifexpr:{{#arraysize:@deciets}} = {{#var:@decietscount}}|<!--<span class="add-more motivation">{{fa|plus}}</span>-->}}</div></div>{{#vardefine:@decietscount|{{#expr:{{#var:@decietscount}} + 1 }} }} |
|}} | |}} | ||
}} | }} | ||
Line 408: | Line 408: | ||
|}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{{Motivation|}}}</wsfield> | |}} {{#tag:html|</details>}} }}<div class="original"><div class="d-flex"><wsfield type="textarea" class="form-control" name="Motivation[]" placeholder="Lie about Plans">{{{Motivation|}}}</wsfield> | ||
<span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div> | <span class="percentage"><wsfield type="number" class="form-control form-number" min="0" max="100" name="Motivation percentage[]" placeholder="0" value="{{{Motivation percentage|}}}" />%</span></div> | ||
− | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{{Motivation text|}}}</wsfield><span class="add-more motivation">{{fa|plus}}</span></div></div> | + | <div class="d-flex"><wsfield type="textarea" class="form-control mt-2" name="Motivation text[]" placeholder="Evidence">{{{Motivation text|}}}</wsfield><!--<span class="add-more motivation">{{fa|plus}}</span>--></div></div> |
}} | }} | ||
}} | }} | ||
Line 442: | Line 442: | ||
-->{{#tag:html|<script> | -->{{#tag:html|<script> | ||
− | var addMore = document.querySelectorAll('.add-more'),i; | + | //var addMore = document.querySelectorAll('.add-more'),i; |
− | for(i = 0; i < addMore.length; ++i){ | + | //for(i = 0; i < addMore.length; ++i){ |
− | + | // addMore[i].addEventListener('click', addMoreInputs, false); | |
− | } | + | //} |
− | var newDeceit = document.querySelector('.add-more.deceit').closest('.col-md-8').querySelector('.original').innerHTML; | + | //var newDeceit = document.querySelector('.add-more.deceit').closest('.col-md-8').querySelector('.original').innerHTML; |
− | var newMotivation = document.querySelector('.add-more.motivation').closest('.col-md-8').querySelector('.original').innerHTML; | + | //var newMotivation = document.querySelector('.add-more.motivation').closest('.col-md-8').querySelector('.original').innerHTML; |
function addMoreInputs(){ | function addMoreInputs(){ |
Revision as of 12:39, 25 May 2020
This is the Verdict template. It should be called in the following format:
{{Verdict |Workflow= |Case ID= |Role= |User= |Truth= |Truth percentage= |Truth text= |Whole truth= |Whole truth percentage= |Whole truth text= |Nothing But the truth= |Nothing But the truth percentage= |Nothing But the truth text= |Deceit= |Deceit percentage= |Deceit text= |Deceit intended= |Deceit intended percentage= |Deceit intended text= |Motivation= |Motivation percentage= |Motivation text= |Social acceptability= |Social acceptability percentage= |Social acceptability text= |Label= |Label percentage= |Label text= |Context= }}