From f5ccdf74654c2906a937ee1a6d93ce31f99fec5b Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Fri, 11 Dec 2015 17:53:39 +0100 Subject: [PATCH] Added external user modal Former-commit-id: 4b1a8ed74f3a4085ab5c250626c51b0f0b017c0d --- src/se/koc/hal/page/PCConfigureHttpPage.java | 4 +- web-resource/configure.tmpl | 83 ++++++++++++++++++-- 2 files changed, 77 insertions(+), 10 deletions(-) diff --git a/src/se/koc/hal/page/PCConfigureHttpPage.java b/src/se/koc/hal/page/PCConfigureHttpPage.java index b85305a0..65db860f 100755 --- a/src/se/koc/hal/page/PCConfigureHttpPage.java +++ b/src/se/koc/hal/page/PCConfigureHttpPage.java @@ -26,8 +26,8 @@ public class PCConfigureHttpPage extends HalHttpPage { User localUser = User.getLocalUser(db); // Save new input - if(request.containsKey("form")){ - if(request.get("form").equals("user")){ + if(request.containsKey("action")){ + if(request.get("action").equals("update_user")){ localUser.setUserName(request.get("username")); localUser.setAddress(request.get("address")); localUser.save(db); diff --git a/web-resource/configure.tmpl b/web-resource/configure.tmpl index a71f5559..fb42d789 100755 --- a/web-resource/configure.tmpl +++ b/web-resource/configure.tmpl @@ -5,18 +5,17 @@
Profile Information
- - +
- +
- +
- +
@@ -75,7 +74,11 @@ Hostname Port - + {{#extUsers}} @@ -86,8 +89,18 @@ {{.port}}
- - + +
@@ -126,4 +139,58 @@
+ + + + + + + \ No newline at end of file