2015-07-02 03:50:57 +00:00
|
|
|
<div ng-hide="form.submitted">
|
2015-06-29 22:51:29 +00:00
|
|
|
|
|
|
|
<div class="field row">
|
2015-07-02 03:50:57 +00:00
|
|
|
<div class="col-sm-10 col-sm-offset-1"><h1>{{ form.title }}</h1>
|
2015-06-29 22:51:29 +00:00
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
|
2015-07-02 03:50:57 +00:00
|
|
|
<div class="row">
|
2015-07-04 04:57:06 +00:00
|
|
|
<form name="form" class="submission-form col-sm-offset-1 col-sm-10" name="form" ng-model="form" ng-repeat="field in form.form_fields" >
|
|
|
|
<field-directive field="field">
|
2015-07-02 03:50:57 +00:00
|
|
|
</field-directive>
|
|
|
|
</form>
|
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
<div class="row form-actions">
|
2015-07-02 03:50:57 +00:00
|
|
|
<button class="btn btn-success col-sm-2 col-sm-offset-5" type="button" ng-disabled="myForm.$valid" ng-click="submit()" style="font-size: 1.6em;">
|
|
|
|
<i class="icon-edit icon-white"></i> submit
|
2015-06-29 22:51:29 +00:00
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div ng-show="form.submitted">
|
2015-07-02 03:50:57 +00:00
|
|
|
|
|
|
|
<div class="field row">
|
|
|
|
<div class="col-sm-11 col-sm-offset-1"><h1>{{ form.title }}</h1>
|
|
|
|
<hr>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<br>
|
|
|
|
<br>
|
|
|
|
<div class="field row text-center">
|
|
|
|
<h4 class="col-xs-6 col-xs-offset-1 text-left">Form entry successfully submitted!<br> What would you like to do next?</h4>
|
|
|
|
</div>
|
|
|
|
<br><br><br><br><br>
|
2015-06-29 22:51:29 +00:00
|
|
|
<div class="row form-actions">
|
2015-07-02 04:54:46 +00:00
|
|
|
<p class="text-center col-xs-3 col-xs-offset-4">
|
2015-07-02 03:50:57 +00:00
|
|
|
<button class="btn btn-success left" type="button">
|
2015-07-21 23:25:45 +00:00
|
|
|
<a href="#" ng-click="reloadForm()" style="color:white;"> Submit again?</a>
|
2015-07-02 03:50:57 +00:00
|
|
|
</button>
|
|
|
|
</p>
|
|
|
|
<p class="text-center col-xs-2" ng-if="authentication.isAuthenticated()">
|
|
|
|
<button class="btn btn-caution left" type="button">
|
2015-07-02 04:54:46 +00:00
|
|
|
<a href="/#!/forms/{{form._id}}/admin" style="color:white;">Edit Form</a>
|
2015-06-29 22:51:29 +00:00
|
|
|
</button>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<!-- <div ng-repeat="field in form.form_fields">
|
|
|
|
Field Title: {{ field.title }} <br>
|
|
|
|
Field Value: {{ field.fieldValue }} <br><br>
|
|
|
|
</div> -->
|
|
|
|
</div>
|