diff --git a/app/resources/locales/en_US/default.po b/app/resources/locales/en_US/default.po index 3a4a9d31a..854f5bbc4 100644 --- a/app/resources/locales/en_US/default.po +++ b/app/resources/locales/en_US/default.po @@ -533,6 +533,9 @@ msgstr "Build" msgid "match.op.build.confirm" msgstr "Are you sure you wish to (re)build this matchgrid?" +msgid "match.op.cancel" +msgstr "Cancel" + msgid "match.op.clear" msgstr "Clear" @@ -545,6 +548,9 @@ msgstr "Configure" msgid "match.op.configure.a" msgstr "Configure {0}" +msgid "match.op.confirm" +msgstr "Confirm" + msgid "match.op.delete" msgstr "Delete" @@ -626,6 +632,9 @@ msgstr "Generate New Reference ID" msgid "match.op.reconcile.request" msgstr "Reconcile Unresolved Request {0}/{1}" +msgid "match.op.remove" +msgstr "Remove" + msgid "match.op.save" msgstr "Save" diff --git a/app/src/View/Helper/FieldHelper.php b/app/src/View/Helper/FieldHelper.php index 792c997e0..57028dfda 100644 --- a/app/src/View/Helper/FieldHelper.php +++ b/app/src/View/Helper/FieldHelper.php @@ -152,7 +152,7 @@ public function submit($label) { ' . __('match.fd.req') . '
- ' . $this->Form->submit($label) . ' + ' . $this->Form->submit($label, ['class' => 'spin submit-button btn btn-primary']) . '
'; } diff --git a/app/src/View/Helper/MenuHelper.php b/app/src/View/Helper/MenuHelper.php new file mode 100644 index 000000000..580cecbb3 --- /dev/null +++ b/app/src/View/Helper/MenuHelper.php @@ -0,0 +1,86 @@ + 5, // visibility + 'Edit' => 10, // edit + 'Duplicate' => 15, // content_copy + 'Default' => 20, // link - default starting order for arbitrary action menu items + 'Delete' => 100 // delete + ); + + return $order[$action]; + } + + /** + * Get the Menu Icon per action + * + * @param string $action + * @return string|null + * + * @since COmanage Match v1.0.0 + */ + public function getMenuIcon($action) { + if(empty($action)) { + return null; + } + + $icon = array( + 'View' => 'visibility', + 'Edit' => 'edit', + 'Duplicate' => 'content_copy', + 'Default' => 'link', // default icon for arbitrary menu items + 'Delete' => 'delete' + ); + + return $icon[$action]; + } + +} \ No newline at end of file diff --git a/app/templates/AttributeMappings/columns.inc b/app/templates/AttributeMappings/columns.inc index 9c035d5df..0356bb0b9 100644 --- a/app/templates/AttributeMappings/columns.inc +++ b/app/templates/AttributeMappings/columns.inc @@ -39,7 +39,8 @@ $indexColumns = [ $topLinks = [ [ - 'label' => __('match.op.AttributeMappings.install.nicknames.en'), + 'label' => ' ' . + __('match.op.AttributeMappings.install.nicknames.en'), 'link' => [ 'action' => 'install', 'mapping' => 'nicknames.en' diff --git a/app/templates/AttributeMaps/columns.inc b/app/templates/AttributeMaps/columns.inc index bd8260b56..18c983844 100644 --- a/app/templates/AttributeMaps/columns.inc +++ b/app/templates/AttributeMaps/columns.inc @@ -34,7 +34,8 @@ $indexColumns = [ $indexActions = [ [ 'controller' => 'attribute_mappings', - 'action' => 'index', - 'class' => 'linkbutton' + 'action' => 'index', + 'class' => 'attribute-mappings', + 'icon' => 'swap_vert' ] ]; \ No newline at end of file diff --git a/app/templates/Matchgrids/columns.inc b/app/templates/Matchgrids/columns.inc index 186bd07b7..d35118693 100644 --- a/app/templates/Matchgrids/columns.inc +++ b/app/templates/Matchgrids/columns.inc @@ -41,6 +41,7 @@ $indexColumns = [ $indexActions = [ [ 'action' => 'manage', - 'class' => 'configurebutton' + 'class' => 'manage', + 'icon' => 'manage_accounts' ] ]; diff --git a/app/templates/Rules/columns.inc b/app/templates/Rules/columns.inc index f530d3d0c..c9ae5eaa0 100644 --- a/app/templates/Rules/columns.inc +++ b/app/templates/Rules/columns.inc @@ -42,6 +42,7 @@ $indexActions = [ [ 'controller' => 'rule_attributes', 'action' => 'index', - 'class' => 'linkbutton' + 'class' => 'rule-attributes', + 'icon' => 'check' ] ]; \ No newline at end of file diff --git a/app/templates/Standard/index.php b/app/templates/Standard/index.php index cee45194a..9deda13df 100644 --- a/app/templates/Standard/index.php +++ b/app/templates/Standard/index.php @@ -92,9 +92,10 @@ function _column_key($modelsName, $c, $tz=null) {