2015-07-28 22:29:07 +00:00
|
|
|
<section class="overlay" ng-if="showCreateModal" ng-click="closeCreateModal()"></section>
|
2015-07-30 00:22:53 +00:00
|
|
|
<section data-ng-controller="ListFormsController as ctrl" data-ng-init="findAll()" class="container">
|
2015-07-07 01:21:43 +00:00
|
|
|
|
2015-07-30 00:22:53 +00:00
|
|
|
<!-- div class="row">
|
2015-06-30 11:05:44 +00:00
|
|
|
<div class="page-header col-xs-10 col-xs-offset-1">
|
|
|
|
<h1>My MedForms</h1>
|
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
</div> -->
|
|
|
|
<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-07 21:02:44 +00:00
|
|
|
<form name="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">
|
2015-07-30 00:22:53 +00:00
|
|
|
<div ng-init="setForm(createForm);" style="display:none;"></div>
|
|
|
|
<div class="title-row row">
|
|
|
|
<div class="col-xs-5 field-title">Name </div>
|
2015-08-06 05:52:59 +00:00
|
|
|
<div class="col-xs-12 field-input">
|
2015-07-30 00:22:53 +00:00
|
|
|
<input type="text" name="name" ng-model="name" required style="color:black; border:none;" ng-pattern="/^[a-zA-Z0-9 ]*$/"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="details-row row">
|
|
|
|
<div class="col-xs-5 field-title text-left">
|
|
|
|
Language
|
2015-07-07 01:21:43 +00:00
|
|
|
</div>
|
2015-07-30 00:22:53 +00:00
|
|
|
<div class="col-xs-5 field-input">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
<div class="details-row row">
|
|
|
|
<div class="col-xs-12 field-title text-center">
|
|
|
|
<button class="btn btn-primary" ng-disabled="myForm.$invalid" ng-click="createNew()">
|
|
|
|
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-07-07 01:21:43 +00:00
|
|
|
<span class="pull-right">
|
2015-08-19 22:29:01 +00:00
|
|
|
<i style="cursor:pointer;" class="fa fa-trash-o" ng-click="removeForm(form._id)"></i>
|
|
|
|
<i style="cursor:pointer;" class="fa fa-files-o" ng-click="duplicate($index)"></i>
|
2015-07-07 01:21:43 +00:00
|
|
|
</span>
|
2015-08-07 21:02:44 +00:00
|
|
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="row">
|
2015-07-07 01:21:43 +00:00
|
|
|
<a data-ng-href="#!/forms/{{form._id}}/admin" class="title-row col-xs-12">
|
|
|
|
<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>
|