translate submit button

This commit is contained in:
Sam 2016-05-09 19:14:00 +03:00
parent 5cca4b05df
commit 9ca755e481
3 changed files with 7 additions and 5 deletions

View file

@ -21,12 +21,12 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
LEGAL_NO_ACCEPT: 'I dont accept',
DELETE: 'Delete',
CANCEL: 'Cancel',
UPLOAD_FILE: 'Upload your File'
UPLOAD_FILE: 'Upload your File',
SUBMIT: 'Submit'
});
$translateProvider.preferredLanguage('english')
.fallbackLanguage('english')
.useSanitizeValueStrategy('escape');
}]);

View file

@ -21,7 +21,8 @@ angular.module('forms').config(['$translateProvider', function ($translateProvid
LEGAL_NO_ACCEPT: 'Jen naccepte pas',
DELETE: 'Supprimer',
CANCEL: 'Réinitialiser',
UPLOAD_FILE: 'Envoyer des fichier'
UPLOAD_FILE: 'Envoyer des fichier',
SUBMIT: 'Enregistrer'
});
}]);

View file

@ -64,6 +64,7 @@ ng-style="{'color':button.color}">
<div class="row form-actions" id="submit_field"
<<<<<<< f4590ec7d744fde5b543eba3d589cd5727222143
ng-class="{activeField: selected._id == 'submit_field' }"
ng-style="{ 'background-color':myform.design.colors.buttonColor}"
style="border-top: 1px solid #ddd; margin-right: -13%; margin-left: -13%; margin-top: 30vh; height: 100vh">
@ -84,7 +85,7 @@ ng-style="{'color':button.color}">
ng-style="{'background-color':myform.design.colors.buttonColor, 'color':myform.design.colors.buttonTextColor}"
style="font-size: 1.6em; margin-left: 1em; margin-top: 1em;">
Submit
{{ 'SUBMIT' | translate }}
</button>
<button ng-if="forms.myForm.$invalid"