Changed domain models. Added page for changing translations (just a model).

Added tag lib.
This commit is contained in:
Prominence
2016-06-27 17:22:08 +03:00
parent f1eda4f146
commit bde8905bfa
13 changed files with 146 additions and 23 deletions
@@ -26,4 +26,25 @@ class TranslationsOverviewController {
render view: 'show', model: [bundle: bundle]
}
def edit() {
if (!params.bundleName) {
redirect action: 'index'
return
}
Bundle bundle = bundleService.findBundleByName(params.bundleName as String)
if (!bundle) {
render view: 'index', model: [message: g.message(code: 'plugin.translations.error.bundleNotFound', args: [params.bundleName as String])]
return
}
render view: 'edit', model: [bundle: bundle]
}
def saveFile() {
}
}