2015-07-28 22:29:07 +00:00
|
|
|
<section class="overlay" ng-if="showCreateModal" ng-click="closeCreateModal()"></section>
|
2015-07-07 01:21:43 +00:00
|
|
|
|
2015-11-06 17:25:30 +00:00
|
|
|
<section data-ng-controller="ListFormsController as ctrl" data-ng-init="findAll()" class="container">
|
2015-07-30 00:22:53 +00:00
|
|
|
<br>
|
2015-07-02 02:49:35 +00:00
|
|
|
<div class="row">
|
2015-08-06 05:52:59 +00:00
|
|
|
<div ng-click="openCreateModal()" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new">
|
2015-06-30 11:05:44 +00:00
|
|
|
<div class="title-row col-xs-12">
|
2015-07-07 01:21:43 +00:00
|
|
|
<h4 class="fa fa-plus fa-6"></h4>
|
2015-06-30 08:54:00 +00:00
|
|
|
</div>
|
2015-06-30 11:05:44 +00:00
|
|
|
<div class="col-xs-12 details-row">
|
2015-06-30 08:54:00 +00:00
|
|
|
|
|
|
|
<small class="list-group-item-text">
|
|
|
|
Create a new form
|
|
|
|
</small>
|
|
|
|
|
2015-07-07 01:21:43 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2015-08-20 18:47:25 +00:00
|
|
|
<form name="forms.createForm" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item create-new new-form" ng-if="showCreateModal">
|
|
|
|
<div class="title-row row">
|
|
|
|
<div class="col-xs-5 field-title text-left"> Name </div>
|
|
|
|
<div class="col-xs-12 field-input">
|
2015-10-30 21:40:22 +00:00
|
|
|
<input type="text" name="title" required ng-model="formTitle" ng-pattern="/^[a-zA-Z0-9 \-.]*$/" ng-minlength="4"/>
|
2015-07-07 01:21:43 +00:00
|
|
|
</div>
|
2015-08-20 18:47:25 +00:00
|
|
|
</div>
|
|
|
|
<div class="details-row row">
|
|
|
|
<div class="col-xs-5 field-title text-left"> Language </div>
|
|
|
|
<div class="col-xs-12 field-input">
|
|
|
|
<div class="button custom-select">
|
2015-07-30 00:22:53 +00:00
|
|
|
<select style="color:black;" name="language" required ng-model="formLanguage" ng-init="formLanguage = user.language">
|
|
|
|
<option ng-repeat="language in languages" value="{{language}}">
|
|
|
|
{{language}}
|
|
|
|
</option>
|
|
|
|
</select>
|
|
|
|
</div>
|
2015-08-20 18:47:25 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="details-row submit row">
|
|
|
|
<div class="col-xs-12 field-title text-center">
|
2015-11-06 17:25:30 +00:00
|
|
|
<button class="btn btn-primary" ng-disabled="forms.createForm.$invalid" ng-click="createNewForm()">
|
2015-08-20 18:47:25 +00:00
|
|
|
Create Form
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-07-07 01:21:43 +00:00
|
|
|
</form>
|
|
|
|
|
2015-08-07 21:02:44 +00:00
|
|
|
<div data-ng-repeat="form in myforms" class="col-xs-6 col-xs-offset-3 col-sm-4 col-sm-offset-1 col-md-3 col-md-offset-1 form-item container">
|
|
|
|
|
|
|
|
<div class="row">
|
2015-10-30 18:40:02 +00:00
|
|
|
<span class="pull-right">
|
|
|
|
<i style="cursor:pointer;" class="fa fa-trash-o" ng-click="removeForm($index)"></i>
|
2015-11-06 17:25:30 +00:00
|
|
|
<i style="cursor:pointer;" class="fa fa-files-o" ng-click="duplicateForm($index)"></i>
|
2015-10-30 18:40:02 +00:00
|
|
|
</span>
|
2015-08-07 21:02:44 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2015-11-06 17:25:30 +00:00
|
|
|
<a data-ng-href="#!/forms/{{form._id}}/admin/create" class="title-row col-xs-12">
|
2015-07-07 01:21:43 +00:00
|
|
|
<h4 class="list-group-item-heading" data-ng-bind="form.title"></h4>
|
|
|
|
</a>
|
2015-08-07 21:02:44 +00:00
|
|
|
</div>
|
2015-06-30 08:54:00 +00:00
|
|
|
|
2015-08-07 21:02:44 +00:00
|
|
|
<div class="row footer">
|
|
|
|
<div class="col-xs-12 details-row">
|
|
|
|
|
|
|
|
<small class="list-group-item-text">
|
|
|
|
Created on
|
|
|
|
<span data-ng-bind="form.created | date:'shortDate'"></span>
|
|
|
|
</small>
|
|
|
|
<!--by
|
|
|
|
<span data-ng-bind="form.admin.username"></span>
|
|
|
|
</small> -->
|
|
|
|
|
|
|
|
</div>
|
2015-06-30 08:54:00 +00:00
|
|
|
</div>
|
2015-07-07 01:21:43 +00:00
|
|
|
</div>
|
2015-06-29 22:51:29 +00:00
|
|
|
</div>
|
|
|
|
</section>
|