Source

nx-web / nxweb / apps / admin / html / partials / program.html

Full commit
<!--<form>
<input type="file" id="program" name="program"></input>
<a ng-click="upload('/program','program');">upload</a>
</form>-->


<!-- <form name="form"  action="/program" method="POST" enctype="multipart/form-data" novalidate> -->
<form>

<table>

<tr>
  <td>Name:</td>
  <td><input type="text" name="program_name" ng-model="program_name" required/></td>
</tr>

<tr>
  <td>Version:</td>
  <td><input name="program_version" ng-model="program_version" required></td>
  <td></td>
</tr>

<tr>
  <td>Runner:</td>
  <td>
        <select ng-model="runner_name" required>
            <option ng-repeat="name in runner_options">{{name}}</option>
        </select>
  </td>
  <td></td>
</tr>

<tr>
  <td>Runner Arguments:</td>
  <td>
  <table>
    <tr ng-repeat="(k, v) in runner_args_clone">
        <td>{{k}}</td>
        <td><input type="text" ng-model="runner_args[k]"/></td>
        <td><a ng-click="delete(k);">X</a></td>
    </tr>

    <tr>
        <td>New</td><td><input type="text" ng-model="new"/></td>
        <td><a ng-click="new_argument(new);" ng-show="new.length>=1">Create </a></td>
    </tr>
    </table>
  </td>
  <td></td>
</tr>
<tr>
<td>Zip File </td><td><input type="file" id="program" name="program"></input></td>
</tr>
</table>
<button ng-click="update()">Upload</button>

</form>
<!-- <a href="#/programs">Back</a> -->
<p ng-show=message> {{message}} </p>