Ignore:
Timestamp:
Dec 8, 2011, 3:01:38 PM (10 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

  • Make sure content on dialog can be placed so that it fills the free space between the title and buttons.


  • The 'Logout' dialog is easy and provides the simple case where everything is centered in the remaining space. Should also work when resizing the dialog.


  • The 'Reset filters' and 'Broadcast message' dialogs need a bit more work. The look ok now, but there are some minor things to fix yet.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/my_base/user/reset_filters.jsp

    r5901 r5902  
    5151{
    5252  final User user = User.getById(dc, sc.getLoggedInUserId());
     53  final String title = "Reset list settings for "+HTML.encodeTags(user.getName());
    5354  final List<ItemContext> inMemory = sc.getAllCurrentContexts(true, false);
    5455  final List<ItemContext> inDatabase = sc.getAllCurrentContexts(false, true);
     
    7172  }
    7273  %>
    73   <base:page type="popup" title="<%="Reset list settings for "+HTML.encodeTags(user.getName())%>">
     74  <base:page type="popup" title="<%=title%>">
    7475  <base:head>
    7576    <script language="JavaScript">
     
    8889  </base:head>
    8990  <base:body>
    90     <h1>Reset list settings for <%=HTML.encodeTags(user.getName())%>
    91       <base:help helpid="userpreferences.resetfilters" /></h1>
    92   <br><br>
     91    <h1><%=title%><base:help helpid="userpreferences.resetfilters" /></h1>
     92    <div class="content">
     93      <form action="submit_user.jsp?ID=<%=ID%>" method="post" name="preferences"
     94        onsubmit="return false;">
     95        <input type=hidden name="cmd" value="ResetFilters">
    9396
    94   <form action="submit_user.jsp?ID=<%=ID%>" method="post" name="preferences"
    95     onsubmit="return false;">
    96   <input type=hidden name="cmd" value="ResetFilters">
     97        <table class="fullform smaller">
     98        <tr>
     99          <th>Which list?</th>
     100          <td>
     101            <select name="item_type" onchange="itemTypeOnChange()" style="width: 100%;">
     102              <option value="">- all -
     103              <%
     104              for (Item item : items)
     105              {
     106                %>
     107                <option value="<%=item.name()%>"><%=dbOnly.contains(item) ? "* " : "" %><%=item%>
     108                <%
     109              }
     110              %>
     111            </select><br>
     112          </td>
     113        </tr>
     114        <tr>
     115          <th>Location</th>
     116          <td>
     117          <input type="checkbox" name="memory" id="memory" value="1" checked disabled>In-memory
     118          <input type="checkbox" name="database" id="database" value="1"><label for="database">In-database</label>
     119          </td>
     120        </tr>
     121        </table>
     122       
     123        <div class="padded">
     124        * = This setting is only in the database
     125        </div>
     126       
     127        <div class="padded">
     128        Use this functionality if you are experiencing problems when listing
     129        items on a list page. Try first with only the 'In-memory' option selected.
     130        If that doesn't help, try the 'In-database' option.
     131        </div>
     132      </form>
     133    </div>
    97134
    98  
    99   <div class="boxed">
    100 
    101     <table class="form" cellspacing=0>
    102     <tr>
    103       <td class="prompt">Which list?</td>
    104       <td>
    105         <select name="item_type" onchange="itemTypeOnChange()">
    106           <option value="">- all -
    107           <%
    108           for (Item item : items)
    109           {
    110             %>
    111             <option value="<%=item.name()%>"><%=dbOnly.contains(item) ? "* " : "" %><%=item%>
    112             <%
    113           }
    114           %>
    115         </select><br>
    116         * = This setting is only in the database
    117       </td>
    118     </tr>
    119     <tr>
    120       <td class="prompt">Location</td>
    121       <td>
    122       <input type="checkbox" name="memory" id="memory" value="1" checked disabled>In-memory<br>
    123       <input type="checkbox" name="database" id="database" value="1"><label for="database">In-database</label>
    124       </td>
    125     </tr>
    126     </table>
    127     <p>
    128     Use this functionality if you are experiencing problems when listing
    129     items on a list page. Try first with only the 'In-memory' option selected.
    130     If that doesn't help, try the 'In-database' option.
    131   </div>
    132   </form>
    133  
    134135    <base:buttongroup subclass="dialogbuttons">
    135136      <base:button onclick="resetFilters();" title="Ok" />
Note: See TracChangeset for help on using the changeset viewer.