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

78 lines
3.3 KiB
HTML
Raw Normal View History

<div cg-busy="{promise:submitPromise,message:'Submitting form...',backdrop:true}"></div>
2015-08-04 21:06:16 +00:00
<section class="overlay submitform" ng-if="selected" ng-click="hideOverlay()"></section>
2015-08-06 05:52:59 +00:00
<div ng-show="!form.submitted && form.startPage.showStart" class="form-submitted">
2015-08-06 05:52:59 +00:00
<div class="field row text-center">
2015-08-07 21:02:44 +00:00
<div class="col-xs-12 text-center">
2015-08-06 05:52:59 +00:00
<h1>Welcome to {{form.title}}</h1>
</div>
<div class="col-xs-10 col-xs-offset-1 text-center">
2015-08-07 21:02:44 +00:00
<p>{{form.startPage.introText}}</p>
</div>
</div>
<div class="row form-actions">
<p ng-repeat="button in form.startPage.buttons" class="col-xs-6 col-xs-offset-3 text-center">
<button class="btn btn-info" type="button">
<a href="{{button.url}}" style="font-size: 1.6em; text-decoration: none;">{{button.buttonText}}</a>
</button>
</p>
2015-08-06 05:52:59 +00:00
</div>
<div class="row form-actions">
<p class="col-xs-6 col-xs-offset-3 text-center">
2015-08-06 05:52:59 +00:00
<button class="btn btn-info" type="button">
<a ng-click="exitStartPage()" style="font-size: 1.6em; text-decoration: none;">Continue to Form</a>
2015-08-06 05:52:59 +00:00
</button>
</p>
</div>
</div>
<div ng-show="!form.submitted && !form.startPage.showStart" data-ng-init="initFocus()">
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">
2015-08-06 05:52:59 +00:00
<h1>{{ form.title }} <span style="font-size:0.8em; color: #bbb;" ng-if="!form.isLive">(private preview)</span></h1>
2015-07-27 18:11:43 +00:00
<hr>
2015-06-29 22:51:29 +00:00
</div>
</div>
2015-07-02 03:50:57 +00:00
<div class="row">
<form name="myForm" class="submission-form col-sm-12 col-md-offset-1 col-md-10">
2015-08-06 05:52:59 +00:00
<div ng-repeat="field in form.form_fields" ng-if="!field.deletePreserved" ng-class="{activeField: selected == field._id }" class="row field-directive">
<field-directive field="field" >
</field-directive>
</div>
2015-07-02 03:50:57 +00:00
</form>
</div>
2015-08-06 05:52:59 +00:00
2015-07-27 18:11:43 +00:00
<hr>
2015-08-06 05:52:59 +00:00
2015-06-29 22:51:29 +00:00
<div class="row form-actions">
2015-08-06 05:52:59 +00:00
<button class="btn btn-success col-sm-2 col-sm-offset-5" type="button" ng-disabled="myForm.$invalid" ng-click="submit()" style="font-size: 1.6em;">
Submit
2015-07-27 18:11:43 +00:00
</button>
2015-06-29 22:51:29 +00:00
</div>
</div>
2015-08-07 21:02:44 +00:00
<div ng-show="form.submitted" class="form-submitted">
2015-07-02 03:50:57 +00:00
<!-- <div class="field row">
2015-07-02 03:50:57 +00:00
<div class="col-sm-11 col-sm-offset-1"><h1>{{ form.title }}</h1>
<hr>
</div>
</div> -->
2015-07-02 03:50:57 +00:00
<div class="field row text-center">
<div class="col-xs-6 col-xs-offset-3 text-center">Form entry successfully submitted!<br><br> Please take a seat and wait for your number to be called!</div>
2015-07-02 03:50:57 +00:00
</div>
2015-06-29 22:51:29 +00:00
<div class="row form-actions">
<p class="text-center col-xs-4 col-xs-offset-4">
<button class="btn btn-info" type="button">
2015-08-06 05:52:59 +00:00
<a ng-click="reloadForm()" style="color:white; font-size: 1.6em; text-decoration: none;" > Go back to Form</a>
2015-07-02 03:50:57 +00:00
</button>
</p>
<!-- <p class="text-center col-xs-2" ng-if="authentication.isAuthenticated()">
2015-07-02 03:50:57 +00:00
<button class="btn btn-caution left" type="button">
<a href="/#!/forms/{{form._id}}/admin" style="color:white; font-size: 1.6em; text-decoration: none;">Edit Form</a>
2015-06-29 22:51:29 +00:00
</button>
</p> -->
2015-06-29 22:51:29 +00:00
</div>
</div>