stable

Clone or download

Read-only

Admin can create new ArtifactLink natures

Part of story #8833: show, import and manipulate links The administrator can now create custom natures, by providing a shortname, a forward label and a reverse label. Please note that: * The shortname must be unique. * The shortname must begin by a letter, and may contain letters or underscores. Special characters or accentuated letters are not allowed. * The l10n will be done in a near future. * There is no distinction yet between system natures (_is_child) and custom natures. Change-Id: Id2a0613695131b59007b352871bba43c29d0d172

Modified Files

Name
M plugins/tracker/db/install.sql +7 −0 Go to diff View file
A plugins/tracker/db/mysql/updates/2016/201603080951_create_tracker_artifactlink_natures_table.php +44 −0 Go to diff View file
M plugins/tracker/db/uninstall.sql +1 −0 Go to diff View file
M plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureConfigPresenter.php +33 −10 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureCreator.php +72 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureDao.php +65 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/NatureFactory.php +50 −0 Go to diff View file
A plugins/tracker/include/Tracker/FormElement/Field/ArtifactLink/Nature/UnableToCreateNatureException.php +24 −0 Go to diff View file
M plugins/tracker/include/TrackerPluginConfigController.php +62 −3 Go to diff View file
M plugins/tracker/include/autoload.php +6 −2 Go to diff View file
M plugins/tracker/site-content/en_US/tracker.tab +16 −3 Go to diff View file
M plugins/tracker/site-content/fr_FR/tracker.tab +14 −1 Go to diff View file
M plugins/tracker/templates/siteadmin-config.mustache +1 −1 Go to diff View file
A plugins/tracker/templates/siteadmin-config/natures-modal.mustache +40 −0 Go to diff View file
M plugins/tracker/templates/siteadmin-config/natures.mustache +7 −0 Go to diff View file
M plugins/tracker/www/config.php +13 −1 Go to diff View file
M plugins/tracker/www/themes/default/css/style.less +11 −11 Go to diff View file