add field help to the EDI account modal
authorGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Apr 2020 15:24:58 +0000 (11:24 -0400)
committerGalen Charlton <gmc@equinoxinitiative.org>
Thu, 9 Apr 2020 15:24:58 +0000 (11:24 -0400)
Signed-off-by: Galen Charlton <gmc@equinoxinitiative.org>
Open-ILS/src/eg2/src/app/staff/acq/provider/provider-edi-accounts.component.html

index 6e8a3af..d475b84 100644 (file)
   </eg-grid>
 </ng-container>
 
+<eg-string #hostHelpStr text="EDI FTP or SCP server, including protocol. For example, ftp://ftp.example.org." i18n-text></eg-string>
+<eg-string #usernameHelpStr text="Username supplied by provider."></eg-string>
+<eg-string #passwordHelpStr text="Password supplied by provider."></eg-string>
+<eg-string #pathHelpStr text="Directory on the provider's server where Evergreen should deposit order files."></eg-string>
+<eg-string #indirHelpStr text="Directory on the provider's server where Evergreen should retrieve order responses and invoices."></eg-string>
+<eg-string #vendacctHelpStr text="Supplied by provider."></eg-string>
+<eg-string #vendcodeHelpStr text="Supplied by provider."></eg-string>
+<eg-string #accountHelpStr text="Supplied by provider."></eg-string>
+
 <eg-fm-record-editor #editDialog
   idlClass="acqedi"
   readonlyFields="id,provider"
   hiddenFields="provider,last_activity"
+  [fieldOptions]="{
+                    host: {helpText: hostHelpStr},
+                    username: {helpText: usernameHelpStr},
+                    password: {helpText: passwordHelpStr},
+                    path: {helpText: pathHelpStr},
+                    in_dir: {helpText: indirHelpStr},
+                    vendacct: {helpText: vendacctHelpStr},
+                    vendcode: {helpText: vendcodeHelpStr},
+                    account: {helpText: accountHelpStr}
+                  }"
   fieldOrder="id,label,host,username,password,account,owner,path,in_dir,vendacct,vendcode,attr_set,use_attrs">
 </eg-fm-record-editor>