blob: 36f51a64b98c25d3c2838ed84c8d23485d9650d4 [file] [log] [blame]
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder
xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:app="urn:import:com.google.gwt.sample.mobilewebapp.client.ui">
<ui:style>
.outer {
background: #eee;
}
.title {
background: #393939;
color: white;
padding: 4px 10px;
font-size: 20pt;
}
.editForm {
padding: 10px;
background: white;
}
.label {
color: #666;
font-size: 20pt;
padding-bottom: 3px;
}
.field {
width: 100%;
margin-bottom: 12px;
font-size: 20pt;
}
.textBoxWrapper {
margin-right: 10px;
}
.nameBox {
height: 2em;
}
.notesBox {
height: 4em;
}
.violation {
color: red;
font-size: 18pt;
}
.button {
padding-top: 8px;
padding-bottom: 8px;
color: #3f3f3f;
font-size: 20pt;
}
.dateButton {
text-align: left;
}
.buttonPanel {
width: 100%;
padding: 10px;
margin-top: 15px;
}
.saveButton {
width: 100%;
}
.deleteButton {
color: white;
background: #940000;
width: 100%;
border-radius: 3px;
-moz-border-radius: 3px;
}
</ui:style>
<g:DockLayoutPanel
unit="PT">
<!-- Title. -->
<g:north
size="28">
<g:Label
addStyleNames="{style.title}">DETAILS</g:Label>
</g:north>
<g:center>
<g:ScrollPanel
addStyleNames="{style.outer}">
<g:HTMLPanel>
<!-- Edit Form. -->
<div
class="{style.editForm}">
<!-- Task name. -->
<div
class="{style.label}">What</div>
<div
class="{style.textBoxWrapper}">
<g:TextArea
addStyleNames="{style.field} {style.nameBox}"
ui:field="nameField" />
</div>
<div
ui:field="nameViolation"
class="{style.violation}">
</div>
<!-- Task notes. -->
<div
class="{style.label}">Notes</div>
<div
class="{style.textBoxWrapper}">
<g:TextArea
addStyleNames="{style.field} {style.notesBox}"
ui:field="notesEditor" />
</div>
<!-- Task due date. -->
<div
class="{style.label}">Due date</div>
<app:DateButton
addStyleNames="{style.field} {style.button} {style.dateButton}"
ui:field="dueDateEditor" />
</div>
<!-- Button panel. -->
<table
class="{style.buttonPanel}"
cellspacing="0"
cellpadding="0">
<tr>
<td
align="center"
style="width:50%;padding-right:5px;">
<g:Button
ui:field="saveButton"
addStyleNames="{style.button} {style.saveButton}">Done</g:Button>
</td>
<td
align="center"
style="width:50%;padding-left:5px;">
<g:Button
ui:field="deleteButton"
addStyleNames="{style.button} {style.deleteButton}">Delete Item</g:Button>
</td>
</tr>
</table>
</g:HTMLPanel>
</g:ScrollPanel>
</g:center>
</g:DockLayoutPanel>
</ui:UiBinder>