Skip to content

The Unified and Autonomous Development Platform

Small adjustment for selecting avatar form

steve2b2a7bf62e6e
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 f4f7ce3984..210428f85a 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
@@ -26,22 +26,22 @@
<div wicket:id="feedback" class=""></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="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 fileupload-exists" data-dismiss="fileupload"><i class="icon icon-delete"></i> Clear</a>
- </div>
- </div>
-
- <p class="text-muted">
- Supported image types are png, gif, jpg and jpeg. The image size should be less than 2M bytes.
- </p>
- <hr/>
- <div class="btn-group btn-group-justified">
- <a wicket:id="submit" class="btn btn-gray btn-submit">Change avatar</a>
- <a wicket:id="remove" class="btn btn-gray">Reset avatar</a>
- </div>
+ <div class="fileupload-preview thumbnail" data-trigger="fileupload"></div>
+ <div>
+ <a class="btn btn-default btn-file"><span class="fileupload-new">Select image</span><span class="fileupload-exists">Change image</span>
+ <input type="file" wicket:id="fileInput" name="..."></a>
+ <btn class="btn btn-default fileupload-exists" data-dismiss="fileupload">Clear</btn>
+ </div>
+ </div>
+
+ <p class="text-muted">
+ Supported image types are png, gif, jpg and jpeg. The image size should be less than 2M bytes.
+ </p>
+ <hr/>
+ <p class="clearfix">
+ <a wicket:id="submit" class="btn btn-gray pull-left btn-submit"><i class="icon icon-arrow-right"></i> Change avatar</a>
+ <a wicket:id="remove" class="btn btn-gray pull-right"><i class="icon icon-reset"></i> Reset avatar</a>
+ </p>
</form>
</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 {