Skip to content

The Unified and Autonomous Development Platform

Add wicket-bootstrap-extensions

stevec6a4d77de56d
diff --git a/gitop.web/pom.xml b/gitop.web/pom.xml
index 7022807a04..41261d371b 100644
--- a/gitop.web/pom.xml
+++ b/gitop.web/pom.xml
@@ -46,6 +46,12 @@
<version>1.0.0</version>
</dependency>
+ <dependency>
+ <groupId>de.agilecoders.wicket</groupId>
+ <artifactId>wicket-bootstrap-extensions</artifactId>
+ <version>0.9.1</version>
+ </dependency>
+
<!-- JERSEY CLIENT -->
<dependency>
<groupId>com.sun.jersey</groupId>
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
index 8c7de10db3..b05bd8e3f4 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/assets/css/page.css
@@ -199,7 +199,7 @@ th.wicket_orderUp a, th.wicket_orderDown a { padding-left: 20px; }
/* ACCOUNT SETTINGS PAGE */
.owners-list > li > a { color: #666; }
-.avatar-form .fileinput .thumbnail { width: 200px; height: 200px; }
+.avatar-form .fileupload .thumbnail { width: 200px; height: 200px; }
/* TEAM EDIT PAGE */
.permission-link { color: #666; }
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.html b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.html
index fa984e1c31..f4f7ce3984 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.html
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.html
@@ -25,12 +25,12 @@
<form wicket:id="avatarForm" class="form-md avatar-form" style="padding-left: 150px;">
<div wicket:id="feedback" class=""></div>
- <div class="fileinput fileinput-new" data-provides="fileinput">
- <div class="fileinput-preview thumbnail" data-trigger="fileinput"></div>
+ <div class="fileupload fileupload-new" data-provides="fileupload">
+ <div class="fileupload-preview thumbnail" data-trigger="fileupload"></div>
<div>
- <a class="btn btn-default btn-file"><span class="fileinput-new">Select image</span><span class="fileinput-exists">Change</span>
+ <a class="btn btn-default btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change</span>
<input type="file" wicket:id="fileInput" name="..."></a>
- <a href="#" class="btn btn-default fileinput-exists" data-dismiss="fileinput">Remove</a>
+ <a href="#" class="btn btn-default fileupload-exists" data-dismiss="fileupload"><i class="icon icon-delete"></i> Clear</a>
</div>
</div>
diff --git a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.java b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.java
index adce8d5d38..07f48e867c 100644
--- a/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.java
+++ b/gitop.web/src/main/java/com/pmease/gitop/web/page/account/setting/profile/AccountProfilePage.java
@@ -10,7 +10,6 @@ import org.apache.wicket.event.Broadcast;
import org.apache.wicket.feedback.ComponentFeedbackMessageFilter;
import org.apache.wicket.markup.html.form.Form;
import org.apache.wicket.markup.html.form.upload.FileUpload;
-import org.apache.wicket.markup.html.form.upload.FileUploadField;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.Model;
import org.apache.wicket.model.PropertyModel;
@@ -36,6 +35,7 @@ import com.pmease.gitop.web.page.PageSpec;
import com.pmease.gitop.web.page.account.setting.AccountSettingPage;
import de.agilecoders.wicket.core.markup.html.bootstrap.common.NotificationPanel;
+import de.agilecoders.wicket.extensions.javascript.jasny.FileUploadField;
@SuppressWarnings("serial")
public class AccountProfilePage extends AccountSettingPage {