Skip to content

Commit

Permalink
allow to set the credentials ID in the UI (#73)
Browse files Browse the repository at this point in the history
[JENKINS-32987]
  • Loading branch information
daspilker authored and aheritier committed Sep 21, 2016
1 parent 09fa112 commit 1c5149c
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/main/resources/au/com/rayh/DeveloperProfile/config.groovy
Expand Up @@ -4,13 +4,7 @@ import java.security.GeneralSecurityException
import java.security.cert.CertificateException

f = namespace(lib.FormTagLib)

f.entry(title:_("Description"), field:"description") {
if (instance!=null)
raw("<input type=hidden name=id value=${instance.id}>");
f.textbox()
}

st = namespace("jelly:stapler")

def fileForm() {
f.entry(title:_("*.developerprofile File"), field:"image") {
Expand Down Expand Up @@ -55,8 +49,4 @@ if (img ==null) {
}
}

/*
f.entry() {
iframe(src:"${rootURL}/descriptor/${DeveloperProfile.class.name}/upload?id=TODO")
}
*/
st.include(page: "id-and-description", class: descriptor.clazz)

0 comments on commit 1c5149c

Please sign in to comment.