17 lines
695 B
Plaintext
17 lines
695 B
Plaintext
<h2>Create <%= tview.tname %></h2>
|
|
<div class="row">
|
|
<div class="col-lg-8">
|
|
<form role="form">
|
|
<% tview.tedit.tfields.forEach(function (fieldKey) { %>
|
|
<div class="form-group">
|
|
<label for="<%= tview.tmeta.tfields[fieldKey].tid %>"><%= tview.tmeta.tfields[fieldKey].tname %></label>
|
|
<input ng-model="data.<%= tview.tmeta.tfields[fieldKey].tid %>" name="<%= tview.tmeta.tfields[fieldKey].tid %>" class="form-control"></input>
|
|
</div>
|
|
<% }) %>
|
|
<button type="submit" class="btn btn-default" ng-click="tcreateData()">Submit</button>
|
|
<button type="submit" class="btn btn-default" ng-click="tcreateNone()">Cancel</button>
|
|
</form>
|
|
</div>
|
|
<div class="col-lg-4"></div>
|
|
</div>
|