<!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:rs="urn:import:org.rstudio.core.client.widget">
	<ui:style>
	  @external .gwt-Label;
	  
	  .controlLabel
	  {
	     margin-bottom: 3px;
	     font-weight: bold;
	     display: block;
	  }
	  
	  .interiorControlLabel
	  {
	     margin-top: 7px; 
	  }
	  
	  .textBox
	  {
	    padding: 2px;
	    width: 100%;
	  }

	  .createNote
	  {
	    margin-top: 10px;

	  }

	  .templateListArea
	  {
	    height: 155px;
	    margin-top: 5px;
	    background-color: #FFFFFF;
	  }
	  
	  .templateListArea table
	  {
       border: 1px solid #909090;
	  }
	  
	  .templateListArea table table
	  {
	    border: none;
	  }
	  
	  .noTemplates
	  {
       color: #909090;
       border: 1px solid #909090;
	  }
	  
	  .noTemplatesText
	  {
	     text-align: center;
	     margin-top: 35px;
	  }
	  
	  .help .gwt-Label
	  {
	     font-weight: bold;
	  }
	</ui:style>
	<g:HTMLPanel>
	<rs:CaptionWithHelp styleName="{style.help}"></rs:CaptionWithHelp>
	<rs:SimplePanelWithProgress ui:field="progressPanel_" 
	                            styleName="{style.templateListArea}">
      <rs:WidgetListBox width="100%" height="100%"
                        ui:field="listTemplates_"></rs:WidgetListBox>
   </rs:SimplePanelWithProgress>
   <g:HTMLPanel styleName="{style.templateListArea} {style.noTemplates}" 
                visible="false" ui:field="noTemplatesFound_">
     <g:HTML styleName="{style.noTemplatesText}">
       (No templates found)
     </g:HTML>
   </g:HTMLPanel>

   <g:HTMLPanel ui:field="templateOptionsPanel_" visible="false">
	  <g:HTML styleName="{style.createNote}">
	     This template contains multiple files. Create a new directory for
	     these files:
	  </g:HTML>
	  <g:Label styleName="{style.controlLabel} {style.interiorControlLabel}" 
	           text="Name:"></g:Label>
	  <g:TextBox styleName="{style.textBox}" ui:field="txtName_" 
	             text="Untitled"></g:TextBox>

	  <g:Label styleName="{style.controlLabel} {style.interiorControlLabel}" 
	           text="Location:"></g:Label>
	  <rs:DirectoryChooserTextBox width="100%" ui:field="dirLocation_">
	  </rs:DirectoryChooserTextBox>
	
	</g:HTMLPanel>

	</g:HTMLPanel>
</ui:UiBinder> 