Ignore:
Timestamp:
Feb 10, 2012, 2:35:22 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

Select file/directory and "save as" dialogs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/filemanager/directories/list_directories.jsp

    r5951 r5953  
    131131  Set<Directory> ignore = new HashSet<Directory>();
    132132  %>
    133   <base:page title="<%=requestTitle != null ? requestTitle : ""%>" type="iframe">
     133  <base:page title="<%=requestTitle != null ? requestTitle : ""%>"
     134    type="<%="selectonedirectory".equals(mode) ? "popup" : "iframe"%>">
    134135  <base:head scripts="newjoust.js,table.js,ajax.js,json2.js" styles="newjoust.css,toolbar.css">
    135136  <script language="JavaScript">
     
    266267      if (window.top.setSelected)
    267268      {
    268         window.top.setSelected('', path);
     269        //window.top.setSelected('', path);
    269270      }
    270271    }
     
    327328  {
    328329    %>
    329     <base:body onload="initialise()"
    330       style="padding-left: 0px; padding-right: 0px;"
    331       >
    332       <div id="main" class="joust" style="width:100%;">
    333         <h3 class="docked"><%=requestTitle == null ? "Select one directory" : requestTitle%></h3>
    334         <tbl:toolbar>
    335           <tbl:button
    336             image="directory_new.png"
    337             onclick="newDirectory()"
    338             title="New&hellip;"
    339             tooltip="Create a new directory"
    340           />
    341         </tbl:toolbar>
    342         <div id="joust" class="boxedbottom" style="height: <%=(int)(scale*340)%>px; overflow:auto; background: #E0E0E0;">
     330    <base:body onload="initialise()">
     331      <h1><%=requestTitle == null ? "Select one directory" : requestTitle%></h1>
     332     
     333      <form name="directory">
     334      <input type="hidden" name="directory_id" value="">
     335
     336      <div class="content bottomborder">
     337        <div id="main" class="absolutefull" style="bottom: 3em;">
     338          <tbl:toolbar subclass="bottomborder">
     339            <tbl:button
     340              image="directory_new.png"
     341              onclick="newDirectory()"
     342              title="New&hellip;"
     343              tooltip="Create a new directory"
     344            />
     345          </tbl:toolbar>
     346          <div id="joust" class="absolutefull joust" style="top: 1.8em; overflow:auto;">
     347          </div>
     348        </div>
     349     
     350        <div class="absolutefull topborder" style="top: auto; height: 3em;">
     351          <table class="fullform input100">
     352            <tr>
     353              <th><%=requestTitle == null ? "Path" : requestTitle%></th>
     354              <td><input type="text" class="text" readonly name="path"></td>
     355            </tr>
     356          </table>
    343357        </div>
    344358      </div>
     359      </form>
     360
     361      <base:buttongroup subclass="dialogbuttons">
     362        <base:button onclick="returnSelected()" title="Ok" />
     363        <base:button onclick="window.close()" title="Cancel" />
     364      </base:buttongroup>
    345365     
    346       <form name="directory">
    347       <br>
    348       <input type="hidden" name="directory_id" value="">
    349       <b><%=requestTitle == null ? "Path" : requestTitle%></b> <input type="text" class="text" readonly name="path" size="40">
    350       <p>
    351       <table align="center">
    352       <tr>
    353         <td width="50%"><base:button onclick="returnSelected()" title="Ok" /></td>
    354         <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    355       </tr>
    356       </table>
    357       </form>
    358366    </base:body>
    359367    <%
Note: See TracChangeset for help on using the changeset viewer.