exec.html.php 1.4 KB

123456789101112131415161718192021222324252627282930313233
  1. <form id='childrenForm' class='form-ajax' action="<?php echo inlink('exec', "jobID={$job->id}");?>" method='post'>
  2. <table class='table table-form table-auto'>
  3. <tr>
  4. <td><?php echo $pipelineTips;?></td>
  5. </tr>
  6. <tr>
  7. <td class='required'><?php echo html::select("ref", $refList, '', "class='form-control chosen'");?></td>
  8. </tr>
  9. <tr>
  10. <td><?php echo $lang->job->pipelineVariables; ?></td>
  11. </tr>
  12. <tr id='insertItemBox' class='row-module'>
  13. <td><?php echo html::input("keys[]", '', "class='form-control' placeholder='{$lang->job->pipelineVariablesKeyPlaceHolder}'");?></td>
  14. <td><?php echo html::input("values[]", '', "class='form-control' placeholder='{$lang->job->pipelineVariablesValuePlaceHolder}'");?></td>
  15. <td><button type="button" class="btn btn-link btn-icon btn-add" onclick="addVariable(this)"><i class="icon icon-plus"></i></button></td>
  16. <td><button type="button" class="btn btn-link btn-icon btn-delete" onclick="deleteVariable(this)"><i class="icon icon-close"></i></button></td>
  17. </tr>
  18. <tr>
  19. <td><?php echo $lang->job->pipelineVariablesTips; ?></td>
  20. </tr>
  21. <tr>
  22. <td>
  23. <?php
  24. echo html::submitButton($lang->job->runPipeline, '', empty($refList) ? 'disabled btn btn-primary' : 'btn btn-primary');
  25. ?>
  26. </td>
  27. <td></td>
  28. </tr>
  29. </table>
  30. </form>
  31. <script>
  32. $('#childrenForm.form-ajax').ajaxForm();
  33. </script>