Skip to content
Snippets Groups Projects
Verified Commit fee9e8cb authored by Alexander-Krause's avatar Alexander-Krause
Browse files

wip: model changes

parent 417face4
No related branches found
No related tags found
No related merge requests found
......@@ -18,12 +18,21 @@ import Model from 'ember-data/model';
export default Model.extend({
pid: attr("number"),
applicationName: attr("string"),
executionCommand: attr("string"),
osExecutionCommand: attr("string"),
userExecutionCommand: attr("string"),
shutdownCommand: attr("string"),
monitoredFlag: attr("boolean"),
webserverFlag: attr("boolean"),
workingDirectory: attr("string"),
agent: belongsTo("agent")
});
......@@ -23,16 +23,23 @@
<td>{{process.pid}}</td>
</tr>
<tr>
<td><b>Execution Command</b></td>
<td><b>Name</b></td>
<td>
<div class="well well-sm container-word-wrap">{{process.executionCommand}}
</div>
{{input class="form-control" value=process.applicationName}}
</td>
</tr>
<tr>
<td><b>Name</b></td>
<td><b>Working Directory</b></td>
<td>
{{input class="form-control" value=process.applicationName}}
{{input class="form-control" value=process.workingDirectory}}
</td>
</tr>
<tr>
<td><b>User-defined Execution Command</b></td>
<td>
<textarea class="form-control">
{{process.userExecutionCommand}}
</textarea>
</td>
</tr>
<tr>
......@@ -47,9 +54,17 @@
{{input type="checkbox" checked=process.webserverFlag}}
</td>
</tr>
<tr>
<td><b>Execution Command</b></td>
<td>
<div class="well well-sm container-word-wrap">{{process.osExecutionCommand}}
</div>
</td>
</tr>
</tbody>
</table>
<button type="button" class="btn btn-success" {{action "saveProcess"}}>Save</button>
<button type="button" class="btn btn-success" {{action "saveProcess"}}>Save</button>
<button type="button" class="btn btn-warning" {{action "restartProcess"}}>Restart Application</button>
</div>
</div>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment