Source: site.view [edit]
Function name: outputs
Arguments: output
Description:
Page type: html
Render function:  
Module: demavu

Page source:

<webl>WubCall("demavu.top", []);</webl>

        <!-- partial -->
        <div class="main-panel">
          <div class="content-wrapper">


            <div class="row">
              <div class="col-sm-12 grid-margin">
                <div class="card">
                  <div class="card-body">
                    <h5>Output</h5>
                    <div class="row">
                      <div class="col-8 col-sm-12 col-xl-8 my-auto">
                        <h1 id="name" class="mb-0"><webl>WubCall("demavu.data2", ["-","-","games","-","outputs",output,"name"]);</webl></h1>
                        <small class="text-muted"><a onclick="addHtmlBefore('name','<input id=&quot;editName&quot; type=&quot;text&quot; class=&quot;form-control editable&quot; title=&quot;-,games,-,outputs,<webl>output</webl>,name&quot; value=&quot;<webl>WubCall("demavu.data2", ["-","-","games","-","outputs",output,"name"])</webl>&quot;>')">(Edit)</a></small>
                      </div>
                    </div>
                  </div>
                </div>

                <div class="card">
                  <div class="card-body">

                    <h5>Variations</h5>
                    
                    <webl>
                      var variations = WubCall("demavu.data2", ["-","-","games", "-", "outputs", output,"variations"]);
                      var s = "";
                      var i = 1;
                      every variation in variations do
                         s = s + `                    <div class="form-group">` + "\n"; 
                         s = s + `                      <textarea class="form-control editable" title="-,games,-,outputs,` + output + `,variations,` + ToString(i) + `" id="txtVariation` + ToString(i) + `" rows="5">` + variation.value + "</textarea>\n";
                         s = s + "                    </div>\n\n";
                         i = i + 1;
                      end;
                      s;
                     </webl>

                  <button class="btn btn-primary" id="addVariationBtn" onclick="addHtmlBefore('addVariationBtn', '<div class=&quot;form-group&quot;><textarea class=&quot;form-control editable&quot; title=&quot;-,games,-,outputs,<webl>output+ ",variations," + ToString(Size(WubCall("demavu.data2", ["-","-","games", "-", "outputs", output, "variations"]))+1)</webl>&quot; id=&quot;txtVariation.0&quot; rows=&quot;5&quot;></textarea></div>');document.getElementById('addVariationBtn').disabled=true;">+Add Variation</button>
 
                  </div>
                </div>

              </div>

            </div>
          </div>
          <!-- content-wrapper ends -->


<webl>WubCall("demavu.footer", []);</webl>