Skip to content

Commit

Permalink
Merge pull request #72 from ArcBees/jl_file_upload
Browse files Browse the repository at this point in the history
Fix image upload layout
  • Loading branch information
jasonlemay committed May 4, 2016
2 parents 3edf55e + 68fbf27 commit 3601b59
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<section class="{res.styles.main_content_desktop}">
<div class="{page.style.addedit} {res.styles.wrapper_desktop}">
<form class="{res.grid.row} {res.styles.clearfix}">
<arcbees:ReplacePanel ui:field="uploaderPanel"/>
<div class="{res.grid.col} {res.grid.col_m_1_4}">
<arcbees:ReplacePanel ui:field="uploaderPanel"/>
</div>
<div class="{res.grid.col} {res.grid.col_3_4}">
<label class="{page.style.addedit__label}">Prénom et Nom</label>
<input ui:field="name" class="{page.style.addedit__input}" type="text" required="required"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<ui:with field="res" type="com.arcbees.bourseje.client.resources.Resources"/>
<ui:with field="page" type="com.arcbees.bourseje.client.resources.PageAddEditResources"/>

<g:Anchor href="#" ui:field="anchor" styleName="{res.grid.col} {res.grid.col_1_4} {page.style.addedit__photo}">
<g:Anchor href="#" ui:field="anchor" styleName="{page.style.addedit__photo}">
<div class="{page.style.addedit__photo__placeholder}">
<img ui:field="image" src=""/>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
<section class="{res.styles.main_content_desktop}">
<div class="{page.style.addedit} {res.styles.wrapper_desktop}">
<form class="{res.grid.row} {res.styles.clearfix}">
<arcbees:ReplacePanel ui:field="uploaderPanel"/>
<div class="{res.grid.col} {res.grid.col_m_1_4}">
<arcbees:ReplacePanel ui:field="uploaderPanel"/>
</div>
<div class="{res.grid.col} {res.grid.col_3_4}">
<label class="{page.style.addedit__label}">Prénom et Nom</label>
<input ui:field="name" class="{page.style.addedit__input}" type="text" required="required"/>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@external GWTUpld, 'upld-*';

.addedit {
background-color: #fff;
font-size: 1.8rem;
Expand Down Expand Up @@ -33,7 +35,7 @@
background-color: C_PRIMARY;
color: #f2f2f2;
line-height: .9;
font-size: 5rem;
font-size: 4rem;
font-weight: bold;

display: block;
Expand All @@ -47,6 +49,11 @@
margin: -20px 0 0 -20px;
}

.addedit__photo__placeholder img {
width: 180px;
height: 180px;
}

.addedit__label {
display: block;
margin-bottom: 4px;
Expand All @@ -70,3 +77,11 @@
.addedit__button {
margin-left: 10px;
}

/* -- UPLD overwrite -- */

.upld-drop-zone {
text-align: center;

border: 0 !important;
}

0 comments on commit 3601b59

Please sign in to comment.