tellform/public/modules/forms/views/directiveViews/form/submit-form.html

49 lines
1.7 KiB
HTML
Raw Normal View History

2015-07-02 03:50:57 +00:00
<div ng-hide="form.submitted">
2015-06-29 22:51:29 +00:00
2015-07-27 18:11:43 +00:00
<div class="field row" style="padding-bottom:5em;">
<div class="col-sm-10 col-sm-offset-1">
<h1>{{ form.title }}</h1>
<hr>
2015-06-29 22:51:29 +00:00
</div>
</div>
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" >
2015-07-27 18:11:43 +00:00
<field-directive field="field" ng-if="!field.deletePreserved">
2015-07-02 03:50:57 +00:00
</field-directive>
</form>
</div>
2015-07-27 18:11:43 +00:00
<hr>
2015-06-29 22:51:29 +00:00
<div class="row form-actions">
2015-07-27 18:11:43 +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;">
2015-07-02 03:50:57 +00:00
<i class="icon-edit icon-white"></i> submit
2015-07-27 18:11:43 +00:00
</button>
2015-06-29 22:51:29 +00:00
</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">
<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>