Skip to content

Commit

Permalink
Add i18n and change variables to snake cased
Browse files Browse the repository at this point in the history
  • Loading branch information
hedudelgado committed Oct 17, 2016
1 parent d043cc2 commit f966fe4
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 5 deletions.
1 change: 1 addition & 0 deletions src/app/views/apps/modals/app-settings-modal.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ angular.module 'mnoEnterpriseAngular'
# ----------------------------------------------------------
$scope.helper = {}
$scope.helper.canDeleteApp = ->
console.log(app)
MnoeOrganizations.can.destroy.appInstance()

$scope.helper.canDisplayBilling = ->
Expand Down
10 changes: 5 additions & 5 deletions src/app/views/apps/modals/app-settings-modal.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ <h3><b>{{ 'mno_enterprise.templates.impac.dock.settings.settings' | translate }}
<!-- Billing Details -->
<div ng-show="helper.canDisplayBilling()">
<hr>
<div ng-show="!!app.freeTrialEndAt">
Free Trial: {{ app.freeTrialEndAt }}
<div ng-show="!!app.free_trial_end_at">
{{ 'mno_enterprise.templates.impac.dock.settings.free_trial' | translate }}: {{ app.free_trial_end_at }}
</div>
<div ng-show="!app.freeTrialEndAt && app.perUserLicence">
<ng-pluralize count="app.licencesCount" when="{'0': 'No users', '1': '1 user', 'other': '{{app.licencesCount | number}} users'}"
<div ng-show="!app.free_trial_end_at && app.per_user_licence">
<ng-pluralize count="app.licences_count" when="{'0': 'No users', '1': '1 user', 'other': '{{app.licences_count | number}} users'}"
tooltip-placement="bottom" tooltip="This is the total number of people in your organization using {{app.name}}"></ng-pluralize>
</div>
<div ng-show="!app.freeTrialEndAt && !app.perUserLicence">Pricing details inside your app</div>
<div ng-show="!app.app.free_trial_end_at && !app.per_user_licence">{{ 'mno_enterprise.templates.impac.dock.settings.pricing_details' | translate }}</div>
</div>
<!-- Data Sharing -->
<div ng-show="helper.isDataSyncShown(app) || helper.isDataDisconnectShown(app)">
Expand Down
2 changes: 2 additions & 0 deletions src/locales/en.locale.json
Original file line number Diff line number Diff line change
Expand Up @@ -544,6 +544,8 @@
"mno_enterprise.templates.impac.dock.settings.manual_data_sync": "Manual Data Sync",
"mno_enterprise.templates.impac.dock.settings.disconnect_link": "Disconnect Link",
"mno_enterprise.templates.impac.dock.settings.delete": "Delete",
"mno_enterprise.templates.impac.dock.settings.pricing_details": "Pricing details inside your app",
"mno_enterprise.templates.impac.dock.settings.free_trial": "Free Trial",
"mno_enterprise.templates.impac.dock.settings.confirm_app_deletion": "Confirm app deletion",
"mno_enterprise.templates.impac.dock.settings.please_note_this_app": "Please note this app is on a monthly plan. Your billing for this app will be calculated pro rata.",
"mno_enterprise.templates.impac.dock.settings.delete_instructions": "In order to delete your app, please enter the following statement in the box below.",
Expand Down

0 comments on commit f966fe4

Please sign in to comment.