Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
mantariksh committed Sep 1, 2020
1 parent 0968a29 commit ab54ee3
Show file tree
Hide file tree
Showing 22 changed files with 37 additions and 107 deletions.
4 changes: 1 addition & 3 deletions src/public/modules/core/componentViews/avatar-dropdown.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@
ng-mouseenter="vm.isDropdownHover=true"
ng-mouseleave="vm.isDropdownHover=false"
>
<button class="navbar__avatar__avatar">
{{vm.avatarText}}
</button>
<button class="navbar__avatar__avatar">{{vm.avatarText}}</button>
<div ng-show="!vm.user.contact" class="navbar__avatar__avatar--alert">!</div>
<div ng-show="vm.isDropdownOpen" class="navbar__dropdown">
<ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,7 @@
src="/public/modules/core/img/emergency-contact.svg"
alt=""
/>
<div class="ecm__content__header">
Emergency mobile number
</div>
<div class="ecm__content__header">Emergency mobile number</div>
<div class="ecm__content__subheader">
Please verify your mobile number so we can contact you in the unlikely
case of an urgent form issue. You can change this number later in user
Expand Down Expand Up @@ -98,9 +96,7 @@
alt=""
/>
<div class="ecm__otp">
<div class="ecm__otp__header">
Verify your mobile number
</div>
<div class="ecm__otp__header">Verify your mobile number</div>
<div class="ecm__otp__subheader">
A text message with a verification code was just sent to you. The
code will be valid for 10 minutes.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,5 @@
<span class="response-title-number">
{{ vm.field.questionNumber ? vm.field.questionNumber + '.' : ''}}
</span>
<span class="response-title">
{{ vm.getPrefixedQuestion() }}
</span>
<span class="response-title"> {{ vm.getPrefixedQuestion() }} </span>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@
should use Storage mode to avoid data loss due to inbox capacity
issues.
</p>
<p>
However, choose Email mode if you need any of these features:
</p>
<p>However, choose Email mode if you need any of these features:</p>
<ul>
<li>MyInfo</li>
<li>Confidential responses</li>
Expand Down Expand Up @@ -86,15 +84,9 @@
Please only choose Email mode if you need any of these features:
</p>
<ul>
<li>
MyInfo
</li>
<li>
Confidential responses
</li>
<li>
Emailed copy of response to respondent
</li>
<li>MyInfo</li>
<li>Confidential responses</li>
<li>Emailed copy of response to respondent</li>
</ul>
</span>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@
beta
</span>
<!-- New Icon -->
<span class="beta-icon" ng-if="isNewField(type.name)">
new
</span>
<span class="beta-icon" ng-if="isNewField(type.name)"> new </span>
<!-- Field Icon -->
<div class="add-field-icon">
<field-icon-component
Expand All @@ -37,9 +35,7 @@

<!-- MyInfo Fields -->
<uib-tab feature-toggle feature-name="spcp-myinfo">
<uib-tab-heading>
MyInfo
</uib-tab-heading>
<uib-tab-heading> MyInfo </uib-tab-heading>
<!-- Only show fields if form type is not storage form -->
<div ng-if="myform.authType==='SP' && !isStorageForm">
<div class="myinfo-category">PERSONAL</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -263,9 +263,7 @@
class="col-xs-9 label-custom label-large"
>
Webhook Endpoint URL
<span class="beta-icon">
beta
</span>
<span class="beta-icon"> beta </span>
<i
class="glyphicon glyphicon-question-sign"
uib-tooltip="If specified, we will POST encrypted form submissions to a REST API supplied by you."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,7 @@
<div class="modal-body">
<!-- If form is spcp, check for e-service id-->
<div ng-if="vm.checkStatus === vm.checkEnum.esrvcId" id="verify-esrvcid">
<div class="field-title">
Validating your e-service ID
</div>
<div class="field-title">Validating your e-service ID</div>
<div class="loader" ng-if="vm.esrvcIdStatus === 1">
<i class="bx bx-loader bx-spin"></i>
</div>
Expand Down Expand Up @@ -53,9 +51,7 @@
</div>
<!-- Since CorpPass eservice id cannot be validated, remind user to check-->
<div ng-if="vm.esrvcIdSuccess.authType === 'CP'">
<div class="field-title">
This form uses CorpPass.
</div>
<div class="field-title">This form uses CorpPass.</div>
<div class="field-description">
Please make sure <b>{{vm.esrvcIdSuccess.esrvcId}}</b> is the correct
e-service ID
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,7 @@
</div>
<!-- Top section contains the title and functionality to add new collaborators -->
<div id="top-section" ng-if="userCanEdit">
<div class="label-custom" id="invite-title">
Add collaborators
</div>
<div class="label-custom" id="invite-title">Add collaborators</div>
<!-- Input and save button -->
<div ng-form="collab.form">
<div
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="modal-body">
<div class="field-title">
Are you sure you want to delete this field?
</div>
<div class="field-title">Are you sure you want to delete this field?</div>
<div class="field-description">
What you are about to do <b>cannot be undone</b>. This field will be
permanently deleted and any associated form logic may break as a result.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="modal-body">
<div class="field-title">
Are you sure you want to delete this form?
</div>
<div class="field-title">Are you sure you want to delete this form?</div>
<div class="field-description">
What you are about to do <b>cannot be undone</b>. Your form
"<b>{{vm.currFormTitle}}</b>" will be permanently deleted and all associated
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -288,7 +288,7 @@ <h2 class="modal-title">
search-enabled="true"
ng-model="vm.field.dateValidation.selectedDateValidation"
ng-change="vm.handleDateValidationChange()"
style="margin-bottom: 0;"
style="margin-bottom: 0"
>
<ui-select-match placeholder="None"
>{{$select.selected}}</ui-select-match
Expand Down Expand Up @@ -478,9 +478,7 @@ <h2 class="modal-title">
<span class="alert-msg">Please fill in a title</span>
</div>
<br />
<div class="label-custom label-medium label-bottom">
Field
</div>
<div class="label-custom label-medium label-bottom">Field</div>
<ui-select
ng-model="tableField.columnType"
theme="selectize"
Expand Down Expand Up @@ -944,7 +942,7 @@ <h2 class="modal-title">
search-enabled="true"
ng-model="vm.field.ValidationOptions.selectedValidation"
ng-change="vm.resetCustomValidationParams(vm.field); vm.setFocus()"
style="margin-bottom: 0;"
style="margin-bottom: 0"
>
<ui-select-match placeholder="None"
>{{$select.selected}}</ui-select-match
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@ <h2 class="modal-title">
<div class="col-md-12 label-custom label-medium label-bottom">
Data Source
</div>
<div class="col-md-12">
{{vm.field.myInfo.source}}
</div>
<div class="col-md-12">{{vm.field.myInfo.source}}</div>
</div>

<div class="row"><br /></div>
Expand Down Expand Up @@ -69,9 +67,7 @@ <h2 class="modal-title">
<div class="col-md-12 label-custom label-medium label-bottom">
Description
</div>
<div class="col-md-12">
{{vm.field.myInfo.description}}
</div>
<div class="col-md-12">{{vm.field.myInfo.description}}</div>
</div>

<div class="row"><br /></div>
Expand Down
12 changes: 3 additions & 9 deletions src/public/modules/forms/admin/views/list-forms.client.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,7 @@
ng-aria-disable
></div>
<!-- Welcome message -->
<div id="welcome" class="row">
Welcome back, {{vm.userName}}
</div>
<div id="welcome" class="row">Welcome back, {{vm.userName}}</div>

<!-- Form item for Create New Form -->
<div
Expand All @@ -40,9 +38,7 @@
{{form.title | limitTo: 24}}{{form.title.length > 24 ? '...' :
''}}
</div>
<div class="form-name" id="content-mobile">
{{form.title}}
</div>
<div class="form-name" id="content-mobile">{{form.title}}</div>
<div class="form-lastupdated">{{form.lastModifiedString}}</div>
<div class="form-islive" ng-if="form.status==='PUBLIC'">
Published
Expand Down Expand Up @@ -92,9 +88,7 @@
<div ng-if="vm.myforms.length === 0" id="welcome-placeholder">
<div class="row">
<div class="col-sm-6 col-xs-12">
<div id="welcome">
Welcome {{vm.userName}}
</div>
<div id="welcome">Welcome {{vm.userName}}</div>
<img
id="welcome-image"
class="hidden-sm hidden-md hidden-lg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@
</uib-tab>

<uib-tab feature-toggle feature-name="spcp-myinfo">
<uib-tab-heading>
MyInfo
</uib-tab-heading>
<uib-tab-heading> MyInfo </uib-tab-heading>
<!-- Unlike the non-mobile view, no overlay is shown. Thus, fields are -->
<!-- disabled instead if they do not fulfil a certain criteria. -->
<div ng-if="vm.myform.authType === 'SP'">
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
<div class="pop-up-modal">
<div class="modal-body">
<div class="field-title">
{{ vm.title }}
</div>
<div class="field-title">{{ vm.title }}</div>
<div class="field-description" ng-bind-html="vm.description"></div>
<div class="action-buttons">
<button
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@
src="/public/modules/forms/admin/img/empty.svg"
/>
<div class="title">No signs of movement</div>
<div class="subtitle">
This form doesn't have any responses yet.
</div>
<div class="subtitle">This form doesn't have any responses yet.</div>

<div class="caption">
Once there are responses, you will need your Secret Key to read them.
Expand Down Expand Up @@ -156,9 +154,7 @@
<div class="col-xs-12 col-sm-4">
<b>Reference number</b>
</div>
<div class="col-xs-12 col-sm-8">
{{ vm.decryptedResponse.refNo }}
</div>
<div class="col-xs-12 col-sm-8">{{ vm.decryptedResponse.refNo }}</div>
</div>
<div class="row">
<div class="col-xs-12 col-sm-4">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,7 @@ <h3 id="feedback-title" class="{{ vm.colorTheme }}-font">
</label>
</div>

<h3 id="feedback-sub-title">
Any other feedback?
</h3>
<h3 id="feedback-sub-title">Any other feedback?</h3>

<textarea
id="feedback-textfield"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,7 @@
ng-disabled="vm.field.disabled"
uis-open-close="vm.onDropdownOpenClose()"
>
<ui-select-match>
{{ $select.selected }}
</ui-select-match>
<ui-select-match> {{ $select.selected }} </ui-select-match>
<ui-select-choices
position="down"
refresh="vm.dropdownFilter($select.search)"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,7 @@
ng-click="!vm.display.resendBtn.disabled && !vm.display.resendBtn.overrideDisabled && vm.getNewOtp()"
>Resend OTP</a
>
<span ng-if="vm.countdown > 0">
in {{ vm.countdown}} seconds
</span>
<span ng-if="vm.countdown > 0"> in {{ vm.countdown}} seconds </span>
</div>
<!--'Required but unverified' message is on the parent input box-->
</div>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
<div class="modal-body">
<div class="field-title">
Submitting form. Please wait!
</div>
<div class="field-title">Submitting form. Please wait!</div>
<div class="loader">
<i class="bx bx-loader bx-spin"></i>
</div>
Expand Down
8 changes: 2 additions & 6 deletions src/public/modules/users/views/billing.client.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,11 @@
ng-init="vm.focusOnBilling()"
>
<img id="intro-img" ng-src="/public/modules/core/img/billing.svg" />
<div id="intro-title">
Bill charges
</div>
<div id="intro-title">Bill charges</div>
<div id="intro-sub-title">
To view your billing, enter your e-service ID below.
</div>
<div class="label-custom label-large label-bottom">
e-service ID
</div>
<div class="label-custom label-large label-bottom">e-service ID</div>
<form name="idForm">
<input
class="input-custom input-medium"
Expand Down
12 changes: 3 additions & 9 deletions src/public/modules/users/views/examples-card.client.view.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,11 @@
<div class="template-header">
<div class="header-group">
<div class="header-stat">
<div class="stat-title">
Total Submissions
</div>
<div class="stat-value">
{{ form.count }}
</div>
<div class="stat-title">Total Submissions</div>
<div class="stat-value">{{ form.count }}</div>
</div>
<div class="header-stat">
<div class="stat-title">
Rating
</div>
<div class="stat-title">Rating</div>
<div class="stat-value">
<span class="rating-value">
{{ feedbackScore }}
Expand Down

0 comments on commit ab54ee3

Please sign in to comment.