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/admin/server/broadcast.jsp

    r5900 r5902  
    7575  </base:head>
    7676  <base:body onload="init()">
     77    <h1>Broadcast message <base:help helpid="broadcast.message"/></h1>
    7778    <form name="broadcast" action="submit_server.jsp" method="post" onsubmit="return false;">
    7879    <input type="hidden" name="ID" value="<%=ID%>">
    7980    <input type="hidden" name="cmd" value="SetBroadcastMessage">
    8081 
    81     <h3 class="docked">Broadcast message <base:help helpid="broadcast.message"/></h3>
    82     <div class="boxedbottom">
     82    <div class="content">
    8383    <%
    8484    if (!writePermission)
    8585    {
    8686      %>
     87      <table class="fullcc"><tr><td>
    8788      <div class="error">You do not have permission to broadcast messages to users.</div>
     89      </td></tr></table>
    8890      <%
    8991    }
     
    9193    {
    9294      %>
    93       <table class="form">
     95      <table class="fullform smaller">
    9496      <tr>
    95         <td class="prompt">Title</td>
     97        <th>Title</td>
    9698        <td>
    97           <input class="text"
    98             type="text" name="title" value="<%=HTML.encodeTags(title)%>" size="60" maxlength="255">
     99          <input class="text" style="width: 98%;"
     100            type="text" name="title" value="<%=HTML.encodeTags(title)%>" maxlength="255">
    99101        </td>
     102        <td></td>
    100103      </tr>
    101       <tr valign=top>
    102         <td class="prompt">Disable login</td>
     104      <tr>
     105        <th>Disable login</td>
    103106        <td>
    104107          <input type="checkbox" name="denyLogin" <%=Boolean.TRUE.equals(denyLogin) ? "checked": ""%> value="1">
    105108        </td>
     109        <td></td>
    106110      </tr>
    107       <tr valign=top>
    108         <td class="prompt">Message</td>
     111      <t>
     112        <th>Message</td>
    109113        <td>
    110           <textarea class="text" rows="15" cols="60" name="message" wrap="virtual"><%=HTML.encodeTags(message)%></textarea>
     114          <textarea class="text" style="width: 98%;" rows="15" name="message" wrap="virtual"><%=HTML.encodeTags(message)%></textarea>
     115        </td>
     116        <td style="width: 20px;">
    111117          <a href="javascript:Main.zoom('Message', 'broadcast', 'message')" title="Edit in larger window"><base:icon image="zoom.gif" /></a>
    112118        </td>
     
    119125
    120126    </form>
    121     <base:buttongroup>
     127    <base:buttongroup subclass="dialogbuttons">
    122128      <base:button onclick="clearMessage()" image="remove.png" title="Clear message" />
    123129      <base:button onclick="saveSettings();" title="Ok" visible="<%=writePermission%>"/>
Note: See TracChangeset for help on using the changeset viewer.