diff --git a/app/resources/locales/en_US/default.po b/app/resources/locales/en_US/default.po index bac5000cd..c430ce587 100644 --- a/app/resources/locales/en_US/default.po +++ b/app/resources/locales/en_US/default.po @@ -43,7 +43,7 @@ msgid "match.meta.powered" msgstr "Powered By" msgid "match.meta.version" -msgstr "Version {0}" +msgstr "COmanage Match v{0}" ### Banners msgid "match.banner.api_users.matchgrid" diff --git a/app/src/Lib/Match/ResultManager.php b/app/src/Lib/Match/ResultManager.php index 3b7639a5f..00a709793 100644 --- a/app/src/Lib/Match/ResultManager.php +++ b/app/src/Lib/Match/ResultManager.php @@ -137,8 +137,8 @@ protected function filterMetadata($parsed, $referenceId=null) { case 'request_time': case 'resolution_time': // Timestamps, format and inflect name - $ret['meta'][\Cake\Utility\Inflector::variable($attr)] = strftime("%FT%TZ", - strtotime($parsed[$attr])); + $ret['meta'][\Cake\Utility\Inflector::variable($attr)] = date("Y-m-d\TH:i:s\Z", + strtotime($parsed[$attr])); break; case 'sor': $ret['meta']['sorLabel'] = $parsed[$attr]; diff --git a/app/src/Model/Table/ApiUsersTable.php b/app/src/Model/Table/ApiUsersTable.php index 7007d4132..3c9ead2be 100644 --- a/app/src/Model/Table/ApiUsersTable.php +++ b/app/src/Model/Table/ApiUsersTable.php @@ -70,7 +70,8 @@ public function initialize(array $config): void { 'systemsOfRecord' => [ 'type' => 'select', 'model' => 'SystemsOfRecord', - 'find' => 'filterPrimaryLink' + 'find' => 'filterPrimaryLink', + 'order' => ['label' => 'ASC'] ] ]); } diff --git a/app/src/View/Helper/FieldHelper.php b/app/src/View/Helper/FieldHelper.php index 6f92f215a..9855fb0c7 100644 --- a/app/src/View/Helper/FieldHelper.php +++ b/app/src/View/Helper/FieldHelper.php @@ -34,7 +34,7 @@ use \Cake\View\Helper; class FieldHelper extends Helper { - public $helpers = ['Form']; + public $helpers = ['Form', 'Time']; // Is this read-only or read-write? protected $editable = true; @@ -65,6 +65,7 @@ public function control(string $fieldName, array $childControls=[]) { $coptions = $options; $coptions['label'] = false; + $isRequired = $required; // We might override this below $label = null; $desc = null; @@ -142,12 +143,12 @@ public function control(string $fieldName, ' . ($this->editable ? $this->Form->label($fieldName, $label) : $label) - . ($required ? ' *' : '') . ' + . ($isRequired ? ' *' : '') . ' ' . ($desc ? '' . $desc . '' : "") .'
- ' . $this->Form->control($fieldName, $coptions) . ' + ' . $control . ' ' . $children . '
diff --git a/app/templates/AttributeMappings/columns.inc b/app/templates/AttributeMappings/columns.inc index d5a52c04e..0b65c5327 100644 --- a/app/templates/AttributeMappings/columns.inc +++ b/app/templates/AttributeMappings/columns.inc @@ -19,7 +19,7 @@ * See the License for the specific language governing permissions and * limitations under the License. * - * @link http://www.internet2.edu/comanage COmanage Project + * @link https://www.internet2.edu/comanage COmanage Project * @package match * @since COmanage Match v1.0.0 * @license Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0) diff --git a/app/templates/MatchgridRecords/fields.inc b/app/templates/MatchgridRecords/fields.inc index 79cad5130..204e9d4a8 100644 --- a/app/templates/MatchgridRecords/fields.inc +++ b/app/templates/MatchgridRecords/fields.inc @@ -51,4 +51,10 @@ if($action == 'add' || $action == 'edit') { } print $this->Field->control('referenceid', [], false, __('match.fd.referenceid', [1])); +} + +if($action == 'edit') { + print $this->Field->control('request_time'); + // Force resolution to read only since it might not be populated + print $this->Field->control('resolution_time', ['readonly' => true]); } \ No newline at end of file diff --git a/app/templates/Matchgrids/configure.php b/app/templates/Matchgrids/configure.php index 29039a3f1..bd1cc45c8 100644 --- a/app/templates/Matchgrids/configure.php +++ b/app/templates/Matchgrids/configure.php @@ -33,6 +33,8 @@ + +
' . $this->Html->link( $t['label'], - array_merge($linkFilter, $t['link']), + array_merge_recursive($linkFilter, $t['link']), ['escape' => false, 'class' => $t['class']] ) . ' ';