Merge pull request #100 from marshmalien/ux/fix/orgs

Fix UX items related to Organizations
This commit is contained in:
Marliana Lara 2017-07-28 12:46:44 -04:00 committed by GitHub
commit 103118b551
3 changed files with 9 additions and 3 deletions

View File

@ -104,6 +104,7 @@ export default [{
delete list.actions.add;
// @issue Why is the delete action unavailable in this view?
delete list.fieldActions.delete;
list.listTitle = N_('Teams') + ` | {{ name }}`;
list.basePath = `${GetBasePath('organizations')}${$stateParams.organization_id}/teams`;
list.emptyListText = "This list is populated by teams added from the&nbsp;<a ui-sref='teams.add'>Teams</a>&nbsp;section";
return list;
@ -149,6 +150,8 @@ export default [{
delete list.actions.add;
// @issue Why is the delete action unavailable in this view?
delete list.fieldActions.delete;
list.title = true;
list.listTitle = N_('Inventories') + ` | {{ name }}`;
list.basePath = `${GetBasePath('organizations')}${$stateParams.organization_id}/inventories`;
list.emptyListText = "This list is populated by inventories added from the&nbsp;<a ui-sref='inventories.add'>Inventories</a>&nbsp;section";
return list;
@ -199,6 +202,7 @@ export default [{
delete list.actions;
// @issue Why is the delete action unavailable in this view?
delete list.fieldActions.delete;
list.listTitle = N_('Projects') + ` | {{ name }}`;
list.basePath = `${GetBasePath('organizations')}${$stateParams.organization_id}/projects`;
list.emptyListText = "This list is populated by projects added from the&nbsp;<a ui-sref='projects.add'>Projects</a>&nbsp;section";
return list;
@ -259,7 +263,7 @@ export default [{
// @issue Why is the delete action unavailable in this view?
delete list.fieldActions.delete;
delete list.fields.type;
list.listTitle = N_('Job Templates');
list.listTitle = N_('Job Templates') + ` | {{ name }}`;
list.emptyListText = "This list is populated by job templates added from the&nbsp;<a ui-sref='templates.addJobTemplate'>Job Templates</a>&nbsp;section";
list.iterator = 'template';
list.name = 'job_templates';
@ -344,7 +348,7 @@ export default [{
ngClick: 'addUsers()'
}
};
list.listTitle = 'Admins';
list.listTitle = N_('Admins') + ` | {{ name }}`;
return list;
}]
}

View File

@ -52,7 +52,8 @@
ng-repeat="card in orgCards track by card.id">
<div class="OrgCards-header">
<h3 class="OrgCards-label"
aw-tool-tip="{{ (card.description || 'Place organization description here') | sanitize }}"
ng-click="editOrganization(card.id)"
aw-tool-tip="{{ (card.description || '') | sanitize }}"
aw-tip-placement="top">
{{ card.name }}
</h3>

View File

@ -54,6 +54,7 @@
}
.OrgCards-label {
cursor: pointer;
margin-top: 0px;
font-size: 14px;
height: 17px;