Skip to content

Commit

Permalink
AH - update dialog text on Upload ALIs modal and collapse help sectio…
Browse files Browse the repository at this point in the history
…n by default (#4493)

* hide cycle msg on modal for ali import

* default access tree help section to collapsed

* update import access levels dialog text
  • Loading branch information
kflemin authored Jan 19, 2024
1 parent a79e797 commit 0207aef
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ angular.module('BE.seed.controller.organization_access_level_tree', [])
// AUTH: only owners can CRUD Access Level Tree and ALIs
// members and viewers can see their part of the hierarchy - read-only
$scope.auth = auth_payload.auth;
$scope.btnText = 'Collapse Help';
$scope.btnText = 'Expand Help';
$scope.access_level_tree = access_level_tree.access_level_tree;
$scope.access_level_names = access_level_tree.access_level_names;

Expand Down
3 changes: 2 additions & 1 deletion seed/static/seed/locales/en_US.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"ACCESS_LEVEL_ROOT_TEXT": "There is only one access level instance allowed at the root of the tree (level 1). Click on the pencil icon if you wish to rename it.",
"ACCESS_LEVEL_STRUCTURE_UPLOAD_TEXT": "Upload your Organizational Structure in spreadsheet form. The file should include a column for each access level with its column header equal to the custom access level name. Each row should contain an access level instance, with its ancestry fully defined (parent node name, grand-parent node name, etc.)",
"ACCESS_LEVEL_TREE_HELP_1": "This page allows you to view the structure of your organization's content. The structure is made up of hierarchical levels that define a tree; these are called access levels. Each level contains one or more nodes, called access level instances. Permissions are managed by associating content and users with a particular access level instance, thereby grouping and restricting access to the content. The number of access levels in your structure, the names of the levels, and the names of the access level instances are customizable.",
"ACCESS_LEVEL_UPLOAD_PROGRESS_MSG": "Saving access level instances in progress... This process depends on the size of your file and may take several minutes.",
"ADD_FILES_TO": "Add files to {dataset_name}.",
"ADD_REMOVE_LABELS_FROM_PROPERTIES": "Add or remove labels from {num, plural, one{1 selected property} other{# selected properties}}",
"ADD_REMOVE_LABELS_FROM_TAXLOTS": "Add or remove labels from {num, plural, one{1 selected tax lot} other{# selected tax lots}}",
Expand Down Expand Up @@ -1320,4 +1321,4 @@
"users": "users",
"white": "white",
"your data set name": "your data set name"
}
}
3 changes: 2 additions & 1 deletion seed/static/seed/locales/fr_CA.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
"ACCESS_LEVEL_ROOT_TEXT": "Il n'y a qu'une seule instance de niveau d'accès autorisée à la racine du graphe en arbre (niveau 1). Cliquez sur l'icône en forme de crayon si vous souhaitez le renommer.",
"ACCESS_LEVEL_STRUCTURE_UPLOAD_TEXT": "Téléchargez votre structure organisationnelle sous forme de feuille de calcul. Le fichier doit inclure une colonne pour chaque niveau d'accès avec son en-tête de colonne égal au nom du niveau d'accès personnalisé. Chaque ligne doit contenir une instance de niveau d'accès, avec son ascendance entièrement définie (nom du nœud parent, nom du nœud grand-parent, etc.)",
"ACCESS_LEVEL_TREE_HELP_1": "Cette page vous permet de visualiser la structure du contenu de votre organisation. La structure est constituée de niveaux hiérarchiques qui définissent une arborescence ; c'est ce qu'on appelle les niveaux d'accès. Chaque niveau contient un ou plusieurs nœuds, appelés instances de niveau d'accès. Les autorisations sont gérées en associant le contenu et les utilisateurs à une instance de niveau d'accès particulière, regroupant et restreignant ainsi l'accès au contenu. Le nombre de niveaux d'accès dans votre structure, les noms des niveaux et les noms des instances de niveau d'accès sont personnalisables.",
"ACCESS_LEVEL_UPLOAD_PROGRESS_MSG": "Enregistrement des instances de niveau d'accès en cours... Ce processus dépend de la taille de votre fichier et peut prendre plusieurs minutes.",
"ADD_FILES_TO": "Ajoutez des fichiers à {dataset_name}.",
"ADD_REMOVE_LABELS_FROM_PROPERTIES": "Ajouter ou supprimer des étiquettes de {num, plural, one{1 propriété sélectionnée} other{# propriétés sélectionnées}}",
"ADD_REMOVE_LABELS_FROM_TAXLOTS": "Ajouter ou supprimer des étiquettes de {num, plural, one{1 lot d'impôt sélectionné} other{# lots d'impôt sélectionnés}}",
Expand Down Expand Up @@ -1320,4 +1321,4 @@
"users": "utilisateurs",
"white": "blanc",
"your data set name": "votre nom du jeu de données"
}
}
5 changes: 3 additions & 2 deletions seed/static/seed/partials/data_upload_modal_progress.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
<div class="progress_bar_container">
<div class="progress_bar_copy_top" ng-if="step.number!==17" ng-attr-translate="{$ multipleCycleUpload ? 'UPLOADING_PROGRESS_MULTIPLE_CYCLE' : 'UPLOADING_PROGRESS' $}" translate-values="{ dataset_filename: dataset.filename , cycle_name: selectedCycle.name }"></div>
<div class="progress_bar_copy_top" ng-if="step.number!==17 && step.number!==20" ng-attr-translate="{$ multipleCycleUpload ? 'UPLOADING_PROGRESS_MULTIPLE_CYCLE' : 'UPLOADING_PROGRESS' $}" translate-values="{ dataset_filename: dataset.filename , cycle_name: selectedCycle.name }"></div>
<div
class="progress_bar_copy_top"
ng-if="step.number !== 20"
ng-attr-translate="{$ multipleCycleUpload ? 'UPLOADING_PROGRESS_MULTIPLE_CYCLE' : 'UPLOADING_PROGRESS' $}"
translate-values="{ dataset_filename: dataset.filename , cycle_name: selectedCycle.name }"
></div>
<uib-progressbar class="progress-striped active" value="uploader.progress" type="success"></uib-progressbar>
<div class="progress_bar_copy_bottom">{$ uploader.progress | number:0 $}% {$:: 'Complete' | translate $} {$ uploader.status_message ? ': ' + uploader.status_message : '' $}</div>
<div ng-if="step.number !== 20" class="progress_bar_copy_bottom">{$ uploader.progress | number:0 $}% {$:: 'Complete' | translate $} {$ uploader.status_message ? ': ' + uploader.status_message : '' $}</div>
<div ng-if="step.number == 20" class="progress_bar_copy_bottom" translate>ACCESS_LEVEL_UPLOAD_PROGRESS_MSG</div>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ <h2><i class="fa fa-sitemap"></i> {$:: 'Access Level Tree' | translate $}</h2>
<div class="section_content_container">
<div class="section_content with_padding" style="padding-top: 15px">
<button type="button" class="btn btn-primary" data-toggle="collapse" data-target="#instruction" ng-click="changeText(btnText)">{$ btnText $}</button>
<div class="section_content with_padding collapse in" style="margin-bottom: 15px" id="instruction">
<div class="section_content with_padding collapse" style="margin-bottom: 15px" id="instruction">
<p class="pad-top-10" translate>ACCESS_LEVEL_TREE_HELP_1</p>
<h3 translate>Access Levels (AL)</h3>
<p translate>ACCESS_LEVEL_DESCRIPTION</p>
Expand Down

0 comments on commit 0207aef

Please sign in to comment.