2016-08-25 23:33:10 +00:00
< header data-ng-include = "'/static/modules/core/views/header.client.view.html'" > < / header >
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
2016-11-14 20:07:36 +00:00
<!-- Modal Delete Dialog Template -->
< script type = "text/ng-template" id = "deleteModalListForms.html" >
< div class = "modal-header" >
< h2 class = "modal-title hidden-md hidden-lg" > {{ 'ARE_YOU_SURE' | translate }}< / h2 >
< h3 class = "modal-title hidden-xs hidden-sm" > {{ 'ARE_YOU_SURE' | translate }}< / h3 >
< / div >
< div class = "modal-body" >
< div class = "modal-body-alert" >
{{ 'READ_WARNING' | translate }}
< / div >
< p class = "hidden-xs hidden-sm" >
{{ 'DELETE_WARNING1' | translate }} < strong > {{content.currFormTitle}}< / strong > {{ 'DELETE_WARNING2' | translate }}
< / p >
< p > {{ 'DELETE_CONFIRM' | translate }}< / p >
< / div >
< div class = "modal-footer" >
< input type = "text" style = "width:100%" data-ng-model = "deleteConfirm" class = "input-block" autofocus required aria-label = "Type in the name of the form to confirm that you want to delete this form." >
2017-03-06 20:39:29 +00:00
< button type = "submit" ng-click = "deleteForm()" class = "btn btn-block btn-danger" ng-disabled = "content.currFormTitle != deleteConfirm" >
2016-11-14 20:07:36 +00:00
{{ 'I_UNDERSTAND' | translate }}
< / button >
< / div >
< / script >
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 >
2016-11-02 18:30:04 +00:00
< div class = "row" >
< div class = "col-xs-4 col-xs-offset-4" >
< h3 class = "text-center forms-list-title" >
2017-07-12 20:31:04 +00:00
{{ 'MY_FORMS' | translate }}
2016-11-02 18:30:04 +00:00
< / h3 >
< / div >
< / div >
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" >
2017-07-12 20:31:04 +00:00
2015-06-30 08:54:00 +00:00
< small class = "list-group-item-text" >
2016-06-16 00:38:22 +00:00
{{ 'CREATE_A_NEW_FORM' | translate }}
2015-06-30 08:54:00 +00:00
< / small >
2017-07-12 20:31:04 +00:00
< / div >
2015-07-07 01:21:43 +00:00
< / 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" >
2017-07-12 20:31:04 +00:00
< div class = "col-xs-5 field-title text-left" > {{ 'NAME' | translate }} < / div >
2015-08-20 18:47:25 +00:00
< div class = "col-xs-12 field-input" >
2016-06-08 23:56:06 +00:00
< input type = "text" name = "title" required ng-model = "formTitle" ng-pattern = "languageRegExp" ng-minlength = "4" style = "color:black;" / >
2015-07-07 01:21:43 +00:00
< / div >
2015-08-20 18:47:25 +00:00
< / div >
2017-07-12 20:31:04 +00:00
< div class = "details-row row" >
< div class = "col-xs-5 field-title text-left" > {{ 'LANGUAGE' | translate }} < / div >
2015-08-20 18:47:25 +00:00
< 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 >
2017-07-12 20:31:04 +00:00
< / select >
2015-07-30 00:22:53 +00:00
< / div >
2015-08-20 18:47:25 +00:00
< / div >
< / div >
2017-07-12 20:31:04 +00:00
< div class = "details-row submit row" >
2015-08-20 18:47:25 +00:00
< 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()" >
2016-06-16 00:38:22 +00:00
{{ 'CREATE_FORM' | translate }}
2015-08-20 18:47:25 +00:00
< / button >
< / div >
2017-07-12 20:31:04 +00:00
< / div >
2015-07-07 01:21:43 +00:00
< / form >
2017-07-12 20:31:04 +00:00
< div data-ng-repeat = "form in myforms"
2016-11-02 18:30:04 +00:00
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"
ng-class="{'paused': !form.isLive}">
2015-08-07 21:02:44 +00:00
< div class = "row" >
2017-07-12 20:31:04 +00:00
< span class = "pull-right" >
2016-11-14 20:07:36 +00:00
< i style = "cursor:pointer;" class = "fa fa-trash-o" ng-click = "openDeleteModal($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" >
2016-11-02 18:30:04 +00:00
< a data-ng-href = "#!/forms/{{form._id}}/admin/create"
2016-11-14 20:07:36 +00:00
class="title-row col-xs-12" style="color: white;">
2016-11-02 18:30:04 +00:00
< h4 class = "list-group-item-heading" data-ng-bind = "form.title" > < / h4 >
< / a >
< div class = "col-xs-12 responses-row" >
2015-08-07 21:02:44 +00:00
< small class = "list-group-item-text" >
2017-07-12 20:31:04 +00:00
< span > {{ form.submissions.length }} {{ 'RESPONSES' | translate }} < / span >
2016-11-02 18:30:04 +00:00
< / small >
< br >
< br >
< small ng-if = "!form.isLive" class = "list-group-item-text" >
2017-07-12 20:31:04 +00:00
< span > {{ 'FORM_PAUSED' | translate }} < / span >
2015-08-07 21:02:44 +00:00
< / 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 >
2016-04-22 00:05:37 +00:00
< / section >