Changeset 5922


Ignore:
Timestamp:
Jan 11, 2012, 1:26:02 PM (11 years ago)
Author:
Nicklas Nordborg
Message:

References #1655: GUI improvements

Edit dialog for the rest of the items in the administrate menu.

Location:
trunk/www
Files:
25 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/admin/annotationtypecategories/edit_category.jsp

    r5908 r5922  
    186186  </base:head>
    187187  <base:body onload="init()">
    188     <p>
     188    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    189189    <form action="index.jsp?ID=<%=ID%>" method="post" name="annotationTypeCategory" onsubmit="return false;">
    190190    <input type="hidden" name="cmd" value="UpdateItem">
    191191
    192     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    193     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>" position="bottom"
     192    <t:tabcontrol id="settings"
     193      subclass="content dialogtabcontrol"
     194      position="bottom"
    194195      extensions="<%=invoker%>">
    195196    <t:tab id="info" title="Annotation type category" validate="validateAnnotationTypeCategory()"
    196197      helpid="annotationtypecategory.edit">
    197       <table class="form" cellspacing=0>
     198      <table class="fullform input100 smaller">
    198199      <tr>
    199         <td class="prompt">Name</td>
     200        <th>Name</th>
    200201        <td><input <%=requiredClazz%> type="text" name="name"
    201202          value="<%=HTML.encodeTags(annotationTypeCategory == null ? Values.getString(cc.getPropertyValue("name"), "New annotation type category") : annotationTypeCategory.getName())%>"
    202           size="40" maxlength="<%=AnnotationTypeCategory.MAX_NAME_LENGTH%>"></td>
     203          maxlength="<%=AnnotationTypeCategory.MAX_NAME_LENGTH%>"></td>
     204        <td></td>
    203205      </tr>
    204       <tr >
    205         <td class="prompt">Description</td>
    206         <td nowrap>
    207           <textarea <%=clazz%> rows="4" cols="40" name="description"
     206      <tr class="dynamic">
     207        <th>Description</th>
     208        <td>
     209          <textarea <%=clazz%> rows="6" name="description"
    208210            ><%=HTML.encodeTags(annotationTypeCategory == null ? cc.getPropertyValue("description") : annotationTypeCategory.getDescription())%></textarea>
    209           <a href="javascript:Main.zoom('Description', 'annotationTypeCategory', 'description')"
    210             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     211        </td>
     212        <td style="width: 20px;">
     213          <base:icon image="zoom.png"
     214            onclick="Main.zoom('Description', 'annotationTypeCategory', 'description')"
     215            tooltip="Edit in larger window"
     216          />
    211217        </td>
    212218      </tr>
    213219      </table>
    214       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    215220    </t:tab>
    216221   
    217222    <t:tab id="members" title="Annotation types" tooltip="Add/remove members of this category"
    218223      validate="validateMembers()" helpid="annotationtypecategory.edit.members">
    219     <table width="100%">
    220     <tr >
    221     <td>
    222       <b>Annotation types</b><br>
    223       <select name="members" size="14" multiple
    224         style="width: 100%;">
    225       </select>
    226       <input type="hidden" name="removeAnnotationTypes" value="">
    227       <input type="hidden" name="addAnnotationTypes" value="">
    228     </td>
    229     <td width="200px">
    230       <br>
    231       <table width="150px">
    232       <tr><td><base:button
    233         clazz="leftaligned buttonclass"
    234         onclick="addAnnotationTypesOnClick()"
    235         title="Add&nbsp;annotation&nbsp;types&hellip;"
    236         tooltip="Add annotation types to this category"
    237         /></td></tr>
    238       <tr><td><base:button
    239         clazz="leftaligned buttonclass"
    240         onclick="removeOnClick()"
    241         title="Remove"
    242         tooltip="Remove the selected items from this category"
    243       /></td></tr>
     224      <table class="fullform input100">
     225      <tr class="dynamic">
     226        <th>Annotation types</th>
     227        <td>
     228          <div class="selectionlist">
     229            <table>
     230            <tr>
     231              <td>
     232                <select name="members" size="14" multiple>
     233                </select>
     234                <input type="hidden" name="removeAnnotationTypes" value="">
     235                <input type="hidden" name="addAnnotationTypes" value="">
     236              </td>
     237              <td style="vertical-align: top;">
     238                <base:buttongroup vertical="true">
     239                  <base:button
     240                    subclass="leftaligned"
     241                    onclick="addAnnotationTypesOnClick()"
     242                    title="Add&nbsp;annotation&nbsp;types&hellip;"
     243                    tooltip="Add annotation types to this category"
     244                  />
     245                  <base:button
     246                    subclass="leftaligned"
     247                    onclick="removeOnClick()"
     248                    title="Remove"
     249                    tooltip="Remove the selected items from this category"
     250                  />
     251                </base:buttongroup>
     252              </td>
     253            </tr>
     254            </table>
     255          </div>
     256        </td>
     257      </tr>
    244258      </table>
    245     </td>
    246     </tr>
    247     </table>
    248259    </t:tab>
    249260    </t:tabcontrol>
    250 
    251     <table align="center">
    252     <tr>
    253       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    254       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    255     </tr>
    256     </table>
    257261    </form>
     262   
     263    <div class="legend">
     264      <base:icon image="required.gif" /> = required information
     265    </div>
     266
     267    <base:buttongroup subclass="dialogbuttons">
     268      <base:button onclick="saveSettings()" title="Save" />
     269      <base:button onclick="window.close()" title="Cancel" />
     270    </base:buttongroup>
    258271  </base:body>
    259272  </base:page>
  • trunk/www/admin/annotationtypes/edit_annotationtype.jsp

    r5908 r5922  
    405405  </base:head>
    406406  <base:body onload="init()">
    407     <p>
     407    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    408408    <form action="index.jsp?ID=<%=ID%>" method="post" name="annotationType" onsubmit="return false;">
    409409    <input type="hidden" name="cmd" value="UpdateItem">
    410410    <input type="hidden" name="value_type" value="<%=valueType.name()%>">
    411411
    412     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    413     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*300)+"px;"%>"
     412    <t:tabcontrol id="settings"
     413      subclass="content dialogtabcontrol"
    414414      position="bottom" remember="<%=annotationType != null%>"
    415415      extensions="<%=invoker%>">
    416416    <t:tab id="info" title="Annotation type" validate="validateAnnotationType()" helpid="annotationtype.edit">
    417       <table class="form" cellspacing=0>
     417      <table class="fullform input100">
    418418      <tr>
    419         <td class="prompt">Value type</td>
     419        <th>Value type</th>
    420420        <td><%=valueType%></td>
     421        <td></td>
    421422      </tr>
    422423      <tr>
    423         <td class="prompt">Name</td>
     424        <th>Name</th>
    424425        <td><input <%=requiredClazz%> type="text" name="name"
    425426          value="<%=HTML.encodeTags(annotationType == null ?
    426427          Values.getString(cc.getPropertyValue("name"), "New "+valueType+" annotation type") : annotationType.getName())%>"
    427           size="40" maxlength="<%=AnnotationType.MAX_NAME_LENGTH%>"></td>
     428          maxlength="<%=AnnotationType.MAX_NAME_LENGTH%>"></td>
     429        <td></td>
    428430      </tr>
    429431      <tr>
    430         <td class="prompt">External ID</td>
     432        <th>External ID</th>
    431433        <td><input <%=clazz%> type="text" name="external_id"
    432434          value="<%=HTML.encodeTags(annotationType == null ?
    433             Values.getString(cc.getPropertyValue("externalId"), "") : annotationType.getExternalId())%>"
    434           size="40" maxlength="<%=AnnotationType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     435          Values.getString(cc.getPropertyValue("externalId"), "") : annotationType.getExternalId())%>"
     436          maxlength="<%=AnnotationType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     437        <td></td>
    435438      </tr>
    436439      <tr>
    437         <td class="prompt">Multiplicity</td>
     440        <th>Multiplicity</td>
    438441        <td><input <%=clazz%> type="text" name="multiplicity"
    439442          value="<%=annotationType == null ? Values.getString(cc.getPropertyValue("multiplicity"), "1") :
    440             Integer.toString(annotationType.getMultiplicity())%>"
    441           size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     443          Integer.toString(annotationType.getMultiplicity())%>" style="width: 15em;"
     444          maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    442445          0 or empty = unlimited
    443           </td>
     446        </td>
     447        <td></td>
    444448      </tr>
    445       <tr >
    446         <td class="prompt">Default value</td>
     449      <tr class="<%=valueType == Type.TEXT ? "big" : ""%>">
     450        <th>Default value</th>
    447451        <td>
    448452          <%
    449453          String defaultValue = annotationType == null ? cc.getPropertyValue("defaultValue") : annotationType.getDefaultValue();
     454          boolean hasZoom = false;
    450455          if (valueType == Type.INT || valueType == Type.LONG)
    451456          {
    452457            %>
    453458            <input <%=clazz%> type="text" name="defaultValue"
    454               value="<%=HTML.encodeTags(defaultValue)%>"
    455               size="20" maxlength="20" onkeypress="return Numbers.integerOnly(event)">
     459              value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;"
     460              maxlength="20" onkeypress="return Numbers.integerOnly(event)">
    456461            <%
    457462          }
     
    460465            %>
    461466            <input <%=clazz%> type="text" name="defaultValue"
    462               value="<%=HTML.encodeTags(defaultValue)%>"
    463               size="20" maxlength="20" onkeypress="return Numbers.numberOnly(event)">
     467              value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;"
     468              maxlength="20" onkeypress="return Numbers.numberOnly(event)">
    464469            <%
    465470          }
     
    479484          {
    480485            %>
    481             <table border="0" cellspacing="0" cellpadding="0">
     486            <table>
    482487            <tr>
    483488            <td>
    484489              <input <%=clazz%> type="text" name="defaultValue"
    485                 value="<%=HTML.encodeTags(defaultValue)%>"
    486                 size="20" maxlength="20 "title="Enter date in format: <%=htmlDateFormat%>">&nbsp;
     490                value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;"
     491                maxlength="20 "title="Enter date in format: <%=htmlDateFormat%>">
    487492            </td>
    488493            <td>
     
    501506          {
    502507            %>
    503             <table border="0" cellspacing="0" cellpadding="0">
     508            <table>
    504509            <tr>
    505510            <td>
    506511              <input <%=clazz%> type="text" name="defaultValue"
    507                 value="<%=HTML.encodeTags(defaultValue)%>"
    508                 size="30" maxlength="30 "title="Enter date in format: <%=htmlDateTimeFormat%>">&nbsp;
     512                value="<%=HTML.encodeTags(defaultValue)%>" style="width: 15em;"
     513                maxlength="30 "title="Enter date in format: <%=htmlDateTimeFormat%>">
    509514            </td>
    510515            <td>
     
    525530            <input <%=clazz%> type="text" name="defaultValue"
    526531              value="<%=HTML.encodeTags(defaultValue)%>"
    527               size="40" maxlength="<%=AnnotationType.MAX_DEFAULT_VALUE_LENGTH%>">
     532              maxlength="<%=AnnotationType.MAX_DEFAULT_VALUE_LENGTH%>">
    528533          <%
    529534          }
    530535          else if (valueType == Type.TEXT)
    531536          {
    532             %>
    533             <textarea <%=clazz%> rows="4" cols="40" name="defaultValue"
     537            hasZoom = true;
     538            %>
     539            <textarea <%=clazz%> rows="4" name="defaultValue"
    534540              ><%=HTML.encodeTags(defaultValue)%></textarea>
    535             <a href="javascript:Main.zoom('Default value', 'annotationType', 'defaultValue')"
    536               title="Edit in larger window"><base:icon image="zoom.png" /></a>
    537541            <%
    538542          }
    539543          %>
    540544        </td>
     545        <td>
     546        <%
     547        if (hasZoom)
     548        {
     549          %>
     550          <base:icon image="zoom.png"
     551            onclick="Main.zoom('Default value', 'annotationType', 'defaultValue')"
     552            tooltip="Edit in larger window"
     553          />
     554          <%
     555        }
     556        %>
     557        </td>
    541558      </tr>
    542559      <tr>
    543         <td class="prompt">Required for MIAME</td>
    544         <td><input type="checkbox" name="required_for_miame" value="1"
     560        <th><label for="required_for_miame">Required for MIAME</label></th>
     561        <td><input type="checkbox" name="required_for_miame" id="required_for_miame" value="1"
    545562          <%=(annotationType != null && annotationType.isRequiredForMiame()) ||
    546563            (annotationType == null && Values.getBoolean(cc.getPropertyValue("requiredForMiame"))) ? "checked" : ""%>
     564        </td>
     565        <td></td>
    547566      </tr>
    548567      <tr>
    549         <td class="prompt">Protocol parameter</td>
    550         <td><input type="checkbox" name="is_protocol_parameter" value="1"
     568        <th><label for="is_protocol_parameter">Protocol parameter</label></th>
     569        <td><input type="checkbox" name="is_protocol_parameter" id="is_protocol_parameter" value="1"
    551570          <%=(annotationType != null && annotationType.isProtocolParameter()) ||
    552571            (annotationType == null && Values.getBoolean(cc.getPropertyValue("protocolParameter"))) ? "checked" : ""%>
     572        </td>
     573        <td></td>
    553574      </tr>
    554       <tr >
    555         <td class="prompt">Description</td>
    556         <td nowrap>
    557           <textarea <%=clazz%> rows="4" cols="40" name="description"
     575      <tr class="dynamic">
     576        <th>Description</th>
     577        <td>
     578          <textarea <%=clazz%> rows="4" name="description"
    558579            ><%=HTML.encodeTags(annotationType == null ? cc.getPropertyValue("description") : annotationType.getDescription())%></textarea>
    559           <a href="javascript:Main.zoom('Description', 'annotationType', 'description')"
    560             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     580        <td style="width: 20px;">
     581          <base:icon image="zoom.png"
     582            onclick="Main.zoom('Description', 'annotationType', 'description')"
     583            tooltip="Edit in larger window"
     584          />
     585        </td>
    561586        </td>
    562587      </tr>
    563588      </table>
    564       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    565589    </t:tab>
    566590   
    567591    <t:tab id="options" title="Options" validate="validateOptions()" helpid="annotationtype.edit.options">
    568       <table class="form" cellspacing=0>
    569592      <%
    570593      if (valueType == Type.INT || valueType == Type.LONG)
     
    576599        boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList();
    577600        %>
    578         <tr>
    579           <td class="prompt">Interface</td>
     601        <table class="fullform input100">
     602        <tr>
     603          <th>Interface</th>
    580604          <td>
    581605            <input type="radio" name="interface" id="interfaceBox" value="box"
     
    592616            ><label for="interfaceButtons">radiobuttons/checkboxes</label>
    593617          </td>
    594         </tr>
    595         <tr>
    596           <td class="prompt">Min value</td>
     618          <td></td>
     619        </tr>
     620        <tr>
     621          <th>Min value</th>
    597622          <td>
    598623            <input <%=clazz%> type="text" name="minValue"
    599               value="<%=minValue == null ? "" : minValue.toString()%>"
    600               size="20" maxlength="20" onkeypress="return Numbers.integerOnly(event)">
     624              value="<%=minValue == null ? "" : minValue.toString()%>" style="width: 15em;"
     625              maxlength="20" onkeypress="return Numbers.integerOnly(event)">
    601626            empty = no limit
    602627          </td>
    603         </tr>
    604         <tr>
    605           <td class="prompt">Max value</td>
     628          <td></td>
     629        </tr>
     630        <tr>
     631          <th>Max value</th>
    606632          <td>
    607633            <input <%=clazz%> type="text" name="maxValue"
    608               value="<%=maxValue == null ? "" : maxValue.toString()%>"
    609               size="20" maxlength="20" onkeypress="return Numbers.integerOnly(event)">
     634              value="<%=maxValue == null ? "" : maxValue.toString()%>" style="width: 15em;"
     635              maxlength="20" onkeypress="return Numbers.integerOnly(event)">
    610636            empty = no limit
    611637          </td>
    612         </tr>
    613         <tr>
    614           <td class="prompt">Input box width</td>
    615           <td>
    616             <input <%=clazz%> type="text" name="width"
     638          <td></td>
     639        </tr>
     640        <tr>
     641          <th>Input box width</th>
     642          <td>
     643            <input <%=clazz%> type="text" name="width" style="width: 15em;"
    617644              value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    618               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    619           </td>
    620         </tr>
    621         <tr >
    622           <td class="prompt">Values</td>
    623           <td nowrap>
     645              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     646          </td>
     647          <td></td>
     648        </tr>
     649        <tr class="dynamic">
     650          <th>Values</th>
     651          <td>
    624652            <%
    625653            String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true);
    626654            %>
    627             <textarea <%=clazz%> rows="10" cols="40" name="values"
    628               onkeypress="return Numbers.integerOnly(event)"><%=HTML.encodeTags(values)%></textarea>
    629             <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')"
    630               title="Edit in larger window"><base:icon image="zoom.png" /></a><br>
    631             One enumeration value per line
    632           </td>
    633         </tr>
     655            <textarea <%=clazz%> rows="10" name="values"
     656              onkeypress="return Numbers.integerOnly(event)"><%=HTML.encodeTags(values)%></textarea><br>
     657          </td>
     658          <td style="width: 20px;">
     659            <base:icon image="zoom.png"
     660              onclick="Main.zoom('Values', 'annotationtype', 'values')"
     661              tooltip="Edit in larger window"
     662            />
     663          </td>
     664        </tr>
     665        <tr>
     666          <th class="subprompt"></th>
     667          <td>One enumeration value per line</td>
     668          <td></td>
     669        </tr>
     670        </table>
    634671        <%
    635672      }
     
    642679        boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList();
    643680        %>
    644         <tr>
    645           <td class="prompt">Interface</td>
     681        <table class="fullform input100">
     682        <tr>
     683          <th>Interface</th>
    646684          <td>
    647685            <input type="radio" name="interface" id="interfaceBox" value="box"
     
    658696            ><label for="interfaceButtons">radiobuttons/checkboxes</label>
    659697          </td>
    660         </tr>
    661         <tr>
    662           <td class="prompt">Min value</td>
     698          <td></td>
     699        </tr>
     700        <tr>
     701          <th>Min value</th>
    663702          <td>
    664703            <input <%=clazz%> type="text" name="minValue"
    665               value="<%=minValue == null ? "" : minValue.toString()%>"
    666               size="20" maxlength="20" onkeypress="return Numbers.numberOnly(event)">
     704              value="<%=minValue == null ? "" : minValue.toString()%>" style="width: 15em;"
     705              maxlength="20" onkeypress="return Numbers.numberOnly(event)">
    667706            empty = no limit
    668707          </td>
    669         </tr>
    670         <tr>
    671           <td class="prompt">Max value</td>
     708          <td></td>
     709        </tr>
     710        <tr>
     711          <th>Max value</th>
    672712          <td>
    673713            <input <%=clazz%> type="text" name="maxValue"
    674               value="<%=maxValue == null ? "" : maxValue.toString()%>"
    675               size="20" maxlength="20" onkeypress="return Numbers.numberOnly(event)">
     714              value="<%=maxValue == null ? "" : maxValue.toString()%>" style="width: 15em;"
     715              maxlength="20" onkeypress="return Numbers.numberOnly(event)">
    676716            empty = no limit
    677717          </td>
    678         </tr>
    679         <tr>
    680           <td class="prompt">Input box width</td>
     718          <td></td>
     719        </tr>
     720        <tr>
     721          <th>Input box width</th>
    681722          <td>
    682723            <input <%=clazz%> type="text" name="width"
    683               value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    684               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    685           </td>
    686         </tr>
    687         <tr >
    688           <td class="prompt">Values</td>
    689           <td nowrap>
     724              value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;"
     725              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     726          </td>
     727          <td></td>
     728        </tr>
     729        <tr class="dynamic">
     730          <th>Values</th>
     731          <td>
    690732            <%
    691733            String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true);
    692734            %>
    693             <textarea <%=clazz%> rows="10" cols="40" name="values"
     735            <textarea <%=clazz%> rows="10" name="values"
    694736              onkeypress="return Numbers.numberOnly(event)"><%=HTML.encodeTags(values)%></textarea>
    695             <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')"
    696               title="Edit in larger window"><base:icon image="zoom.png" /></a><br>
    697             One enumeration value per line
    698           </td>
    699         </tr>
     737          </td>
     738          <td style="width: 20px;">
     739            <base:icon image="zoom.png"
     740              onclick="Main.zoom('Values', 'annotationtype', 'values')"
     741              tooltip="Edit in larger window"
     742            />
     743          </td>
     744        </tr>
     745        <tr>
     746          <th class="subprompt"></th>
     747          <td>One enumeration value per line</td>
     748          <td></td>
     749        </tr>
     750        </table>
    700751        <%
    701752      }
     
    703754      {
    704755        %>
     756        <div style="border: 1px solid transparent;">
     757        <div class="messagecontainer help">
    705758        No options for this type.
     759        </div>
     760        </div>
    706761        <%
    707762      }
     
    712767        boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList();
    713768        %>
    714         <tr>
    715           <td class="prompt">Interface</td>
     769        <table class="fullform input100">
     770        <tr>
     771          <th>Interface</th>
    716772          <td>
    717773            <input type="radio" name="interface" id="interfaceBox" value="box"
     
    728784            ><label for="interfaceButtons">radiobuttons/checkboxes</label>
    729785          </td>
    730         </tr>
    731         <tr>
    732           <td class="prompt">Input box width</td>
     786          <td></td>
     787        </tr>
     788        <tr>
     789          <th>Input box width</th>
    733790          <td>
    734791            <input <%=clazz%> type="text" name="width"
    735               value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    736               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    737           </td>
    738         </tr>
    739         <tr >
    740           <td class="prompt">Values</td>
    741           <td nowrap>
     792              value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;"
     793              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     794          </td>
     795          <td></td>
     796        </tr>
     797        <tr class="dynamic">
     798          <th>Values</th>
     799          <td>
    742800            <%
    743801            String values = annotationType == null ? "" :
    744802              Values.getString((List<Date>)annotationType.getValues(), "\n", true, dateFormatter);
    745803            %>
    746             <textarea <%=clazz%> rows="10" cols="40" name="values"
     804            <textarea <%=clazz%> rows="10" name="values"
    747805              ><%=HTML.encodeTags(values)%></textarea>
    748             <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')" title="Edit in larger window"><base:icon image="zoom.png" /></a><br>
    749             One date value (<%=htmlDateFormat%>) per line
    750           </td>
    751         </tr>
     806          </td>
     807          <td style="width: 20px;">
     808            <base:icon image="zoom.png"
     809              onclick="Main.zoom('Values', 'annotationtype', 'values')"
     810              tooltip="Edit in larger window"
     811            />
     812          </td>
     813        </tr>
     814        <tr>
     815          <th class="subprompt"></th>
     816          <td>One date value (<%=htmlDateFormat%>) per line</td>
     817          <td></td>
     818        </tr>
     819        </table>
    752820        <%
    753821      }
     
    755823      {
    756824        %>
    757         <tr>
    758           <td class="prompt">Input box width</td>
     825        <table class="fullform input100">
     826        <tr>
     827          <th>Input box width</th>
    759828          <td>
    760829            <input <%=clazz%> type="text" name="width"
    761               value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    762               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    763           </td>
    764         </tr>
     830              value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;"
     831              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     832          </td>
     833        </tr>
     834        <tr class="dynamic">
     835          <th class="subprompt"></th>
     836          <td></td>
     837        </tr>
     838        </table>
    765839        <%
    766840      }
     
    772846        boolean displayAsList = annotationType == null ? false : annotationType.getDisplayAsList();
    773847        %>
    774         <tr>
    775           <td class="prompt">Interface</td>
     848        <table class="fullform input100">
     849        <tr>
     850          <th>Interface</th>
    776851          <td>
    777852            <input type="radio" name="interface" id="interfaceBox" value="box"
     
    788863            ><label for="interfaceButtons">radiobuttons/checkboxes</label>
    789864          </td>
    790         </tr>
    791         <tr>
    792           <td class="prompt">Max length</td>
     865          <td></td>
     866        </tr>
     867        <tr>
     868          <th>Max length</th>
    793869          <td>
    794870            <input <%=clazz%> type="text" name="maxLength"
    795               value="<%=maxLength == null ? "" : maxLength.toString()%>"
    796               size="12" maxlength="3" onkeypress="return Numbers.integerOnly(event)"> (1-255)
    797           </td>
    798         </tr>
    799         <tr>
    800           <td class="prompt">Input box width</td>
     871              value="<%=maxLength == null ? "" : maxLength.toString()%>" style="width: 5em;"
     872              maxlength="3" onkeypress="return Numbers.integerOnly(event)"> (1-255)
     873          </td>
     874          <td></td>
     875        </tr>
     876        <tr>
     877          <th>Input box width</th>
    801878          <td>
    802879            <input <%=clazz%> type="text" name="width"
    803               value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    804               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    805           </td>
    806         </tr>
    807         <tr >
    808           <td class="prompt">Values</td>
    809           <td nowrap>
     880              value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;"
     881              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     882          </td>
     883          <td></td>
     884        </tr>
     885        <tr class="dynamic">
     886          <th>Values</th>
     887          <td>
    810888            <%
    811889            String values = annotationType == null ? "" : Values.getString(annotationType.getValues(), "\n", true);
    812890            %>
    813             <textarea <%=clazz%> rows="10" cols="40" name="values" ><%=HTML.encodeTags(values)%></textarea>
    814             <a href="javascript:Main.zoom('Values', 'annotationtype', 'values')"
    815               title="Edit in larger window"><base:icon image="zoom.png" /></a><br>
    816             One enumeration value per line
    817           </td>
    818         </tr>
     891            <textarea <%=clazz%> rows="10" name="values" ><%=HTML.encodeTags(values)%></textarea>
     892          </td>
     893          <td style="width: 20px;">
     894            <base:icon image="zoom.png"
     895              onclick="Main.zoom('Values', 'annotationtype', 'values')"
     896              tooltip="Edit in larger window"
     897            />
     898          </td>
     899        </tr>
     900        <tr>
     901          <th class="subprompt"></th>
     902          <td>One enumeration value per line</td>
     903          <td></td>
     904        </tr>
     905        </table>
    819906        <%
    820907      }
     
    822909      {
    823910        %>
    824         <tr>
    825           <td class="prompt">Input box width</td>
     911        <table class="fullform input100">
     912        <tr>
     913          <th>Input box width</th>
    826914          <td>
    827915            <input <%=clazz%> type="text" name="width"
    828               value="<%=annotationType == null ? "" : annotationType.getWidth()%>"
    829               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    830           </td>
    831         </tr>
    832         <tr>
    833           <td class="prompt">Input box height</td>
     916              value="<%=annotationType == null ? "" : annotationType.getWidth()%>" style="width: 15em;"
     917              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     918          </td>
     919        </tr>
     920        <tr>
     921          <th>Input box height</th>
    834922          <td>
    835923            <input <%=clazz%> type="text" name="width"
    836               value="<%=annotationType == null ? "" : annotationType.getHeight()%>"
    837               size="12" maxlength="10" onkeypress="return Numbers.integerOnly(event)">
    838           </td>
    839         </tr>
     924              value="<%=annotationType == null ? "" : annotationType.getHeight()%>" style="width: 15em;"
     925              maxlength="10" onkeypress="return Numbers.integerOnly(event)">
     926          </td>
     927        </tr>
     928        <tr class="dynamic">
     929          <th></th>
     930          <td></td>
     931        </tr>
     932        </table>
    840933        <%
    841934      }
    842935      %>
     936    </t:tab>
     937   
     938    <t:tab id="items" title="Item types" validate="validateItemTypes()" helpid="annotationtype.edit.items">
     939      <div style="padding: 2px;">
     940      <table style="width: 100%;">
     941      <tr>
     942        <td style="width: 50%;">
     943          <b>Enabled for</b><br>
     944          <select name="enabled" multiple size="14" style="width: 99%;"
     945            ondblclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)">
     946          </select>
     947        </td>
     948        <td style="width: 20px; padding: 2px;">
     949          <base:buttongroup vertical="true">
     950            <base:button
     951              onclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)"
     952              image="move_left.png"
     953              tooltip="Enable the annotation type for the selected item(s)"
     954              subclass="square"
     955            />
     956            <base:button
     957              onclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)"
     958              image="move_right.png"
     959              subclass="square"
     960              tooltip="Disable the annotation type for the selected item(s)"
     961          />
     962          </base:buttongroup>
     963        </td>
     964        <td style="width: 50%;">
     965          <b>Disabled for</b><br>
     966          <select name="disabled" multiple size="14" style="width: 99%;"
     967            ondblclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)">
     968          </select>
     969        </td>
     970      </tr>
    843971      </table>
    844     </t:tab>
    845    
    846     <t:tab id="items" title="Item types" validate="validateItemTypes()" helpid="annotationtype.edit.items">
    847     <table border=0 cellspacing=0 cellpadding=2>
    848     <tr>
    849       <td>
    850         <b>Enabled for</b><br>
    851         <select name="enabled" multiple size="14" style="width: 16em;"
    852           ondblclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)">
    853         </select>
    854       </td>
    855  
    856       <td>
    857          <br>
    858         <base:button
    859           onclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)"
    860           title="<img src='../../images/move_left.png' alt='' style='vertical-align: middle;'>"
    861           tooltip="Enable the annotation type for the selected item(s)"
    862         /><p>
    863         <base:button
    864           onclick="moveBetween(document.forms['annotationType'].enabled, document.forms['annotationType'].disabled)"
    865           title="<img src='../../images/move_right.png' alt='' style='vertical-align: middle;'>"
    866           tooltip="Disable the annotation type for the selected item(s)"
    867         />
    868         <br>
    869       </td>
    870  
    871       <td>
    872         <b>Disabled for</b><br>
    873         <select name="disabled" multiple size="14" style="width: 16em;"
    874           ondblclick="moveBetween(document.forms['annotationType'].disabled, document.forms['annotationType'].enabled)">
    875         </select>
    876       </td>
    877     </tr>
    878     </table>
     972      </div>
    879973    </t:tab>
    880974   
     
    882976      visible="<%=valueType.isNumerical()%>" helpid="annotationtype.edit.units">
    883977   
    884       <table class="form" cellspacing="0">
    885       <tr >
    886         <td class="prompt">Quantity</td>
     978      <table class="fullform input100">
     979      <tr>
     980        <th>Quantity</th>
    887981        <td>
    888982          <select name="quantity_id" onchange="quantityOnChange()"
    889983            <%=!readCurrentQuantity || (annotationType != null && currentQuantityId != 0) ?
    890                 "disabled readonly class=\"disabled\"" : "class=\"unchangeable\""%>>
     984                "disabled readonly class=\"disabled\"" : "class=\"unchangeable selectionlist\""%>>
    891985            <option value="">- do not use units -
    892986          </select>
    893987        </td>
    894988      </tr>
    895       <tr >
    896         <td class="prompt">Default unit</td>
     989      <tr>
     990        <th>Default unit</th>
    897991        <td>
    898992          <select name="unit_id"
    899             <%=!readCurrentQuantity ? "disabled readonly class=\"disabled\"" : ""%>>
     993            <%=!readCurrentQuantity ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>>
    900994          </select>
    901995        </td>
    902996      </tr>
     997      <%
     998      if (annotationType != null)
     999      {
     1000        %>
     1001        <tr>
     1002          <th class="subprompt"></th>
     1003          <td>
     1004            <div class="messagecontainer help">
     1005            Changing the default unit triggers a conversion of existing annotation values
     1006            to the new unit. This may result in loss of precision due to rounding or
     1007            truncation.
     1008            </div>
     1009          </td>
     1010        </tr>
     1011        <%
     1012      }
     1013      %>
     1014      <tr class="dynamic">
     1015        <th></th>
     1016        <td>
     1017          <table style="width: 100%;">
     1018          <tr>
     1019            <th>Use units</th>
     1020            <td></td>
     1021            <th>Do not use</th>
     1022          </tr>
     1023          <tr>
     1024            <td style="width: 50%;">
     1025              <select name="usableUnits" size="10" multiple style="width: 100%;" ondblclick="removeFromUsableUnits()"
     1026                title="If no unit is selected, all units can be used"
     1027              >
     1028              </select>
     1029            </td>
     1030            <td style="width: 20px; padding: 2px;">
     1031              <base:buttongroup vertical="true">
     1032                <base:button
     1033                  onclick="addToUsableUnits()"
     1034                  image="move_left.png"
     1035                  subclass="square"
     1036                  tooltip="Enable the annotation type for the selected unit(s)"
     1037                />
     1038                <base:button
     1039                  onclick="removeFromUsableUnits()"
     1040                  image="move_right.png"
     1041                  subclass="square"
     1042                  tooltip="Disable the annotation type for the selected unit(s)"
     1043                />
     1044              </base:buttongroup>
     1045            </td>
     1046            <td style="width: 50%;">
     1047              <select name="allUnits" size="10" multiple style="width: 100%;" ondblclick="addToUsableUnits()">
     1048              </select>
     1049              <input type="hidden" name="removeUsableUnits" value="">
     1050              <input type="hidden" name="addUsableUnits" value="">
     1051            </td>
     1052          </tr>
     1053          </table>
     1054        </td>
    9031055      </table>
    904 
    905       <base:note type="warning" style="background: #ffffd8;"  visible="<%=annotationType != null %>">
    906       Changing the default unit triggers a conversion of existing annotation values
    907       to the new unit. This may result in loss of precision due to rounding or
    908       truncation.
    909       </base:note>
    910 
    911       <table class="form" cellspacing="0">
    912       <tr >
    913         <td class="prompt">Use units</td>
    914         <td></td>
    915         <td class="prompt">Do not use</td>
    916       </tr>
    917       <tr>
    918         <td>
    919           <select name="usableUnits" size="10" multiple style="width: 18em;" ondblclick="removeFromUsableUnits()">
    920           </select>
    921         </td>
    922         <td >
    923           <base:button
    924             onclick="addToUsableUnits()"
    925             image="move_left.png"
    926             title=""
    927             tooltip="Enable the annotation type for the selected unit(s)"
    928           /><p>
    929           <base:button
    930             onclick="removeFromUsableUnits()"
    931             image="move_right.png"
    932             title=""
    933             tooltip="Disable the annotation type for the selected unit(s)"
    934           />
    935         </td>
    936         <td>
    937           <select name="allUnits" size="10" multiple style="width: 18em;" ondblclick="addToUsableUnits()">
    938           </select>
    939           <input type="hidden" name="removeUsableUnits" value="">
    940           <input type="hidden" name="addUsableUnits" value="">
    941         </td>
    942       </tr>
    943       </table>
    944 
    945       <div align=right>
    946         <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>
    947       </div>
    948 
    9491056    </t:tab>
    9501057
    9511058    <t:tab id="categories" title="Categories" validate="validateCategories()"
    9521059      helpid="annotationtype.edit.categories">
    953       <table >
    954       <tr >
    955       <td>
    956         <b>Categories</b><br>
    957         <select name="categories" size="14" multiple
    958           style="width: 15em;">
    959         </select>
    960         <input type="hidden" name="removeCategories" value="">
    961         <input type="hidden" name="addCategories" value="">
    962       </td>
    963       <td>
    964         <br>
    965         <table width="150">
    966         <tr><td><base:button
    967           clazz="leftaligned buttonclass"
    968           onclick="addCategoriesOnClick()"
    969           title="Add&nbsp;categories&hellip;"
    970           tooltip="Add categories to this annotation type"
    971           /></td></tr>
    972         <tr><td><base:button
    973           clazz="leftaligned buttonclass"
    974           onclick="removeOnClick()"
    975           title="Remove"
    976           tooltip="Remove the selected categories from this annotation type"
    977         /></td></tr>
    978         </table>
    979       </td>
     1060      <table class="fullform input100">
     1061      <tr class="dynamic">
     1062        <th>Categories</th>
     1063        <td>
     1064          <div class="selectionlist">
     1065            <table>
     1066            <tr>
     1067            <td>
     1068              <select name="categories" size="14" multiple>
     1069              </select>
     1070              <input type="hidden" name="removeCategories" value="">
     1071              <input type="hidden" name="addCategories" value="">
     1072            </td>
     1073            <td style="vertical-align: top;">
     1074              <base:buttongroup vertical="true">
     1075                <base:button
     1076                  subclass="leftaligned"
     1077                  style="width: 14em;"
     1078                  onclick="addCategoriesOnClick()"
     1079                  title="Add&nbsp;categories&hellip;"
     1080                  tooltip="Add categories to this annotation type"
     1081                  />
     1082                <base:button
     1083                  subclass="leftaligned"
     1084                  style="width: 14em;"
     1085                  onclick="removeOnClick()"
     1086                  title="Remove"
     1087                  tooltip="Remove the selected categories from this annotation type"
     1088                />
     1089              </base:buttongroup>
     1090            </td>
     1091            </tr>
     1092            </table>
     1093          </div>
     1094        </td>
    9801095      </tr>
    9811096      </table>
    9821097    </t:tab>
    983    
    9841098    </t:tabcontrol>
    985 
    986     <table align="center">
    987     <tr>
    988       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    989       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    990     </tr>
    991     </table>
    9921099    </form>
     1100   
     1101    <div class="legend">
     1102      <base:icon image="required.gif" /> = required information<br>
     1103      <base:icon image="unchangeable.gif" /> = can't be changed later
     1104    </div>
     1105
     1106    <base:buttongroup subclass="dialogbuttons">
     1107      <base:button onclick="saveSettings()" title="Save" />
     1108      <base:button onclick="window.close()" title="Cancel" />
     1109    </base:buttongroup>
    9931110  </base:body>
    9941111  </base:page>
  • trunk/www/admin/datafiletypes/edit_filetype.jsp

    r5908 r5922  
    153153  </base:head>
    154154  <base:body onload="init()">
    155     <p>
     155    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    156156    <form action="index.jsp?ID=<%=ID%>" method="post" name="fileType" onsubmit="return false;">
    157157    <input type="hidden" name="cmd" value="UpdateItem">
    158158
    159     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    160     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*340)+"px;"%>"
     159    <t:tabcontrol id="settings"
     160      subclass="content dialogtabcontrol"
    161161      position="bottom"  remember="<%=fileType != null%>"
    162162      extensions="<%=invoker%>">
    163163    <t:tab id="info" title="Data file type" validate="validateDataFileType()" helpid="datafiletype.edit">
    164       <table class="form" cellspacing=0>
     164      <table class="fullform input100 smaller">
    165165      <tr>
    166         <td class="prompt">Name</td>
     166        <th>Name</th>
    167167        <td><input <%=requiredClazz%> type="text" name="name"
    168168          value="<%=HTML.encodeTags(fileType == null ? Values.getString(cc.getPropertyValue("name"), "New data file type") : fileType.getName())%>"
    169           size="40" maxlength="<%=DataFileType.MAX_NAME_LENGTH%>"></td>
     169          maxlength="<%=DataFileType.MAX_NAME_LENGTH%>"></td>
     170        <td></td>
    170171      </tr>
    171172      <%
     
    177178        %>
    178179        <tr>
    179           <td class="prompt">External ID</td>
     180          <th>External ID</th>
    180181          <td><input <%=unchangeableClazz%> type="text" name="externalId"
    181182            value="<%=HTML.encodeTags(cc.getPropertyValue("externalId"))%>"
    182             size="40" maxlength="<%=DataFileType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     183            maxlength="<%=DataFileType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     184          <td></td>
    183185        </tr>
    184186        <tr>
    185           <td class="prompt">Item type</td>
     187          <th>Item type</th>
    186188          <td>
    187             <select name="itemType" class="required unchangeable">
     189            <select name="itemType" class="required unchangeable selectionlist">
    188190            <%
    189191            for (Item item : items)
     
    197199            </select>
    198200          </td>
     201          <td></td>
    199202        </tr>
    200203        <%
     
    202205      %>
    203206      <tr>
    204         <td class="prompt">File extension</td>
    205         <td><input <%=clazz%> type="text" name="extension"
     207        <th>File extension</th>
     208        <td><input <%=clazz%> type="text" name="extension" style="width: 15em;"
    206209          value="<%=HTML.encodeTags(fileType == null ? Values.getString(cc.getPropertyValue("extension")) : fileType.getExtension())%>"
    207           size="40" maxlength="<%=DataFileType.MAX_EXTENSION_LENGTH%>"></td>
    208       </tr>
    209       <tr >
    210         <td class="prompt">Generic file type</td>
    211         <td colspan="2">
    212           <select name="generictype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : ""%>>
     210          maxlength="<%=DataFileType.MAX_EXTENSION_LENGTH%>"></td>
     211        <td></td>
     212      </tr>
     213      <tr>
     214        <th>Generic file type</th>
     215        <td>
     216          <select name="generictype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>>
    213217          <%
    214218          if (!readCurrentFileType)
     
    238242          </select>
    239243        </td>
    240       </tr>
    241       <tr >
    242         <td class="prompt">Description</td>
    243         <td nowrap>
    244           <textarea <%=clazz%> rows="4" cols="40" name="description"
     244        <td></td>
     245      </tr>
     246      <tr class="dynamic">
     247        <th>Description</th>
     248        <td>
     249          <textarea <%=clazz%> rows="6" name="description"
    245250            ><%=HTML.encodeTags(fileType == null ? cc.getPropertyValue("description") : fileType.getDescription())%></textarea>
    246           <a href="javascript:Main.zoom('Description', 'fileType', 'description')"
    247             title="Edit in larger window"><base:icon image="zoom.png" /></a>
    248251        </td>
     252        <td style="width: 20px;">
     253          <base:icon image="zoom.png"
     254            onclick="Main.zoom('Description', 'fileType', 'description')"
     255            tooltip="Edit in larger window"
     256          />
     257        </td>
    249258      </tr>
    250259      </table>
    251       <div align=right>
    252         &nbsp;<i><base:icon image="required.gif" /> = required information</i>
    253         <%if (fileType == null) {%><br>
    254         <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>
    255         <%}%>
    256       </div>
    257260    </t:tab>
    258261    </t:tabcontrol>
    259 
    260     <table align="center">
    261     <tr>
    262       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    263       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    264     </tr>
    265     </table>
    266262    </form>
     263   
     264    <div class="legend">
     265      <base:icon image="required.gif" /> = required information
     266      <%if (fileType == null) {%><br>
     267        <base:icon image="unchangeable.gif" /> = can't be changed later
     268      <%}%>
     269    </div>
     270
     271    <base:buttongroup subclass="dialogbuttons">
     272      <base:button onclick="saveSettings()" title="Save" />
     273      <base:button onclick="window.close()" title="Cancel" />
     274    </base:buttongroup>
    267275  </base:body>
    268276  </base:page>
  • trunk/www/admin/extravaluetypes/edit_extravaluetype.jsp

    r5908 r5922  
    205205  </base:head>
    206206  <base:body onload="init()">
    207     <p>
     207    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    208208    <form action="index.jsp?ID=<%=ID%>" method="post" name="extraValueType" onsubmit="return false;">
    209209    <input type="hidden" name="cmd" value="UpdateItem">
    210210
    211     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    212     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"
     211    <t:tabcontrol id="settings"
     212      subclass="content dialogtabcontrol"
    213213      position="bottom" remember="<%=extraValueType != null%>"
    214214      extensions="<%=invoker%>">
    215215    <t:tab id="info" title="Extra value type" validate="validateExtraValueType()"
    216216      helpid="extravaluetype.edit">
    217       <table class="form" cellspacing=0>
     217      <table class="fullform input100 smaller">
    218218      <tr>
    219         <td class="prompt">Name</td>
     219        <th>Name</th>
    220220        <td><input <%=requiredClazz%> type="text" name="name"
    221221          value="<%=HTML.encodeTags(extraValueType == null ? Values.getString(cc.getPropertyValue("name"), "New extra value type") : extraValueType.getName())%>"
    222           size="40" maxlength="<%=ExtraValueType.MAX_NAME_LENGTH%>"></td>
     222          maxlength="<%=ExtraValueType.MAX_NAME_LENGTH%>"></td>
     223        <td></td>
    223224      </tr>
    224225      <tr>
    225         <td class="prompt">External ID</td>
     226        <th>External ID</th>
    226227        <td><input <%=requiredClazz%> type="text" name="external_id"
    227228          value="<%=HTML.encodeTags(extraValueType == null ? Values.getString(cc.getPropertyValue("externalId")) : extraValueType.getExternalId())%>"
    228           size="40" maxlength="<%=ExtraValueType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     229          maxlength="<%=ExtraValueType.MAX_EXTERNAL_ID_LENGTH%>"></td>
     230        <td></td>
    229231      </tr>
    230232      <tr>
    231         <td class="prompt">Value type</td>
     233        <th>Value type</th>
    232234        <td>
    233235          <%
     
    242244            int currentValueType = Values.getInt(cc.getPropertyValue("valueType"));
    243245            %>
    244             <select name="value_type" class="required" onchange="valueTypeOnChange()">
     246            <select name="value_type" class="required unchangeable selectionlist" onchange="valueTypeOnChange()">
    245247            <option value="<%=Type.INT.name()%>"
    246248              <%=Type.INT.getValue() == currentValueType ? "selected" : "" %>><%=Type.INT%>
     
    250252              <%=Type.STRING.getValue() == currentValueType ? "selected" : "" %>><%=Type.STRING%>
    251253            </select>
    252             (can't be changed later)
    253254            <%
    254255          }
    255256          %>
    256257        </td>
     258        <td></td>
    257259      </tr>
    258260      <tr>
    259         <td class="prompt">Avg. method</td>
     261        <th>Avg. method</th>
    260262        <td>
    261           <select name="averageMethod" class="required">
     263          <select name="averageMethod" class="required selectionlist">
    262264          <%
    263265          for (Formula.AverageMethod method : Formula.AverageMethod.values())
     
    271273          </select>
    272274        </td>
     275        <td></td>
    273276      </tr>
    274277      <%
     
    277280        %>
    278281        <tr>
    279           <td class="prompt">Use colors</td>
     282          <th><label for="use_colors">Use colors</label></th>
    280283          <td>
    281             <input type="checkbox" name="use_colors" value="1"
     284            <input type="checkbox" name="use_colors" value="1" id="use_colors"
    282285              <%=coloring.isUsingColors() ? "checked" : "" %>
    283286              onclick="useColorsOnClick()">
    284            
    285             <b>Min value</b>
     287          </td>
     288          <td></td>
     289        </tr>
     290        <tr>
     291          <th class="subprompt">Min value</th>
     292          <td>
    286293            <input type="text" class="text" name="min_value"
    287294               value="<%=Values.formatNumber(coloring.getMinValue(), -1)%>"
    288                size="6" maxlength="6"
     295               maxlength="6"  style="width: 6em;"
    289296               onkeypress="return Numbers.numberOnly(event)"
    290297               >
    291             <b>Mid value</b>
     298            Mid value
    292299            <input type="text" class="text" name="mid_value"
    293300               value="<%=Values.formatNumber(coloring.getMidValue(), -1)%>"
    294                size="6" maxlength="6"
     301               maxlength="6"  style="width: 6em;"
    295302               onkeypress="return Numbers.numberOnly(event)"
    296303               >
    297             <b>Max value</b>
     304            Max value
    298305            <input type="text" class="text" name="max_value"
    299306               value="<%=Values.formatNumber(coloring.getMaxValue(), -1)%>"
    300                size="6" maxlength="6"
     307               maxlength="6" style="width: 6em;"
    301308               onkeypress="return Numbers.numberOnly(event)"
    302309               >
    303                <br>
    304             <input type="checkbox" name="logarithmic" value="1"
     310          </td>
     311          <td></td>
     312        </tr>
     313        <tr>
     314          <th class="subprompt"><label for="logarithmic">Logarithmic</label></th>
     315          <td>
     316            <input type="checkbox" name="logarithmic" value="1" id="logarithmic"
    305317              <%=coloring.isLogarithmic() ? "checked" : "" %>>
    306             <b>Logarithmic</b>
    307318          </td>
     319          <td></td>
    308320        </tr>
    309321        <%
    310322      }
    311323      %>
    312       <tr >
    313         <td class="prompt">Description</td>
    314         <td nowrap>
    315           <textarea <%=clazz%> rows="4" cols="40" name="description"
     324      <tr class="dynamic">
     325        <th>Description</th>
     326        <td>
     327          <textarea <%=clazz%> rows="6" name="description"
    316328            ><%=HTML.encodeTags(extraValueType == null ? cc.getPropertyValue("description") : extraValueType.getDescription())%></textarea>
    317           <a href="javascript:Main.zoom('Description', 'extraValueType', 'description')"
    318             title="Edit in larger window"><base:icon image="zoom.png" /></a>
    319329        </td>
     330        <td style="width: 20px;">
     331          <base:icon image="zoom.png"
     332            onclick="Main.zoom('Description', 'extraValueType', 'description')"
     333            tooltip="Edit in larger window"
     334          />
     335        </td>
    320336      </tr>
    321337      </table>
    322       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    323338    </t:tab>
    324339    </t:tabcontrol>
    325 
    326     <table align="center">
    327     <tr>
    328       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    329       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    330     </tr>
    331     </table>
    332340    </form>
     341   
     342    <div class="legend">
     343      <base:icon image="required.gif" /> = required information
     344      <%if (extraValueType == null) {%><br>
     345        <base:icon image="unchangeable.gif" /> = can't be changed later
     346      <%}%>
     347    </div>
     348
     349    <base:buttongroup subclass="dialogbuttons">
     350      <base:button onclick="saveSettings()" title="Save" />
     351      <base:button onclick="window.close()" title="Cancel" />
     352    </base:buttongroup>
    333353  </base:body>
    334354  </base:page>
  • trunk/www/admin/groups/edit_group.jsp

    r5921 r5922  
    351351    <t:tab id="members" title="Members" tooltip="Add/remove members of this group"
    352352      validate="validateMembers()" helpid="group.edit.membership">
    353       <table class="fullform smaller">
     353      <table class="fullform input100 smaller">
    354354      <tr class="dynamic">
    355355      <th>Members</th>
  • trunk/www/admin/itemsubtypes/edit_subtype.jsp

    r5908 r5922  
    215215      else
    216216      {
     217        Main.hide('filetypes.enabled');
    217218        Main.show('filetypes.disabled');
    218         Main.hide('filetypes.enabled');
    219         document.getElementById('filetypes.disabled').innerHTML = 'The selected main item type (' + mainType + ') has not support for attaching data files.';
     219        document.getElementById('filetypes.disabled').innerHTML = '<div class="messagecontainer error">The selected main item type (' + mainType + ') has not support for attaching data files.</div>';
    220220      }
    221221    }
     
    319319  </base:head>
    320320  <base:body onload="init()">
    321     <p>
     321    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    322322    <form action="index.jsp?ID=<%=ID%>" method="post" name="subtype" onsubmit="return false;">
    323323    <input type="hidden" name="cmd" value="UpdateItem">
    324324
    325     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    326     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*320)+"px;"%>"
     325    <t:tabcontrol id="settings"
     326      subclass="content dialogtabcontrol"
    327327      position="bottom" remember="<%=subtype != null%>"
    328328      extensions="<%=invoker%>">
    329329    <t:tab id="info" title="Item subtype" validate="validateItemSubtype()" helpid="itemsubtype.edit">
    330       <table class="form" cellspacing=0>
     330      <table class="fullform input100">
    331331      <tr>
    332         <td class="prompt">Name</td>
     332        <th>Name</th>
    333333        <td><input <%=requiredClazz%> type="text" name="name"
    334334          value="<%=HTML.encodeTags(subtype == null ? Values.getString(cc.getPropertyValue("name"), "New item subtype") : subtype.getName())%>"
    335           size="40" maxlength="<%=ItemSubtype.MAX_NAME_LENGTH%>"></td>
     335          maxlength="<%=ItemSubtype.MAX_NAME_LENGTH%>"></td>
     336        <td></td>
    336337      </tr>
    337338      <tr>
    338         <td class="prompt">Main item type</td>
     339        <th>Main item type</th>
    339340        <td>
    340341          <%
     
    364365          %>
    365366        </td>
     367        <td></td>
    366368      </tr>
    367       <tr >
    368         <td class="prompt">Description</td>
    369         <td nowrap>
    370           <textarea <%=clazz%> rows="4" cols="40" name="description"
     369      <tr class="big">
     370        <th>Description</th>
     371        <td>
     372          <textarea <%=clazz%> rows="4" name="description"
    371373            ><%=HTML.encodeTags(subtype == null ? cc.getPropertyValue("description") : subtype.getDescription())%></textarea>
    372           <a href="javascript:Main.zoom('Description', 'subtype', 'description')"
    373             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     374        </td>
     375        <td style="width: 20px;">
     376          <base:icon image="zoom.png"
     377            onclick="Main.zoom('Description', 'subtype', 'description')"
     378            tooltip="Edit in larger window"
     379          />
    374380        </td>
    375381      </tr>
    376382      <tr>
    377         <td class="prompt">Related subtypes</td>
     383        <th>Related subtypes</td>
    378384        <td><div id="section.none" style="display: none;"><i>- none -</i></div></td>
     385        <td></td>
    379386      </tr>
    380387      <%
     
    383390        %>
    384391        <tr id="section.<%=item.name()%>" style="display: none;">
    385           <td class="subprompt"><%=item%></td>
     392          <th class="subprompt"><%=item%></th>
    386393          <td>
    387394            <base:select
     
    393400            />
    394401          </td>
     402          <td></td>
    395403        </tr>
    396404        <%
    397405      }
    398406      %>
     407      <tr class="dynamic">
     408        <th></th>
     409        <td colspan="2"></td>
     410      </tr>
    399411      </table>
    400       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    401412    </t:tab>
    402413    <t:tab
     
    404415      title="File types"
    405416      helpid="itemsubtype.filetypes">
    406       <div id="filetypes.enabled">
    407       <table class="form" cellspacing=0>
    408       <tr >
    409         <td class="prompt">File types</td>
    410         <td>
    411           <table border="0" cellspacing="0" cellpadding="0">
    412           <tr >
     417      <div id="filetypes.enabled" style="height: 100%; display: none;">
     418        <table class="fullform input100">
     419        <tr class="dynamic">
     420          <th>File types</th>
    413421          <td>
    414             <select name="fileTypes" size="10" multiple style="width: 20em;"
    415               onchange="fileTypesOnChange()">
    416             </select>
    417             <input type="hidden" name="modifiedFileTypes" value="">
    418             <input type="hidden" name="removedFileTypes" value="">
     422            <div class="selectionlist">
     423              <table>
     424              <tr>
     425              <td>
     426                <select name="fileTypes" size="10" multiple onchange="fileTypesOnChange()">
     427                </select>
     428                <input type="hidden" name="modifiedFileTypes" value="">
     429                <input type="hidden" name="removedFileTypes" value="">
     430              </td>
     431              <td style="vertical-align: top;">
     432                <base:buttongroup vertical="true">
     433                  <base:button
     434                    subclass="leftaligned"
     435                    style="width: 14em;"
     436                    onclick="addFileTypesOnClick()"
     437                    title="Add file types&hellip;"
     438                    tooltip="Add file types"
     439                    />
     440                  <base:button
     441                    subclass="leftaligned"
     442                    style="width: 14em;"
     443                    onclick="removeFileTypesOnClick()"
     444                    title="Remove"
     445                    tooltip="Remove the selected file types"
     446                  />
     447                </base:buttongroup>
     448                <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
     449                  <label for="required">Required</label><br>
     450                <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
     451                  <label for="multiple">Allow multiple files</label>
     452                </td>
     453              </tr>
     454              </table>
     455            </div>
    419456          </td>
    420           <td>
    421             <table border="0">
    422             <tr><td width="150"><base:button
    423               clazz="leftaligned buttonclass"
    424               onclick="addFileTypesOnClick()"
    425               title="Add file types&hellip;"
    426               tooltip="Add file types"
    427               /></td></tr>
    428             <tr><td width="150"><base:button
    429               clazz="leftaligned buttonclass"
    430               onclick="removeFileTypesOnClick()"
    431               title="Remove"
    432               tooltip="Remove the selected file types"
    433             /></td></tr>
    434             </table>
    435           <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
    436             <label for="required">Required</label><br>
    437           <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
    438             <label for="multiple">Allow multiple files</label>
    439           </td>
    440           </tr>
    441           </table>
    442         </td>
    443       </tr>
    444       </table>
     457        </tr>
     458        </table>
    445459      </div>
    446       <div id="filetypes.disabled" style="display: none;">
    447      
     460      <div id="filetypes.disabled" style="display: none; border: 1px solid transparent;">
     461        <div class="messagecontainer error"></div>
    448462      </div>
    449463    </t:tab>
    450464    </t:tabcontrol>
    451 
    452     <table align="center">
    453     <tr>
    454       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    455       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    456     </tr>
    457     </table>
    458465    </form>
     466   
     467    <div class="legend">
     468      <base:icon image="required.gif" /> = required information
     469    </div>
     470
     471    <base:buttongroup subclass="dialogbuttons">
     472      <base:button onclick="saveSettings()" title="Save" />
     473      <base:button onclick="window.close()" title="Cancel" />
     474    </base:buttongroup>
    459475  </base:body>
    460476  </base:page>
  • trunk/www/admin/jobagents/edit_agent.jsp

    r5908 r5922  
    361361  </base:head>
    362362  <base:body onload="init()">
    363     <p>
     363    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    364364    <form action="index.jsp?ID=<%=ID%>" method="post" name="agent" onsubmit="return false;">
    365365    <input type="hidden" name="cmd" value="UpdateItem">
    366366
    367     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    368     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*280)+"px;"%>"
     367    <t:tabcontrol id="settings"
     368      subclass="content dialogtabcontrol"
    369369      position="bottom"  remember="<%=agent != null%>" active="<%=selectedPluginId == -1 ? null : "plugins" %>"
    370370      extensions="<%=invoker%>">
    371371    <t:tab id="info" title="Job agent" validate="validateJobAgent()" helpid="jobagent.edit">
    372       <table class="form" cellspacing=0>
     372      <table class="fullform input100 smaller">
    373373      <tr>
    374         <td class="prompt">Name</td>
     374        <th>Name</th>
    375375        <td><input <%=requiredClazz%> type="text" name="name"
    376376          value="<%=HTML.encodeTags(agent == null ? Values.getString(cc.getPropertyValue("name"), "New job agent") : agent.getName())%>"
    377           size="40" maxlength="<%=JobAgent.MAX_NAME_LENGTH%>"></td>
     377          maxlength="<%=JobAgent.MAX_NAME_LENGTH%>"></td>
     378        <td></td>
    378379      </tr>
    379380      <tr>
    380         <td class="prompt">External Id</td>
     381        <th>External Id</th>
    381382        <td><input <%=requiredClazz%> type="text" name="external_id"
    382383          value="<%=HTML.encodeTags(agent == null ? cc.getPropertyValue("externalId") : agent.getExternalId())%>"
    383           size="40" maxlength="<%=JobAgent.MAX_EXTERNAL_ID_LENGTH%>"></td>
     384          maxlength="<%=JobAgent.MAX_EXTERNAL_ID_LENGTH%>"></td>
     385        <td></td>
    384386      </tr>
    385387      <tr>
    386         <td class="prompt">Server</td>
     388        <th>Server</th>
    387389        <td><input <%=clazz%> type="text" name="server"
    388390          value="<%=HTML.encodeTags(agent == null ? cc.getPropertyValue("server") : agent.getServer())%>"
    389           size="40" maxlength="<%=JobAgent.MAX_SERVER_LENGTH%>"></td>
     391          maxlength="<%=JobAgent.MAX_SERVER_LENGTH%>"></td>
     392        <td></td>
    390393      </tr>
    391394      <tr>
    392         <td class="prompt">Port</td>
     395        <th>Port</th>
    393396        <td><input <%=clazz%> type="text" name="port"
    394397          value="<%=port == null ?  "" : port.toString() %>"
    395           size="12" maxlength="10"
     398          maxlength="10" style="width: 15em;"
    396399          onkeypress="return Numbers.integerOnly(event)">
    397400          <span class="link" onclick="document.forms['agent'].port.value = '<%=JobAgent.DEFAULT_PORT%>'"
    398401            >Use default (<%=JobAgent.DEFAULT_PORT%>)</span>
    399402          </td>
    400       </tr>
    401       <tr >
    402         <td class="prompt">Description</td>
    403         <td nowrap>
    404           <textarea <%=clazz%> rows="4" cols="40" name="description"
     403        <td></td>
     404      </tr>
     405      <tr class="dynamic">
     406        <th>Description</th>
     407        <td>
     408          <textarea <%=clazz%> rows="6" name="description"
    405409            ><%=HTML.encodeTags(agent == null ? cc.getPropertyValue("description") : agent.getDescription())%></textarea>
    406           <a href="javascript:Main.zoom('Description', 'agent', 'description')"
    407             title="Edit in larger window"><base:icon image="zoom.png" /></a>
    408410        </td>
     411        <td style="width: 20px;">
     412          <base:icon image="zoom.png"
     413            onclick="Main.zoom('Description', 'agent', 'description')"
     414            tooltip="Edit in larger window"
     415          />
     416        </td>
    409417      </tr>
    410418      </table>
    411       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    412419    </t:tab>
    413420   
    414421    <t:tab id="plugins" title="Plugins" helpid="jobagent.plugins">
    415    
    416       <table >
    417       <tr >
    418       <td>
    419         <b>Installed plugins</b><br>
    420         <select name="plugins" size="14" multiple style="width: 15em;"
    421           onclick="pluginsOnClick()">
    422         </select>
    423         <input type="hidden" name="removePlugins" value="">
    424         <input type="hidden" name="allPlugins" value="">
    425       </td>
    426       <td>
    427         <br>
    428         <table width="150">
    429         <tr><td><base:button
    430           clazz="leftaligned buttonclass"
    431           onclick="addPluginsOnClick()"
    432           title="Add&nbsp;plugins&hellip;" 
    433           tooltip="Add plugins to this job agent"
    434         /></td></tr>
    435         <tr><td><base:button
    436           clazz="leftaligned buttonclass"
    437           onclick="removeOnClick()"
    438           title="Remove"
    439           tooltip="Remove the selected plugins"
    440         /></td></tr>
    441         </table>
    442 
    443         <br>
    444         <div id="pluginsettings" style="display: none;">
    445         <table border="0" cellspacing="0" class="form">
     422      <table class="fullform input100 smaller">
     423      <tr class="big">
     424        <th>Installed plugins</th>
     425        <td>
     426          <div class="selectionlist">
     427            <table>
     428            <tr>
     429              <td>
     430                <select name="plugins" size="12" multiple onclick="pluginsOnClick()">
     431                </select>
     432                <input type="hidden" name="removePlugins" value="">
     433                <input type="hidden" name="allPlugins" value="">
     434              </td>
     435              <td style="vertical-align: top;">
     436                <base:buttongroup vertical="true">
     437                  <base:button
     438                    subclass="leftaligned"
     439                    onclick="addPluginsOnClick()"
     440                    title="Add&nbsp;plugins&hellip;" 
     441                    tooltip="Add plugins to this job agent"
     442                  />
     443                  <base:button
     444                    subclass="leftaligned"
     445                    onclick="removeOnClick()"
     446                    title="Remove"
     447                    tooltip="Remove the selected plugins"
     448                  />
     449                </base:buttongroup>
     450              </td>
     451            </tr>
     452            </table>
     453          </div>
     454        </td>
     455      </tr>
     456      <tbody id="pluginsettings" style="display: none;">
    446457        <tr>
    447           <td class="prompt">Max memory</td>
     458          <th colspan="2" class="bottomborder" style="border-top: 1px solid #A0A0A0;">Settings for the selected plug-in</th>
     459        </tr>
     460        <tr>
     461          <th class="subprompt">Max memory</th>
    448462          <td>
    449             <input type="text" name="maxMemory" class="text" size="16"
    450               maxlength="16"
    451               onblur="maxMemoryOnBlur()">
     463            <input type="text" name="maxMemory" class="text" style="width: 15em;"
     464              maxlength="16"  onblur="maxMemoryOnBlur()">
    452465              (Use KB, MB or GB to specify memory)
    453466          </td>
    454467        </tr>
    455468        <tr>
    456           <td style="padding-left: 10px;">-use default</td>
     469          <th class="subprompt"></th>
    457470          <td>
    458             <input type="checkbox" name="useDefaultMaxMemory"
     471            <input type="checkbox" name="useDefaultMaxMemory" id="useDefaultMaxMemory"
    459472              onclick="useDefaultMaxMemoryOnClick()">
    460             (<span id="defaultMaxMemory"></span>)
     473            <label for="useDefaultMaxMemory">Use default</label> (<span id="defaultMaxMemory"></span>)
    461474          </td>
    462475        </tr>
    463476        <tr>
    464           <td class="prompt">Trusted</td>
     477          <th class="subprompt">Trusted</th>
    465478          <td>
    466479            <input type="radio" name="trusted" id="trustedDefault" value=""
     
    473486        </tr>
    474487        <tr>
    475           <td class="prompt">Priority boost</td>
     488          <th class="subprompt">Priority boost</th>
    476489          <td>
    477             <input type="text" name="priorityBoost" class="text" size="12"
     490            <input type="text" name="priorityBoost" class="text" style="width: 15em;"
    478491              maxlength="10" onkeypress="return Numbers.integerOnly(event)"
    479492              onblur="priorityBoostOnBlur()">
    480493          </td>
    481494        </tr>
    482         </table>
    483         </div>
    484       </td>
     495      </tbody>
     496      <tr class="dynamic">
     497        <th></th>
     498        <td></td>
    485499      </tr>
    486500      </table>
    487      
    488      
    489501    </t:tab>
    490    
    491502    </t:tabcontrol>
    492 
    493     <table align="center">
    494     <tr>
    495       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    496       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    497     </tr>
    498     </table>
    499503    </form>
     504   
     505    <div class="legend">
     506      <base:icon image="required.gif" /> = required information
     507    </div>
     508
     509    <base:buttongroup subclass="dialogbuttons">
     510      <base:button onclick="saveSettings()" title="Save" />
     511      <base:button onclick="window.close()" title="Cancel" />
     512    </base:buttongroup>
    500513  </base:body>
    501514  </base:page>
  • trunk/www/admin/mimetypes/edit_mimetype.jsp

    r5908 r5922  
    155155  </base:head>
    156156  <base:body onload="init()">
    157     <p>
     157    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    158158    <form action="index.jsp?ID=<%=ID%>" method="post" name="mimeType" onsubmit="return false;">
    159159    <input type="hidden" name="cmd" value="UpdateItem">
    160160
    161     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    162     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*240)+"px;"%>"
     161    <t:tabcontrol id="settings"
     162      subclass="content dialogtabcontrol"
    163163      position="bottom" remember="<%=mimeType != null%>"
    164164      extensions="<%=invoker%>">
    165165    <t:tab id="info" title="MIME type" validate="validateMimeType()" helpid="mimetype.edit">
    166       <table class="form" cellspacing=0>
    167       <tr>
    168         <td class="prompt">File extension</td>
    169         <td><input <%=requiredClazz%> type="text" name="extension"
     166      <table class="fullform input100 smaller">
     167      <tr>
     168        <th>File extension</th>
     169        <td><input <%=requiredClazz%> type="text" name="extension" style="width: 10em;"
    170170          value="<%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("extension") : mimeType.getExtension())%>"
    171           size="40" maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td>
    172       </tr>
    173       <tr>
    174         <td class="prompt">MIME type</td>
     171          maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td>
     172        <td></td>
     173      </tr>
     174      <tr>
     175        <th>MIME type</th>
    175176        <td><input <%=requiredClazz%> type="text" name="name"
    176177          value="<%=HTML.encodeTags(mimeType == null ? Values.getString(cc.getPropertyValue("name"), "New MIME type") : mimeType.getName())%>"
    177           size="40" maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td>
    178       </tr>
    179       <tr >
    180         <td class="prompt">File type</td>
    181         <td colspan="2">
    182           <select name="filetype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : ""%>>
     178          maxlength="<%=MimeType.MAX_NAME_LENGTH%>"></td>
     179        <td></td>
     180      </tr>
     181      <tr>
     182        <th>File type</th>
     183        <td>
     184          <select name="filetype_id" <%=!readCurrentFileType ? "disabled readonly class=\"disabled\"" : "class=\"selectionlist\""%>>
    183185          <%
    184186          if (!readCurrentFileType)
     
    208210          </select>
    209211        </td>
    210       </tr>
    211       <tr>
    212         <td class="prompt">Auto compress</td>
     212        <td></td>
     213      </tr>
     214      <tr>
     215        <th>Auto compress</th>
    213216        <td>
    214217          <input type="radio" name="autoCompress" id="autoCompressNo" value="0"
     
    216219          <input type="radio" name="autoCompress" id="autoCompressYes" value="1"
    217220            <%=autoCompress ? "checked" : ""%>><label for="autoCompressYes">yes</label>
    218          
    219           <%
    220           if (!Application.autoCompressionEnabled())
    221           {
    222             %>
    223             <base:note type="info" style="background: #ffffcc;">
     221        <td></td>
     222      </tr>
     223      <%
     224      if (!Application.autoCompressionEnabled())
     225      {
     226        %>
     227        <tr>
     228          <th class="subprompt"></th>
     229          <td>
     230            <div class="messagecontainer help" style="margin: 0.5em;">
    224231              Auto-compression has been disabled in <code>base.config</code>
    225             </base:note>
    226             <%
    227           }
    228           %>
     232            </div>
     233          </td>
     234          <td></td>
     235        </tr>
     236        <%
     237      }
     238      %>
     239      <tr class="dynamic">
     240        <th>Description</th>
     241        <td>
     242          <textarea <%=clazz%> rows="6" name="description"
     243            ><%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("description") : mimeType.getDescription())%></textarea>
    229244        </td>
    230       </tr>
    231       <tr >
    232         <td class="prompt">Description</td>
    233         <td nowrap>
    234           <textarea <%=clazz%> rows="4" cols="40" name="description"
    235             ><%=HTML.encodeTags(mimeType == null ? cc.getPropertyValue("description") : mimeType.getDescription())%></textarea>
    236           <a href="javascript:Main.zoom('Description', 'mimeType', 'description')"
    237             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     245        <td style="width: 20px;">
     246          <base:icon image="zoom.png"
     247            onclick="Main.zoom('Description', 'mimeType', 'description')"
     248            tooltip="Edit in larger window"
     249          />
    238250        </td>
    239251      </tr>
    240252      </table>
    241       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    242253    </t:tab>
    243254    </t:tabcontrol>
    244 
    245     <table align="center">
    246     <tr>
    247       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    248       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    249     </tr>
    250     </table>
    251255    </form>
     256   
     257    <div class="legend">
     258      <base:icon image="required.gif" /> = required information
     259    </div>
     260
     261    <base:buttongroup subclass="dialogbuttons">
     262      <base:button onclick="saveSettings()" title="Save" />
     263      <base:button onclick="window.close()" title="Cancel" />
     264    </base:buttongroup>
    252265  </base:body>
    253266  </base:page>
  • trunk/www/admin/platforms/edit_platform.jsp

    r5908 r5922  
    255255  </base:head>
    256256  <base:body onload="init()">
    257     <p>
     257    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    258258    <form action="index.jsp?ID=<%=ID%>" method="post" name="platform" onsubmit="return false;">
    259259    <input type="hidden" name="cmd" value="UpdateItem">
    260260
    261     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    262     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"
     261    <t:tabcontrol id="settings"
     262      subclass="content dialogtabcontrol"
    263263      position="bottom" active="<%=tabId%>" remember="<%=tabId == null && platform != null%>"
    264264      extensions="<%=invoker%>">
    265265    <t:tab id="info" title="Platform" validate="validatePlatform()" helpid="platform.edit">
    266       <table class="form" cellspacing=0>
     266      <table class="fullform input100 smaller">
    267267      <tr>
    268         <td class="prompt">Name</td>
     268        <th>Name</th>
    269269        <td><input <%=requiredClazz%> type="text" name="name"
    270270          value="<%=HTML.encodeTags(platform == null ? Values.getString(cc.getPropertyValue("name"), "New platform") : platform.getName())%>"
    271           size="40" maxlength="<%=Platform.MAX_NAME_LENGTH%>"></td>
     271          maxlength="<%=Platform.MAX_NAME_LENGTH%>"></td>
     272        <td></td>
    272273      </tr>
    273274      <%
     
    281282          currentRawDataType = RawDataTypes.getRawDataType(cc.getRecent("RawDataType", 0));
    282283        }
    283        
    284284        %>
    285285        <tr>
    286           <td class="prompt">External ID</td>
     286          <th>External ID</th>
    287287          <td><input <%=unchangeableClazz%> type="text" name="externalId"
    288288            value="<%=HTML.encodeTags(cc.getPropertyValue("externalId"))%>"
    289             size="40" maxlength="<%=Platform.MAX_EXTERNAL_ID_LENGTH%>"></td>
     289            maxlength="<%=Platform.MAX_EXTERNAL_ID_LENGTH%>"></td>
     290          <td></td>
    290291        </tr>
    291292        <tr>
    292           <td class="prompt">File-only</td>
     293          <th>File-only</th>
    293294          <td>
    294295            <input <%=unchangeableClazz%> type="radio" name="fileOnly" id="fileOnlyNo" value="0"
     
    297298              <%=isFileOnly ? "checked" : ""%> onclick="fileOnlyOnClick()"><label for="fileOnlyYes">yes</label>
    298299          </td>
     300          <td></td>
    299301        </tr>
    300 
    301302        <tr>
    302           <td class="prompt">Raw data type</td>
     303          <th>Raw data type</th>
    303304          <td>
    304305            <select name="rawdatatype" <%=unchangeableClazz%>>
     
    318319            </select>
    319320          </td>
     321          <td></td>
    320322        </tr>
    321323        <tr>
    322           <td class="prompt">Channels</td>
     324          <th>Channels</th>
    323325          <td><input <%=unchangeableClazz%> type="text" name="channels"
    324326            value="<%=Values.getInt(cc.getPropertyValue("channels"), 1)%>"
    325             size="12" maxlength="10"
     327            maxlength="10" style="width: 15em;"
    326328            onkeypress="return Numbers.integerOnly(event)"></td>
     329          <td></td>
    327330        </tr>
    328331        <%
    329332      }
    330333      %>
    331       <tr >
    332         <td class="prompt">Description</td>
     334      <tr class="dynamic">
     335        <th>Description</th>
    333336        <td nowrap>
    334           <textarea <%=clazz%> rows="4" cols="40" name="description"
     337          <textarea <%=clazz%> rows="6" name="description"
    335338            ><%=HTML.encodeTags(platform == null ? cc.getPropertyValue("description") : platform.getDescription())%></textarea>
    336           <a href="javascript:Main.zoom('Description', 'platform', 'description')"
    337             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     339        </td>
     340        <td style="width: 20px;">
     341          <base:icon image="zoom.png"
     342            onclick="Main.zoom('Description', 'platform', 'description')"
     343            tooltip="Edit in larger window"
     344          />
    338345        </td>
    339346      </tr>
    340347      </table>
    341       <div align=right>
    342         &nbsp;<i><base:icon image="required.gif" /> = required information</i>
    343         <%if (platform == null) {%><br>
    344         <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>
    345         <%}%>
    346         </div>
    347348    </t:tab>
    348349   
     
    351352      helpid="platform.edit.filetypes"
    352353      >
    353       <table >
    354       <tr >
    355       <td>
    356         <b>Data file types</b><br>
    357         <select name="fileTypes" size="10" multiple style="width: 20em;"
    358           onchange="fileTypesOnChange()">
    359         </select>&nbsp;<br>
    360         <input type="hidden" name="modifiedFileTypes" value="">
    361         <input type="hidden" name="removedFileTypes" value="">
    362       </td>
    363       <td>
    364         <br>
    365         <table width="150">
    366         <tr><td width="150"><base:button
    367           clazz="leftaligned buttonclass"
    368           onclick="addFileTypesOnClick()"
    369           title="Add&nbsp;data file types&hellip;"
    370           tooltip="Add more data file types to this platform"
    371           /></td></tr>
    372         <tr><td width="150"><base:button
    373           clazz="leftaligned buttonclass"
    374           onclick="removeOnClick()"
    375           title="Remove"
    376           tooltip="Remove the selected data file types"
    377         /></td></tr>
    378         </table>
    379         <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
    380           <label for="required">Required</label><br>
    381         <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
    382           <label for="multiple">Allow multiple files</label>
    383       </td>
    384       </tr>     
     354      <table class="fullform input100 smaller">
     355      <tr class="dynamic">
     356        <th>Data file types</th>
     357        <td>
     358          <div class="selectionlist">
     359            <table>
     360            <tr>
     361              <td>
     362                <select name="fileTypes" size="15" multiple onchange="fileTypesOnChange()">
     363                </select>
     364                <input type="hidden" name="modifiedFileTypes" value="">
     365                <input type="hidden" name="removedFileTypes" value="">
     366              </td>
     367              <td style="vertical-align: top;">
     368                <base:buttongroup vertical="true">
     369                  <base:button
     370                    subclass="leftaligned"
     371                    style="width: 14em;"
     372                    onclick="addFileTypesOnClick()"
     373                    title="Add&nbsp;data file types&hellip;"
     374                    tooltip="Add more data file types to this platform"
     375                  />
     376                  <base:button
     377                    subclass="leftaligned"
     378                    style="width: 14em;"
     379                    onclick="removeOnClick()"
     380                    title="Remove"
     381                    tooltip="Remove the selected data file types"
     382                  />
     383                </base:buttongroup>
     384                <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
     385                  <label for="required">Required</label><br>
     386                <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
     387                  <label for="multiple">Allow multiple files</label>
     388              </td>
     389            </tr>
     390            </table>
     391          </div>
     392        </td>
     393      </tr>
    385394      </table>
    386395    </t:tab>
     396    </t:tabcontrol>
     397    </form>
    387398   
    388     </t:tabcontrol>
    389 
    390     <table align="center">
    391     <tr>
    392       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    393       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    394     </tr>
    395     </table>
    396     </form>
     399    <div class="legend">
     400      <base:icon image="required.gif" /> = required information
     401      <%if (platform == null) {%><br>
     402        <base:icon image="unchangeable.gif" /> = can't be changed later
     403      <%}%>
     404    </div>
     405
     406    <base:buttongroup subclass="dialogbuttons">
     407      <base:button onclick="saveSettings()" title="Save" />
     408      <base:button onclick="window.close()" title="Cancel" />
     409    </base:buttongroup>
    397410  </base:body>
    398411  </base:page>
  • trunk/www/admin/platforms/variants/edit_variant.jsp

    r5908 r5922  
    262262  </base:head>
    263263  <base:body onload="init()">
    264     <p>
     264    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    265265    <form action="index.jsp?ID=<%=ID%>" method="post" name="variant" onsubmit="return false;">
    266266    <input type="hidden" name="cmd" value="UpdateItem">
    267267    <input type="hidden" name="platform_id" value="<%=platformId%>">
    268268
    269     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    270     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*260)+"px;"%>"
     269    <t:tabcontrol id="settings"
     270      subclass="content dialogtabcontrol"
    271271      position="bottom" active="<%=tabId%>" remember="<%=tabId == null && variant != null%>"
    272272      extensions="<%=invoker%>">
    273273    <t:tab id="info" title="Variant" validate="validateVariant()" helpid="platformvariant.edit">
    274       <table class="form" cellspacing="0">
     274      <table class="fullform input100 smaller">
    275275      <tr>
    276         <td class="prompt">Name</td>
     276        <th>Name</th>
    277277        <td><input <%=requiredClazz%> type="text" name="name"
    278278          value="<%=HTML.encodeTags(variant == null ?
    279279              Values.getString(cc.getPropertyValue("name"), "New " + platform.getName() + " variant") :
    280280              variant.getName())%>"
    281           size="40" maxlength="<%=PlatformVariant.MAX_NAME_LENGTH%>"></td>
     281          maxlength="<%=PlatformVariant.MAX_NAME_LENGTH%>"></td>
     282        <td></td>
    282283      </tr>
    283284      <%
     
    293294        %>
    294295        <tr>
    295           <td class="prompt">External ID</td>
     296          <th>External ID</th>
    296297          <td><input <%=unchangeableClazz%> type="text" name="externalId"
    297298            value="<%=HTML.encodeTags(Values.getString(cc.getPropertyValue("externalId"), platform.getExternalId() + ".new"))%>"
    298             size="40" maxlength="<%=PlatformVariant.MAX_EXTERNAL_ID_LENGTH%>"></td>
     299            maxlength="<%=PlatformVariant.MAX_EXTERNAL_ID_LENGTH%>"></td>
     300          <td></td>
    299301        </tr>
    300302        <tr>
    301           <td class="prompt">File-only</td>
     303          <th>File-only</th>
    302304          <td>
    303305            <input <%=unchangeableClazz%> type="radio" name="fileOnly" id="fileOnlyNo" value="0"
     
    306308              <%=isFileOnly ? "checked" : ""%> onclick="fileOnlyOnClick()"><label for="fileOnlyYes">yes</label>
    307309          </td>
     310          <td></td>
    308311        </tr>
    309 
    310312        <tr>
    311           <td class="prompt">Raw data type</td>
     313          <th>Raw data type</th>
    312314          <td>
    313315            <select name="rawdatatype" <%=unchangeableClazz%>>
     
    327329            </select>
    328330          </td>
     331          <td></td>
    329332        </tr>
    330333        <tr>
    331           <td class="prompt">Channels</td>
     334          <th>Channels</th>
    332335          <td><input <%=unchangeableClazz%> type="text" name="channels"
    333336            value="<%=Values.getInt(cc.getPropertyValue("channels"), currentRawDataType == null ? 1 : currentRawDataType.getChannels())%>"
    334             size="12" maxlength="10"
     337            maxlength="10" style="width: 15em;"
    335338            onkeypress="return Numbers.integerOnly(event)"></td>
     339          <td></td>
    336340        </tr>
    337341        <%
    338342      }
    339343      %>
    340       <tr >
    341         <td class="prompt">Description</td>
    342         <td nowrap>
    343           <textarea <%=clazz%> rows="4" cols="40" name="description"
     344      <tr class="dynamic">
     345        <th>Description</th>
     346        <td>
     347          <textarea <%=clazz%> rows="6" name="description"
    344348            ><%=HTML.encodeTags(variant == null ? cc.getPropertyValue("description") : variant.getDescription())%></textarea>
    345           <a href="javascript:Main.zoom('Description', 'variant', 'description')"
    346             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     349        </td>
     350        <td style="width: 20px;">
     351          <base:icon image="zoom.png"
     352            onclick="Main.zoom('Description', 'variant', 'description')"
     353            tooltip="Edit in larger window"
     354          />
    347355        </td>
    348356      </tr>
    349357      </table>
    350       <div align=right>
    351         &nbsp;<i><base:icon image="required.gif" /> = required information</i>
    352         <%if (variant == null) {%><br>
    353         <i><base:icon image="unchangeable.gif" /> = can't be changed later</i>
    354         <%}%>
    355         </div>
    356358    </t:tab>
    357359    <t:tab id="fileTypes" title="Data file types"
     
    359361      helpid="platformvariant.edit.filetypes"
    360362      >
    361       <table >
    362       <tr >
    363       <td>
    364         <b>Data file types</b><br>
    365         <select name="fileTypes" size="10" multiple style="width: 20em;"
    366           onchange="fileTypesOnChange()">
    367         </select>
    368         <input type="hidden" name="modifiedFileTypes" value="">
    369         <input type="hidden" name="removedFileTypes" value="">
    370       </td>
    371       <td>
    372         <br>
    373         <table width="150">
    374         <tr><td width="150"><base:button
    375           clazz="leftaligned buttonclass"
    376           onclick="addFileTypesOnClick()"
    377           title="Add&nbsp;data file types&hellip;"
    378           tooltip="Add more data file types to this platform variant"
    379           /></td></tr>
    380         <tr><td width="150"><base:button
    381           clazz="leftaligned buttonclass"
    382           onclick="removeOnClick()"
    383           title="Remove"
    384           tooltip="Remove the selected data file types"
    385         /></td></tr>
    386         </table>
    387         <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
    388           <label for="required">Required</label><br>
    389         <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
    390           <label for="multiple">Allow multiple files</label>
    391       </td>
    392       </tr>     
     363      <table class="fullform input100 smaller">
     364      <tr class="dynamic">
     365        <th>Data file types</th>
     366        <td>
     367          <div class="selectionlist">
     368            <table>
     369            <tr>
     370              <td>
     371                <select name="fileTypes" size="15" multiple onchange="fileTypesOnChange()">
     372                </select>
     373                <input type="hidden" name="modifiedFileTypes" value="">
     374                <input type="hidden" name="removedFileTypes" value="">
     375              </td>
     376              <td style="vertical-align: top;">
     377                <base:buttongroup vertical="true">
     378                  <base:button
     379                    subclass="leftaligned"
     380                    style="width: 14em;"
     381                    onclick="addFileTypesOnClick()"
     382                    title="Add&nbsp;data file types&hellip;"
     383                    tooltip="Add more data file types to this platform"
     384                  />
     385                  <base:button
     386                    subclass="leftaligned"
     387                    style="width: 14em;"
     388                    onclick="removeOnClick()"
     389                    title="Remove"
     390                    tooltip="Remove the selected data file types"
     391                  />
     392                </base:buttongroup>
     393                <input type="checkbox" id="required" name="required" value="1" onchange="requiredOnClick()">
     394                  <label for="required">Required</label><br>
     395                <input type="checkbox" id="multiple" name="multiple" value="1" onchange="multipleOnClick()">
     396                  <label for="multiple">Allow multiple files</label>
     397              </td>
     398            </tr>
     399            </table>
     400          </div>
     401        </td>
     402      </tr>
    393403      </table>
    394404    </t:tab>   
    395405    </t:tabcontrol>
    396 
    397     <table align="center">
    398     <tr>
    399       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    400       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    401     </tr>
    402     </table>
    403406    </form>
     407   
     408    <div class="legend">
     409      <base:icon image="required.gif" /> = required information
     410      <%if (variant == null) {%><br>
     411        <base:icon image="unchangeable.gif" /> = can't be changed later
     412      <%}%>
     413    </div>
     414
     415    <base:buttongroup subclass="dialogbuttons">
     416      <base:button onclick="saveSettings()" title="Save" />
     417      <base:button onclick="window.close()" title="Cancel" />
     418    </base:buttongroup>
    404419  </base:body>
    405420  </base:page>
  • trunk/www/admin/platforms/variants/list_variants.jsp

    r5910 r5922  
    193193    %>
    194194
    195     <t:tabcontrol id="main" active="variant" switch="switchTab" notabs="<%=platform == null %>">
     195    <t:tabcontrol id="main" active="variant" switch="switchTab" >
    196196    <t:tab id="properties" title="Properties" visible="<%=platform != null %>"/>
    197197   
  • trunk/www/admin/pluginconfigurations/edit_configuration.jsp

    r5908 r5922  
    241241  </base:head>
    242242  <base:body onload="init()">
    243     <p>
     243    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    244244    <form action="index.jsp?ID=<%=ID%>" method="post" name="configuration" onsubmit="return false;">
    245245    <input type="hidden" name="cmd" value="UpdateItem">
     
    247247    <input type="hidden" name="copyfrom" value="<%=originalConfiguration != null ? originalConfiguration.getId() : 0%>">
    248248
    249     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    250     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"
     249    <t:tabcontrol id="settings"
     250      subclass="content dialogtabcontrol"
    251251      position="bottom" remember="<%=configuration != null%>" switch="switchTab"
    252252      extensions="<%=invoker%>">
    253253    <t:tab id="info" title="Configuration" validate="validateConfiguration()" helpid="pluginconfiguration.edit">
    254       <table class="form" cellspacing=0>
    255       <tr >
    256         <td class="prompt">Plugin</td>
     254      <table class="fullform input100 smaller">
     255      <tr>
     256        <th>Plugin</th>
    257257        <td>
    258258          <%
     
    279279          %>
    280280        </td>
     281        <td></td>
    281282      </tr>
    282283      <tr>
    283         <td class="prompt">Name</td>
     284        <th>Name</th>
    284285        <td><input <%=requiredClazz%> type="text" name="name"
    285286          value="<%=HTML.encodeTags(name)%>"
    286           size="40" maxlength="<%=PluginConfiguration.MAX_NAME_LENGTH%>"></td>
     287          maxlength="<%=PluginConfiguration.MAX_NAME_LENGTH%>"></td>
     288        <td></td>
    287289      </tr>
    288      
    289       <tr >
    290         <td class="prompt">Description</td>
    291         <td nowrap>
    292           <textarea <%=clazz%> rows="4" cols="40" name="description"
     290      <tr class="dynamic">
     291        <th>Description</th>
     292        <td>
     293          <textarea <%=clazz%> rows="6" name="description"
    293294            ><%=HTML.encodeTags(description)%></textarea>
    294           <a href="javascript:Main.zoom('Description', 'configuration', 'description')"
    295             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     295        </td>
     296        <td style="width: 20px;">
     297          <base:icon image="zoom.png"
     298            onclick="Main.zoom('Description', 'configuration', 'description')"
     299            tooltip="Edit in larger window"
     300          />
    296301        </td>
    297302      </tr>
    298303      </table>
    299       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    300304    </t:tab>
    301305   
    302306    <t:tab id="annotations" title="Annotations"
    303307      helpid="annotations.edit" tooltip="Enter values for annotations"
    304       visible="<%=currentPlugin != null && currentPlugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>">
    305       <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp"
    306         width="100%"  height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0
    307         marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe>
    308     </t:tab>
     308      visible="<%=currentPlugin != null && currentPlugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"><iframe
     309      name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp"
     310      style="width: 100%; height: 100%;"></iframe></t:tab>
     311    </t:tabcontrol>
     312    </form>
    309313   
    310     </t:tabcontrol>
    311 
    312     <table align="center">
    313     <tr>
    314       <td><base:button onclick="saveSettings(0)" title="Save" /></td>
    315       <td><base:button onclick="saveSettings(1)"
     314    <div class="legend">
     315      <base:icon image="required.gif" /> = required information
     316    </div>
     317
     318    <base:buttongroup subclass="dialogbuttons">
     319      <base:button onclick="saveSettings()" title="Save" />
     320      <base:button onclick="saveSettings(1)"
    316321        image="runplugin.gif" title="Save and configure"
    317         visible="<%=currentPlugin == null || currentPlugin.supportsConfigurations()%>" /></td>
    318       <td><base:button onclick="window.close()" title="Cancel" /></td>
    319     </tr>
    320     </table>
    321     </form>
     322        visible="<%=currentPlugin == null || currentPlugin.supportsConfigurations()%>" />
     323      <base:button onclick="window.close()" title="Cancel" />
     324    </base:buttongroup>
    322325  </base:body>
    323326  </base:page>
  • trunk/www/admin/pluginconfigurations/list_configurations.jsp

    r5910 r5922  
    220220    function configurePlugin(itemId)
    221221    {
    222       Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 800, 600);
     222      Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 750, 500);
    223223    }
    224224    </script>
  • trunk/www/admin/pluginconfigurations/view_configuration.jsp

    r5910 r5922  
    170170    function configure()
    171171    {
    172       Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id=<%=itemId%>', 'ConfigurePlugin', 800, 600);
     172      Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id=<%=itemId%>', 'ConfigurePlugin', 750, 500);
    173173    }
    174174    function switchTab(tabControlId, tabId)
  • trunk/www/admin/plugindefinitions/edit_plugin.jsp

    r5905 r5922  
    698698  </base:head>
    699699  <base:body onload="init()">
    700     <p>
     700    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    701701    <form action="index.jsp?ID=<%=ID%>" method="post" name="plugin" onsubmit="return false;">
    702702    <input type="hidden" name="cmd" value="UpdateItem">
    703703
    704     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    705     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*370)+"px;"%>"
     704    <t:tabcontrol id="settings"
     705      subclass="content dialogtabcontrol"
    706706      position="bottom" remember="<%=plugin != null%>"
    707707      active="<%=selectedAgentId == -1 ? null : "agents" %>" switch="switchTab"
    708708      extensions="<%=invoker%>">
    709709    <t:tab id="info" title="Plugin" validate="validatePlugin()" helpid="plugindefinition.edit">
    710       <table class="form" cellspacing=0>
     710      <table class="fullform input100">
    711711      <tr>
    712         <td class="prompt">Name</td>
     712        <th>Name</th>
    713713        <td><%=HTML.encodeTags(plugin == null ? Values.getString(cc.getPropertyValue("name"), "New plugin") : plugin.getName())%></td>
     714        <td></td>
    714715      </tr>
    715716      <tr>
    716         <td class="prompt">Class</td>
     717        <th>Class</th>
    717718        <td><input <%=requiredClazz%> type="text" name="className"
    718719          value="<%=HTML.encodeTags(plugin == null ? cc.getPropertyValue("className") : plugin.getClassName())%>"
    719           size="50" maxlength="<%=PluginDefinition.MAX_CLASSNAME_LENGTH%>"></td>
     720          maxlength="<%=PluginDefinition.MAX_CLASSNAME_LENGTH%>"></td>
     721        <td></td>
    720722      </tr>
    721723     
    722724      <tr>
    723         <td class="prompt">JAR file</td>
     725        <th>JAR file</th>
    724726        <td><input <%=clazz%> type="text" name="jarFile"
    725727          value="<%=HTML.encodeTags(plugin == null ? cc.getPropertyValue("jarFile") : plugin.getJarFile())%>"
    726           size="50" maxlength="<%=PluginDefinition.MAX_JARFILE_LENGTH%>">
     728          maxlength="<%=PluginDefinition.MAX_JARFILE_LENGTH%>">
    727729        </td>
     730        <td></td>
    728731      </tr>
    729732      <tr>
    730         <td class="prompt">Max memory</td>
    731         <td><input <%=clazz%> type="text" name="maxMemory"
     733        <th>Max memory</th>
     734        <td><input <%=clazz%> type="text" name="maxMemory" style="width: 15em;"
    732735          value="<%=Values.formatBytes(plugin == null ? Values.parseBytes(cc.getPropertyValue("maxMemory"), null) : plugin.getMaxMemory())%>"
    733           size="16" maxlength="16"> (Use KB, MB or GB to specify units)</td>
     736          maxlength="16"> (Use KB, MB or GB to specify units)</td>
     737        <td></td>
    734738      </tr>
    735      
    736739      <tr>
    737         <td class="prompt">Trusted</td>
     740        <th>Trusted</th>
    738741        <td>
    739742          <input type="radio" name="trusted" id="trustedNo" value="0"
     
    742745            <%=isTrusted ? "checked" : ""%>><label for="trustedYes">yes</label>
    743746        </td>
     747        <td></td>
    744748      </tr>
    745      
    746749      <tr>
    747         <td class="prompt">Allow immediate exection</td>
     750        <th>Allow immediate<br>exection</th>
    748751        <td>
    749752          <input type="radio" name="allow_immediate_execution" id="immediateNo" value="0"
     
    761764          %>
    762765        </td>
    763       </tr>
    764       </table>
    765       <%
    766       if (warning != null)
    767       {
    768         %>
    769         <div class="error"><%=warning%></div>
    770         <%
    771       }
    772       %>     
    773       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    774     </t:tab>
    775    
    776     <t:tab id="permissions" title="Permissions"
    777       tooltip="Set permissions for this plugindefintion" helpid="plugindefinition.edit.permissions">
    778     <table class="form">
    779       <tr> 
    780         <td class="prompt">Use permissions</td>
     766        <td></td>
     767      </tr>
     768      <tr class="dynamic">
     769        <th></th>
    781770        <td>
    782           <input type="radio" name="use_permissions" id="permissionsYes" value="1"
    783             <%=usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsYes">yes</label>
    784           <input type="radio" name="use_permissions" id="permissionsNo" value="0"
    785             <%=!usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsNo">no</label>
    786771          <%
    787           if (plugin == null)
     772          if (warning != null)
    788773          {
    789774            %>
    790             <input type="radio" name="use_permissions" id="permissionsAuto" value="2"
    791               onclick="usePermissionsOnClick()"><label for="permissionsAuto">if requested by plugin</label>
     775            <div class="messagecontainer error"><%=warning%></div>
    792776            <%
    793777          }
    794778          %>
    795779        </td>
    796       </tr>
    797     </table>
    798 
    799     <table>
    800     <tr >
    801     <td>
    802       <b>Item types</b><br>
    803       <select name="items" size="14" onChange="itemsOnClick()" multiple>
    804       <%
    805       Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups();
    806       for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet())
    807       {
    808         String name = entry.getKey();
    809         List<Item> items = entry.getValue();
    810         %>
    811         <option class="selectoptionheader" value="">-- <%=name%>
    812         <%
    813         for (Item item : items)
    814         {
    815           %>
    816           <%=getOption(dc, plugin, item)%>
    817           <%
    818         }
    819       }
    820       %>
    821       </select>
    822     </td>
    823     <td>
    824       <table>
    825       <tr ><td>
    826         <b>Always grant</b><br>
    827         <input type="checkbox" name="grant_create" onClick="permissionOnClick(this)">Create<br>
    828         <input type="checkbox" name="grant_read" onClick="permissionOnClick(this)">Read<br>
    829         <input type="checkbox" name="grant_use" onClick="permissionOnClick(this)">Use<br>
    830         <input type="checkbox" name="grant_write" onClick="permissionOnClick(this)">Write<br>
    831         <input type="checkbox" name="grant_delete" onClick="permissionOnClick(this)">Delete<br>
    832         <input type="checkbox" name="grant_set_owner" onClick="permissionOnClick(this)">Set owner<br>
    833         <input type="checkbox" name="grant_set_permission" onClick="permissionOnClick(this)">Set permission
    834       </td>
    835       <td>
    836         <b>Always deny</b><br>
    837         <input type="checkbox" name="deny_create" onClick="permissionOnClick(this)">Create<br>
    838         <input type="checkbox" name="deny_read" onClick="permissionOnClick(this)">Read<br>
    839         <input type="checkbox" name="deny_use" onClick="permissionOnClick(this)">Use<br>
    840         <input type="checkbox" name="deny_write" onClick="permissionOnClick(this)">Write<br>
    841         <input type="checkbox" name="deny_delete" onClick="permissionOnClick(this)">Delete<br>
    842         <input type="checkbox" name="deny_set_owner" onClick="permissionOnClick(this)">Set owner<br>
    843         <input type="checkbox" name="deny_set_permission" onClick="permissionOnClick(this)">Set permission
    844       </td>
    845       <%
    846       if (requestedPermissions != null && requestedPermissions.size() > 0)
    847       {
    848         %>
    849         <td style="background: #f8f8e0; border: 1px solid gray;">
    850         <b>Requested by plugin</b><br>
    851         <table>
    852         <%
    853         for (Permissions pp : requestedPermissions)
    854         {
    855           Item ppType = pp.getItemType();
    856           Set<Permission> always = Permission.expand(pp.getAlwaysGranted());
    857           Set<Permission> maybe = Permission.expand(pp.getMaybeGranted());
    858           Set<Permission> defined = ppType.getDefinedPermissions();
    859           if (defined != null)
    860           {
    861             StringBuilder sb = new StringBuilder();
    862             sb.append("[");
    863             appendPermissionLetter(sb, Permission.CREATE, "C", defined, always, maybe);
    864             appendPermissionLetter(sb, Permission.READ, "R", defined, always, maybe);
    865             appendPermissionLetter(sb, Permission.USE, "U", defined, always, maybe);
    866             appendPermissionLetter(sb, Permission.WRITE, "W", defined, always, maybe);
    867             appendPermissionLetter(sb, Permission.DELETE, "D", defined, always, maybe);
    868             appendPermissionLetter(sb, Permission.SET_OWNER, "O", defined, always, maybe);
    869             appendPermissionLetter(sb, Permission.SET_PERMISSION, "P", defined, always, maybe);
    870             sb.append("]");
    871             %>
    872             <tr>
    873               <td><%=ppType%></td>
    874               <td><%=sb.toString()%></td>
    875             </tr>
    876             <%
    877           }
    878         }
    879         %>
    880         </table>
    881         <table><tr><td>
    882         <base:button title="Use requested permissions" onclick="setRequestedPermissions()"
    883           tooltip="Use the permissions requested by the plugin." />
    884         </td></tr></table>
    885         </td>
    886         <%
    887       }
    888       %>
     780        <td></td>
    889781      </tr>
    890782      </table>
    891       <b>Capital letters</b> = Permission is always granted<br>
    892       <b>Small letters</b> = Permission is only granted if logged in user
    893         has that permission
    894      
     783    </t:tab>
     784   
     785    <t:tab id="permissions" title="Permissions"
     786      tooltip="Set permissions for this plugindefintion" helpid="plugindefinition.edit.permissions">
     787      <table class="fullform input100">
     788        <tr> 
     789          <th>Use permissions</th>
     790          <td>
     791            <input type="radio" name="use_permissions" id="permissionsYes" value="1"
     792              <%=usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsYes">yes</label>
     793            <input type="radio" name="use_permissions" id="permissionsNo" value="0"
     794              <%=!usePermissions ? "checked" : ""%> onclick="usePermissionsOnClick()"><label for="permissionsNo">no</label>
     795            <%
     796            if (plugin == null)
     797            {
     798              %>
     799              <input type="radio" name="use_permissions" id="permissionsAuto" value="2"
     800                onclick="usePermissionsOnClick()"><label for="permissionsAuto">if requested by plugin</label>
     801              <%
     802            }
     803            %>
     804          </td>
     805        </tr>
     806        <tr class="dynamic">
     807          <th>Item types</th>
     808          <td>
     809            <div class="selectionlist">
     810              <table>
     811              <tr>
     812              <td>
     813                <select name="items" size="20" onChange="itemsOnClick()" multiple>
     814                <%
     815                Map<String, List<Item>> permissionGroups = PermissionUtil.getPermissionGroups();
     816                for (Map.Entry<String, List<Item>> entry : permissionGroups.entrySet())
     817                {
     818                  String name = entry.getKey();
     819                  List<Item> items = entry.getValue();
     820                  %>
     821                  <option class="selectoptionheader" value="">-- <%=name%>
     822                  <%
     823                  for (Item item : items)
     824                  {
     825                    %>
     826                    <%=getOption(dc, plugin, item)%>
     827                    <%
     828                  }
     829                }
     830                %>
     831                </select>
     832                <b>Capital letters</b> = Permission is always granted<br>
     833                <b>Small letters</b> = Permission is only granted if logged in user
     834                  has that permission
     835              </td>
     836              <td style="vertical-align: top;">
     837                <table style="width: 20em;">
     838                <tr>
     839                <td>
     840                  <b>Always grant</b><br>
     841                  <input type="checkbox" name="grant_create" id="grant_create" onClick="permissionOnClick(this)"><label for="grant_create">Create</label><br>
     842                  <input type="checkbox" name="grant_read" id="grant_read" onClick="permissionOnClick(this)"><label for="grant_read">Read</label><br>
     843                  <input type="checkbox" name="grant_use" id="grant_use" onClick="permissionOnClick(this)"><label for="grant_use">Use</label><br>
     844                  <input type="checkbox" name="grant_write" id="grant_write" onClick="permissionOnClick(this)"><label for="grant_write">Write</label><br>
     845                  <input type="checkbox" name="grant_delete" id="grant_delete" onClick="permissionOnClick(this)"><label for="grant_delete">Delete</label><br>
     846                  <input type="checkbox" name="grant_set_owner" id="grant_set_owner" onClick="permissionOnClick(this)"><label for="grant_set_owner">Set owner</label><br>
     847                  <input type="checkbox" name="grant_set_permission" id="grant_set_permission" onClick="permissionOnClick(this)"><label for="grant_set_permission">Set permission</label>
     848                </td>
     849                <td>
     850                  <b>Always deny</b><br>
     851                  <input type="checkbox" name="deny_create" id="deny_create" onClick="permissionOnClick(this)"><label for="deny_create">Create</label><br>
     852                  <input type="checkbox" name="deny_read" id="deny_read" onClick="permissionOnClick(this)"><label for="deny_read">Read</label><br>
     853                  <input type="checkbox" name="deny_use" id="deny_use" onClick="permissionOnClick(this)"><label for="deny_use">Use</label><br>
     854                  <input type="checkbox" name="deny_write" id="deny_write" onClick="permissionOnClick(this)"><label for="deny_write">Write</label><br>
     855                  <input type="checkbox" name="deny_delete" id="deny_delete" onClick="permissionOnClick(this)"><label for="deny_delete">Delete</label><br>
     856                  <input type="checkbox" name="deny_set_owner" id="deny_set_owner" onClick="permissionOnClick(this)"><label for="deny_set_owner">Set owner</label><br>
     857                  <input type="checkbox" name="deny_set_permission" id="deny_set_permission" onClick="permissionOnClick(this)"><label for="deny_set_permission">Set permission</label>
     858                </td>
     859                </tr>
     860                <tr>
     861                <td colspan="2">
     862                  <div class="messagecontainer help" style="margin: 0.5em 0px 0px 0px; height: 12em; overflow: auto;">
     863                    <b>Requested by plugin</b><br>
     864                    <%
     865                    if (requestedPermissions != null && requestedPermissions.size() > 0)
     866                    {
     867                      %>
     868                      <table>
     869                      <%
     870                      for (Permissions pp : requestedPermissions)
     871                      {
     872                        Item ppType = pp.getItemType();
     873                        Set<Permission> always = Permission.expand(pp.getAlwaysGranted());
     874                        Set<Permission> maybe = Permission.expand(pp.getMaybeGranted());
     875                        Set<Permission> defined = ppType.getDefinedPermissions();
     876                        if (defined != null)
     877                        {
     878                          StringBuilder sb = new StringBuilder();
     879                          sb.append("[");
     880                          appendPermissionLetter(sb, Permission.CREATE, "C", defined, always, maybe);
     881                          appendPermissionLetter(sb, Permission.READ, "R", defined, always, maybe);
     882                          appendPermissionLetter(sb, Permission.USE, "U", defined, always, maybe);
     883                          appendPermissionLetter(sb, Permission.WRITE, "W", defined, always, maybe);
     884                          appendPermissionLetter(sb, Permission.DELETE, "D", defined, always, maybe);
     885                          appendPermissionLetter(sb, Permission.SET_OWNER, "O", defined, always, maybe);
     886                          appendPermissionLetter(sb, Permission.SET_PERMISSION, "P", defined, always, maybe);
     887                          sb.append("]");
     888                          %>
     889                          <tr>
     890                            <td><%=ppType%>&nbsp;</td>
     891                            <td><%=sb.toString()%></td>
     892                          </tr>
     893                          <%
     894                        }
     895                      }
     896                      %>
     897                      </table>
     898                      <%
     899                    }
     900                    else
     901                    {
     902                      %>
     903                      This plug-in doesn't request any permissions.
     904                      <%
     905                    }
     906                    %>
     907                    </div>
     908                    <base:buttongroup>
     909                      <base:button title="Use requested permissions" onclick="setRequestedPermissions()"
     910                        tooltip="Use the permissions requested by the plugin."
     911                        visible="<%=requestedPermissions != null && requestedPermissions.size() > 0%>"/>
     912                    </base:buttongroup>
     913                  </td>
     914                </tr>
     915              </tr>
     916              </table>
     917            </div>
     918        </td>
     919      </tr>
     920      </table>
    895921    </td>
    896922    </tr>
    897923    </table>
    898    
    899    
    900924    </t:tab>
    901    
    902    
    903925    <t:tab id="agents" title="Job agents" helpid="plugindefinition.jobagents">
    904       <table class="form">
    905       <tr >
    906       <td class="prompt">Run this plugin on</td>
    907       <td>
    908         <input type="checkbox" name="use_internal_jobqueue" value="1"
    909           <%=plugin == null || plugin.getUseInternalJobQueue() ? "checked" : "" %>>
    910           internal job queue
    911       </td>
     926      <table class="fullform input100">
     927      <tr>
     928        <th><label for="use_internal_jobqueue">Use internal job queue</label></td>
     929        <td>
     930          <input type="checkbox" name="use_internal_jobqueue" id="use_internal_jobqueue" value="1"
     931            <%=plugin == null || plugin.getUseInternalJobQueue() ? "checked" : "" %>>
     932        </td>
    912933      </tr>
    913       <tr>
    914       <td>
    915         <select name="agents" size="12" multiple style="width: 15em;"
    916           onclick="agentsOnClick()">
    917         </select>
    918         <input type="hidden" name="removeAgents" value="">
    919         <input type="hidden" name="allAgents" value="">
    920       </td>
    921       <td>
    922         <table width="150">
    923         <tr><td><base:button
    924           clazz="leftaligned buttonclass"
    925           onclick="addAgentsOnClick()"
    926           title="Add&nbsp;job&nbsp;agents&hellip;" 
    927           tooltip="Add job agents to this plugin"
    928         /></td></tr>
    929         <tr><td><base:button
    930           clazz="leftaligned buttonclass"
    931           onclick="removeOnClick()"
    932           title="Remove"
    933           tooltip="Remove the selected job agents"
    934         /></td></tr>
    935         </table>
    936 
    937         <br>
    938         <div id="agentsettings" style="display: none;">
    939         <b>Settings for the selected job agent</b>
    940         <table border="0" cellspacing="0" class="form">
     934      <tr class="big">
     935        <th>Job agents</th>
     936        <td>
     937          <div class="selectionlist">
     938            <table>
     939            <tr>
     940              <td>
     941                <select name="agents" size="15" multiple onclick="agentsOnClick()">
     942                </select>
     943                <input type="hidden" name="removeAgents" value="">
     944                <input type="hidden" name="allAgents" value="">
     945              </td>
     946              <td style="vertical-align: top;">
     947                <base:buttongroup vertical="true">
     948                  <base:button
     949                    subclass="leftaligned"
     950                    style="width: 14em;"
     951                    onclick="addAgentsOnClick()"
     952                    title="Add&nbsp;job&nbsp;agents&hellip;" 
     953                    tooltip="Add job agents to this plugin"
     954                  />
     955                  <base:button
     956                    subclass="leftaligned"
     957                    style="width: 14em;"
     958                    onclick="removeOnClick()"
     959                    title="Remove"
     960                    tooltip="Remove the selected job agents"
     961                  />
     962                </base:buttongroup>
     963              </td>
     964            </tr>
     965            </table>
     966          </div>
     967        </td>
     968      </tr>
     969      <tbody id="agentsettings" style="display: none;">
    941970        <tr>
    942           <td class="prompt">Max memory</td>
     971          <th colspan="2" class="bottomborder" style="border-top: 1px solid #A0A0A0;">Settings for the selected job agent</th>
     972        </tr>
     973        <tr>
     974          <th class="subprompt">Max memory</th>
    943975          <td>
    944             <input type="text" name="agentMaxMemory" class="text" size="16"
     976            <input type="text" name="agentMaxMemory" class="text" style="width: 15em;"
    945977              maxlength="16"
    946978              onblur="maxMemoryOnBlur()">
     
    949981        </tr>
    950982        <tr>
    951           <td style="padding-left: 10px;">-use default</td>
     983          <th class="subprompt"></th>
    952984          <td>
    953             <input type="checkbox" name="useDefaultMaxMemory"
     985            <input type="checkbox" name="useDefaultMaxMemory" id="useDefaultMaxMemory"
    954986              onclick="useDefaultMaxMemoryOnClick()">
    955             (<span id="defaultMaxMemory"></span>)
     987            <label for="useDefaultMaxMemory">Use default</label> (<span id="defaultMaxMemory"></span>)
    956988          </td>
    957989        </tr>
    958990        <tr>
    959           <td class="prompt">Trusted</td>
     991          <th class="subprompt">Trusted</th>
    960992          <td>
    961993            <input type="radio" name="agentTrusted" id="agentTrustedDefault" value=""
     
    9681000        </tr>
    9691001        <tr>
    970           <td class="prompt">Priority boost</td>
     1002          <th class="subprompt">Priority boost</th>
    9711003          <td>
    972             <input type="text" name="agentPriorityBoost" class="text" size="12"
     1004            <input type="text" name="agentPriorityBoost" class="text" style="width: 15em;"
    9731005              maxlength="10" onkeypress="return Numbers.integerOnly(event)"
    9741006              onblur="priorityBoostOnBlur()">
    9751007          </td>
    9761008        </tr>
    977         </table>
    978         </div>
    979       </td>
     1009      </tbody>
     1010      <tr class="dynamic">
     1011        <th></th>
     1012        <td></td>
    9801013      </tr>
    9811014      </table>
     
    9841017    <t:tab id="annotations" title="Annotations"
    9851018      helpid="annotations.edit" tooltip="Enter values for annotations"
    986       visible="<%=plugin != null && !plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>">
    987       <iframe name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp"
    988         width="100%"  height="<%=(int)(scale*370)%>" frameborder=0 vspace=0 hspace=0
    989         marginwidth=0 marginheight=0 scrolling="auto" style="overflow: visible"></iframe>
    990     </t:tab>
    991    
     1019      visible="<%=plugin != null && !plugin.requiresConfiguration() && plugin.supports("net.sf.basedb.core.plugin.AnnotationSetterPlugin")%>"><iframe
     1020      name="annotations" id="idAnnotations" src="../../common/annotations/wait.jsp"
     1021      style="width: 100%; height: 100%;"></iframe></t:tab>   
    9921022    </t:tabcontrol>
    993 
    994     <table align="center">
    995     <tr>
    996       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    997       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    998     </tr>
    999     </table>
    10001023    <%
    10011024    ItemResultList<RoleKey> roleKeys = roleKeyQuery.list(dc);
     
    10141037    %>
    10151038    </form>
     1039   
     1040    <div class="legend">
     1041      <base:icon image="required.gif" /> = required information
     1042    </div>
     1043
     1044    <base:buttongroup subclass="dialogbuttons">
     1045      <base:button onclick="saveSettings()" title="Save" />
     1046      <base:button onclick="window.close()" title="Cancel" />
     1047    </base:buttongroup>
     1048   
    10161049  </base:body>
    10171050  </base:page>
  • trunk/www/admin/plugindefinitions/view_plugin.jsp

    r5918 r5922  
    195195    function configurePlugin(itemId)
    196196    {
    197       Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 800, 600);
     197      Main.openPopup('../../common/plugin/index.jsp?ID=<%=ID%>&cmd=ConfigurePlugin&pluginconfiguration_id='+itemId, 'ConfigurePlugin', 750, 500);
    198198    }
    199199    function configureAgent(agentId)
  • trunk/www/admin/plugintypes/edit_plugintype.jsp

    r5908 r5922  
    128128  </base:head>
    129129  <base:body onload="init()">
    130     <p>
     130    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    131131    <form action="index.jsp?ID=<%=ID%>" method="post" name="pluginType" onsubmit="return false;">
    132132    <input type="hidden" name="cmd" value="UpdateItem">
    133133
    134     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    135     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*220)+"px;"%>"
     134    <t:tabcontrol id="settings"
     135      subclass="content dialogtabcontrol"
    136136      position="bottom" remember="<%=pluginType != null%>"
    137137      extensions="<%=invoker%>">
    138138    <t:tab id="info" title="Plugin type" validate="validatePluginType()" helpid="plugintype.edit">
    139       <table class="form" cellspacing=0>
     139      <table class="fullform input100 smaller">
    140140      <tr>
    141         <td class="prompt">Name</td>
     141        <th>Name</th>
    142142        <td><input <%=requiredClazz%> type="text" name="name"
    143143          value="<%=HTML.encodeTags(pluginType == null ?
    144144            Values.getString(cc.getPropertyValue("name"), "New plugin type") : pluginType.getName())%>"
    145           size="60" maxlength="<%=PluginType.MAX_NAME_LENGTH%>"></td>
     145          maxlength="<%=PluginType.MAX_NAME_LENGTH%>"></td>
     146        <td></td>
    146147      </tr>
    147148      <tr>
    148         <td class="prompt">Interface</td>
     149        <th>Interface</th>
    149150        <td><input <%=requiredClazz%> type="text" name="interfaceName"
    150151          value="<%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("interfaceName") : pluginType.getInterfaceName())%>"
    151           size="60" maxlength="<%=PluginType.MAX_INTERFACENAME_LENGTH%>"></td>
     152          maxlength="<%=PluginType.MAX_INTERFACENAME_LENGTH%>"></td>
     153        <td></td>
    152154      </tr>
    153155      <tr>
    154         <td class="prompt">Jar file</td>
     156        <th>Jar file</th>
    155157        <td><input <%=clazz%> type="text" name="jarFile"
    156158          value="<%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("jarFile") : pluginType.getJarFile())%>"
    157           size="60" maxlength="<%=PluginType.MAX_JARFILE_LENGTH%>"></td>
     159          maxlength="<%=PluginType.MAX_JARFILE_LENGTH%>"></td>
     160        <td></td>
    158161      </tr>
    159       <tr >
    160         <td class="prompt">Description</td>
    161         <td nowrap>
    162           <textarea <%=clazz%> rows="4" cols="50" name="description"
     162      <tr class="dynamic">
     163        <th>Description</th>
     164        <td>
     165          <textarea <%=clazz%> rows="6" name="description"
    163166            ><%=HTML.encodeTags(pluginType == null ? cc.getPropertyValue("description") : pluginType.getDescription())%></textarea>
    164           <a href="javascript:Main.zoom('Description', 'pluginType', 'description')"
    165             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     167        </td>
     168        <td style="width: 20px;">
     169          <base:icon image="zoom.png"
     170            onclick="Main.zoom('Description', 'pluginType', 'description')"
     171            tooltip="Edit in larger window"
     172          />
    166173        </td>
    167174      </tr>
    168175      </table>
    169       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    170176    </t:tab>
    171177    </t:tabcontrol>
     178    </form>
     179   
     180    <div class="legend">
     181      <base:icon image="required.gif" /> = required information
     182    </div>
    172183
    173     <table align="center">
    174     <tr>
    175       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    176       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    177     </tr>
    178     </table>
    179     </form>
     184    <base:buttongroup subclass="dialogbuttons">
     185      <base:button onclick="saveSettings()" title="Save" />
     186      <base:button onclick="window.close()" title="Cancel" />
     187    </base:buttongroup>
    180188  </base:body>
    181189  </base:page>
  • trunk/www/admin/quantities/edit_quantity.jsp

    r5908 r5922  
    130130  </base:head>
    131131  <base:body onload="init()">
    132     <p>
     132    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    133133    <form action="index.jsp?ID=<%=ID%>" method="post" name="quantity" onsubmit="return false;">
    134134    <input type="hidden" name="cmd" value="UpdateItem">
    135135
    136     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    137     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*240)+"px;"%>"
     136    <t:tabcontrol id="settings"
     137      subclass="content dialogtabcontrol"
    138138      position="bottom" remember="<%=quantity != null%>"
    139139      extensions="<%=invoker%>">
    140140    <t:tab id="info" title="Quantity" validate="validateQuantity()" helpid="quantity.edit">
    141       <table class="form" cellspacing=0>
     141      <table class="fullform input100 smaller">
    142142      <tr>
    143         <td class="prompt">Quantity</td>
     143        <th>Quantity</th>
    144144        <td><input <%=requiredClazz%> type="text" name="name"
    145145          value="<%=HTML.encodeTags(quantity == null ? Values.getString(cc.getPropertyValue("name"), "New quantity") : quantity.getName())%>"
    146           size="40" maxlength="<%=Quantity.MAX_NAME_LENGTH%>"></td>
     146          maxlength="<%=Quantity.MAX_NAME_LENGTH%>"></td>
     147        <td></td>
    147148      </tr>
    148149      <tr>
    149         <td class="prompt">Reference unit</td>
     150        <th>Reference unit</th>
    150151        <td><input <%=requiredClazz%> type="text" name="referenceUnit"
    151152          value="<%=HTML.encodeTags(quantity == null ? Values.getString(cc.getPropertyValue("referenceUnit"), "") : quantity.getReferenceUnit())%>"
    152           size="40" maxlength="<%=Quantity.MAX_REFERENCE_UNIT_LENGTH%>"></td>
     153          maxlength="<%=Quantity.MAX_REFERENCE_UNIT_LENGTH%>"></td>
     154        <td></td>
    153155      </tr>
    154       <tr >
    155         <td class="prompt">Description</td>
    156         <td nowrap>
    157           <textarea <%=clazz%> rows="4" cols="40" name="description"
     156      <tr class="dynamic">
     157        <th>Description</th>
     158        <td>
     159          <textarea <%=clazz%> rows="6" name="description"
    158160            ><%=HTML.encodeTags(quantity == null ? cc.getPropertyValue("description") : quantity.getDescription())%></textarea>
    159           <a href="javascript:Main.zoom('Description', 'quantity', 'description')"
    160             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     161        </td>
     162        <td style="width: 20px;">
     163          <base:icon image="zoom.png"
     164            onclick="Main.zoom('Description', 'quantity', 'description')"
     165            tooltip="Edit in larger window"
     166          />
    161167        </td>
    162168      </tr>
    163169      </table>
    164       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    165170    </t:tab>
    166171    </t:tabcontrol>
     172    </form>
     173   
     174    <div class="legend">
     175      <base:icon image="required.gif" /> = required information
     176    </div>
    167177
    168     <table align="center">
    169     <tr>
    170       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    171       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    172     </tr>
    173     </table>
    174     </form>
     178    <base:buttongroup subclass="dialogbuttons">
     179      <base:button onclick="saveSettings()" title="Save" />
     180      <base:button onclick="window.close()" title="Cancel" />
     181    </base:buttongroup>
    175182  </base:body>
    176183  </base:page>
  • trunk/www/admin/quantities/units/edit_unit.jsp

    r5908 r5922  
    167167  </base:head>
    168168  <base:body onload="init()">
    169     <p>
     169    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    170170    <form action="index.jsp?ID=<%=ID%>" method="post" name="unit" onsubmit="return false;">
    171171    <input type="hidden" name="cmd" value="UpdateItem">
    172172    <input type="hidden" name="quantity_id" value="<%=quantityId%>">
    173173
    174     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    175     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*360)+"px;"%>"
     174    <t:tabcontrol id="settings"
     175      subclass="content dialogtabcontrol"
    176176      position="bottom" remember="<%=unit != null%>"
    177177      extensions="<%=invoker%>">
    178178    <t:tab id="info" title="Unit" validate="validateUnit()" helpid="unit.edit">
    179       <table class="form" cellspacing=0>
     179      <table class="fullform input100">
    180180      <tr>
    181         <td class="prompt">Title</td>
     181        <th>Title</th>
    182182        <td><input <%=requiredClazz%> type="text" name="name"
    183183          value="<%=HTML.encodeTags(unit == null ? Values.getString(cc.getPropertyValue("name"), "New unit") : unit.getName())%>"
    184           size="40" maxlength="<%=Unit.MAX_NAME_LENGTH%>"></td>
    185       </tr>
    186       <tr>
    187         <td class="prompt">Symbols</td>
     184          maxlength="<%=Unit.MAX_NAME_LENGTH%>"></td>
     185        <td></td>
     186      </tr>
     187      <tr class="big">
     188        <th>Symbols</th>
    188189        <td>
    189           <textarea <%=requiredClazz%> name="symbols" cols="40" rows="4"
     190          <textarea <%=requiredClazz%> name="symbols" rows="4"
    190191          onchange="symbolsOnChange()"
    191192          ><%=Values.getString(symbols, "\n", true)%></textarea>
    192193        </td>
     194        <td></td>
    193195      </tr>
    194196      <tr>
    195         <td class="prompt">Conversion formula</td>
     197        <th>Conversion formula</th>
    196198        <td>
    197           <table border="0" cellspacing="2" cellpadding="0">
    198           <tr>
    199           <td>
    200             1 <span id="symbol"><%=unit == null ? "<i>unit</i>" : HTML.encodeTags(unit.getDisplaySymbol())%></span>
    201             =
    202           </td>
    203           <td>
     199          1 <span id="symbol"><%=unit == null ? "<i>unit</i>" : HTML.encodeTags(unit.getDisplaySymbol())%></span>
     200          =
    204201            <%=HTML.encodeTags(quantity.getReferenceUnit())%>
    205           </td>
    206           </tr>
    207           <tr>
    208           <td></td>
    209           <td>× <input <%=requiredClazz%> type="text" name="referenceFactor"
     202          × <input <%=requiredClazz%> type="text" name="referenceFactor"
    210203              value="<%=unit == null ? 1.0 : unit.getReferenceFactor()%>"
    211204              onkeypress="return Numbers.numberOnly(event)"
    212               onchange="updateTestResult()" size="10" maxlength="12">
    213           </td>
    214           </tr>
    215           <tr>
    216           <td></td>
    217           <td>+ <input <%=requiredClazz%> type="text" name="referenceOffset"
     205              onchange="updateTestResult()" maxlength="12" style="width: 10em;">
     206          + <input <%=requiredClazz%> type="text" name="referenceOffset"
    218207              value="<%=unit == null ? 0.0 : unit.getReferenceOffset()%>"
    219208              onkeypress="return Numbers.numberOnly(event)"
    220               onchange="updateTestResult()" size="10" maxlength="12">
     209              onchange="updateTestResult()" maxlength="12" style="width: 10em;">
     210        </td>
     211        <td></td>
     212      </tr>
     213      <%
     214      if (unit != null)
     215      {
     216        %>
     217        <tr>
     218          <th class="subprompt"></th>
     219          <td>
     220            <div class="messagecontainer help" style="margin: 0.5em;">
     221              Changing the conversion formula triggers a conversion of existing annotation values
     222              to the new settings. This may result in loss of precision due to rounding or
     223              truncation.
     224            </div>
    221225          </td>
    222           </tr>
    223           </table>
    224           <base:note type="warning" style="background: #ffffd8;"  visible="<%=unit != null %>">
    225           Changing the conversion formula triggers a conversion of existing annotation values
    226           to the new settings. This may result in loss of precision due to rounding or
    227           truncation.
    228           </base:note>
    229         </td>
    230       </tr>
    231       <tr >
    232         <td class="prompt">Description</td>
     226          <td></td>
     227        </tr>
     228        <%
     229      }
     230      %>
     231      <tr class="dynamic">
     232        <th>Description</th>
    233233        <td>
    234           <textarea <%=clazz%> rows="4" cols="40" name="description"
     234          <textarea <%=clazz%> rows="6" name="description"
    235235            ><%=HTML.encodeTags(unit == null ? cc.getPropertyValue("description") : unit.getDescription())%></textarea>
    236           <a href="javascript:Main.zoom('Description', 'unit', 'description')"
    237             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     236        </td>
     237        <td style="width: 20px;">
     238          <base:icon image="zoom.png"
     239            onclick="Main.zoom('Description', 'unit', 'description')"
     240            tooltip="Edit in larger window"
     241          />
    238242        </td>
    239243      </tr>
    240244      </table>
    241       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    242245    </t:tab>
    243246    </t:tabcontrol>
    244 
    245     <table align="center">
    246     <tr>
    247       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    248       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    249     </tr>
    250     </table>
    251247    </form>
     248   
     249    <div class="legend">
     250      <base:icon image="required.gif" /> = required information
     251    </div>
     252
     253    <base:buttongroup subclass="dialogbuttons">
     254      <base:button onclick="saveSettings()" title="Save" />
     255      <base:button onclick="window.close()" title="Cancel" />
     256    </base:buttongroup>
    252257  </base:body>
    253258  </base:page>
  • trunk/www/admin/quotatypes/edit_quotatype.jsp

    r5908 r5922  
    121121  </base:head>
    122122  <base:body onload="init()">
    123     <p>
     123    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    124124    <form action="index.jsp?ID=<%=ID%>" method="post" name="quotaType" onsubmit="return false;">
    125125    <input type="hidden" name="cmd" value="UpdateItem">
    126126
    127     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    128     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"
     127    <t:tabcontrol id="settings"
     128      subclass="content dialogtabcontrol"
    129129      position="bottom" remember="<%=quotaType != null%>"
    130130      extensions="<%=invoker%>">
    131131    <t:tab id="info" title="Quota type" validate="validateQuotaType()" helpid="quotatype.edit">
    132       <table class="form" cellspacing=0>
     132      <table class="fullform input100 smaller">
    133133      <tr>
    134         <td class="prompt">Name</td>
     134        <th>Name</th>
    135135        <td><input <%=requiredClazz%> type="text" name="name"
    136136          value="<%=HTML.encodeTags(quotaType == null ? Values.getString(cc.getPropertyValue("name"), "New quota type") : quotaType.getName())%>"
    137           size="40" maxlength="<%=QuotaType.MAX_NAME_LENGTH%>"></td>
     137          maxlength="<%=QuotaType.MAX_NAME_LENGTH%>"></td>
     138        <td></td>
    138139      </tr>
    139       <tr >
    140         <td class="prompt">Description</td>
    141         <td nowrap>
    142           <textarea <%=clazz%> rows="4" cols="40" name="description"
     140      <tr class="dynamic">
     141        <th>Description</th>
     142        <td>
     143          <textarea <%=clazz%> rows="6" name="description"
    143144            ><%=HTML.encodeTags(quotaType == null ? cc.getPropertyValue("description") : quotaType.getDescription())%></textarea>
    144           <a href="javascript:Main.zoom('Description', 'quotaType', 'description')"
    145             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     145        </td>
     146        <td style="width: 20px;">
     147          <base:icon image="zoom.png"
     148            onclick="Main.zoom('Description', 'quotaType', 'description')"
     149            tooltip="Edit in larger window"
     150          />
    146151        </td>
    147152      </tr>
    148153      </table>
    149       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    150154    </t:tab>
    151155    </t:tabcontrol>
     156    </form>
     157   
     158    <div class="legend">
     159      <base:icon image="required.gif" /> = required information
     160    </div>
    152161
    153     <table align="center">
    154     <tr>
    155       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    156       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    157     </tr>
    158     </table>
    159     </form>
     162    <base:buttongroup subclass="dialogbuttons">
     163      <base:button onclick="saveSettings()" title="Save" />
     164      <base:button onclick="window.close()" title="Cancel" />
     165    </base:buttongroup>
    160166  </base:body>
    161167  </base:page>
  • trunk/www/admin/reportertypes/edit_reportertype.jsp

    r5908 r5922  
    122122  </base:head>
    123123  <base:body onload="init()">
    124     <p>
     124    <h1><%=title%> <base:help tabcontrol="settings" /></h1>
    125125    <form action="index.jsp?ID=<%=ID%>" method="post" name="reporterType" onsubmit="return false;">
    126126    <input type="hidden" name="cmd" value="UpdateItem">
    127127
    128     <h3 class="docked"><%=title%> <base:help tabcontrol="settings" /></h3>
    129     <t:tabcontrol id="settings" contentstyle="<%="height: "+(int)(scale*160)+"px;"%>"
     128    <t:tabcontrol id="settings"
     129      subclass="content dialogtabcontrol"
    130130      position="bottom" remember="<%=reporterType != null%>"
    131131      extensions="<%=invoker%>">
    132132    <t:tab id="info" title="Reporter type" validate="validateReporterType()" helpid="reportertype.edit">
    133       <table class="form" cellspacing=0>
     133      <table class="fullform input100 smaller">
    134134      <tr>
    135         <td class="prompt">Name</td>
     135        <th>Name</th>
    136136        <td><input <%=requiredClazz%> type="text" name="name"
    137137          value="<%=HTML.encodeTags(reporterType == null ? Values.getString(cc.getPropertyValue("name"), "New reporter type") : reporterType.getName())%>"
    138           size="40" maxlength="<%=ReporterType.MAX_NAME_LENGTH%>"></td>
     138          maxlength="<%=ReporterType.MAX_NAME_LENGTH%>"></td>
     139        <td></td>
    139140      </tr>
    140       <tr >
    141         <td class="prompt">Description</td>
    142         <td nowrap>
    143           <textarea <%=clazz%> rows="4" cols="40" name="description"
     141      <tr class="dynamic">
     142        <th>Description</th>
     143        <td>
     144          <textarea <%=clazz%> rows="6" name="description"
    144145            ><%=HTML.encodeTags(reporterType == null ? cc.getPropertyValue("description") : reporterType.getDescription())%></textarea>
    145           <a href="javascript:Main.zoom('Description', 'reporterType', 'description')"
    146             title="Edit in larger window"><base:icon image="zoom.png" /></a>
     146        </td>
     147        <td style="width: 20px;">
     148          <base:icon image="zoom.png"
     149            onclick="Main.zoom('Description', 'reporterType', 'description')"
     150            tooltip="Edit in larger window"
     151          />
    147152        </td>
    148153      </tr>
    149154      </table>
    150       <div align=right>&nbsp;<i><base:icon image="required.gif" /> = required information</i></div>
    151155    </t:tab>
    152156    </t:tabcontrol>
     157    </form>
     158   
     159    <div class="legend">
     160      <base:icon image="required.gif" /> = required information
     161    </div>
    153162
    154     <table align="center">
    155     <tr>
    156       <td width="50%"><base:button onclick="saveSettings()" title="Save" /></td>
    157       <td width="50%"><base:button onclick="window.close()" title="Cancel" /></td>
    158     </tr>
    159     </table>
    160     </form>
     163    <base:buttongroup subclass="dialogbuttons">
     164      <base:button onclick="saveSettings()" title="Save" />
     165      <base:button onclick="window.close()" title="Cancel" />
     166    </base:buttongroup>
    161167  </base:body>
    162168  </base:page>
  • trunk/www/admin/roles/edit_role.jsp

    r5921 r5922  
    412412    <t:tab id="permissions" title="Permissions"
    413413      tooltip="Set permissions for this role" helpid="role.edit.permissions">
    414       <table class="fullform">
     414      <table class="fullform input100">
    415415      <tr class="dynamic">
    416416      <th>Item types</th>
    417417      <td>
     418        <div class="selectionlist">
    418419        <table>
    419420        <tr>
     
    439440          </select>
    440441        </td>
    441         <td style="vertical-align: top; padding-left: 2px;">
     442        <td style="vertical-align: top;">
     443          <div style="width: 15em;">
    442444          <b>Permissions</b><br>
    443445          <input type="checkbox" name="deny" id="deny" onClick="setPermissions(this.checked, true)"><label for="deny">Deny</label><br>
     
    449451          <input type="checkbox" name="set_owner" id="set_owner" onClick="setPermissions(this.checked)"><label for="set_owner">Set owner</label><br>
    450452          <input type="checkbox" name="set_permission" id="set_permission" onClick="setPermissions(this.checked)"><label for="set_permission">Set permission</label><br>
    451           </td>
     453          </div>
     454        </td>
    452455        </tr>
    453456        </table>
     457        </div>
    454458      </td>
    455459      </tr>
     
    459463    <t:tab id="members" title="Members" tooltip="Add/remove members of this role"
    460464      validate="validateMembers()" helpid="role.edit.members">
    461       <table class="fullform">
     465      <table class="fullform input100">
    462466      <tr class="dynamic">
    463467      <th>Members</th>
  • trunk/www/admin/users/edit_default_membership.jsp

    r5921 r5922  
    194194    <div class="content filled">
    195195      <div>
    196       <table class="fullform smaller bottomborder">
     196      <table class="fullform input100 smaller bottomborder">
    197197      <tr class="dynamic">
    198198      <th>Member in</th>
     
    202202          <tr>
    203203            <td>
    204               <select name="membership" size="12" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%> style="width: 15em;">
     204              <select name="membership" size="12" multiple <%=!writeMembership ? "disabled readonly class=\"disabled\"" : ""%>>
    205205              </select>
    206206              <input type="hidden" name="removeGroups" value="">
  • trunk/www/admin/users/edit_user.jsp

    r5921 r5922  
    841841    <t:tab id="members" title="Membership"  tooltip="Manage group and role membership"
    842842      validate="validateMembership()" helpid="user.edit.membership">
    843       <table class="fullform">
     843      <table class="fullform input100">
    844844      <tr class="dynamic">
    845845        <th>Member in</th>
  • trunk/www/include/scripts/main.js

    r5921 r5922  
    539539  {
    540540    this.controllers = new Array();
    541     this.controllers['EXPERIMENT'] = { url:'views/experiments/index.jsp', width:750, height:500 };
     541    this.controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:750, height:500, edit:true, popup:true };
     542    this.controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:600, height:400 };
     543    this.controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:600, height:400 };
     544    this.controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:500, height:340, popup:true };
     545    this.controllers['ARRAYBATCH'] = { url:'lims/arraybatches/index.jsp', width:750, height:500 };
     546    this.controllers['ARRAYDESIGN'] = { url:'lims/arraydesigns/index.jsp', width:750, height:500 };
     547    this.controllers['ARRAYSLIDE'] = { url:'lims/arrayslides/index.jsp', width:750, height:500 };
    542548    this.controllers['BIOASSAY'] = { url:'views/experiments/bioassays/index.jsp', width:800, height:500 };
    543549    this.controllers['BIOASSAYSET'] = { url:'views/experiments/bioassaysets/index.jsp', width:800, height:500 };
    544     this.controllers['TRANSFORMATION'] = { url:'views/experiments/transformations/index.jsp', width:500, height:300 };
     550    this.controllers['BIOMATERIALEVENT'] = { url:'biomaterials/events/index.jsp', width:600, height:400 };
     551    this.controllers['BIOMATERIALLIST'] = { url:'biomaterials/lists/index.jsp', width:600, height:400 };
     552    this.controllers['BIOPLATE'] = { url:'biomaterials/bioplates/index.jsp', width:750, height:500 };
     553    this.controllers['BIOPLATEEVENT'] = { url:'biomaterials/bioplates/events/index.jsp', width:600, height:400 };
     554    this.controllers['BIOPLATEEVENTTYPE'] = { url:'biomaterials/bioplateeventtypes/index.jsp', width:600, height:400 };
     555    this.controllers['BIOPLATETYPE'] = { url:'biomaterials/bioplatetypes/index.jsp', width:600, height:400 };
     556    this.controllers['BIOSOURCE'] = { url:'biomaterials/biosources/index.jsp', width:750, height:500 };
     557    this.controllers['BIOWELL'] = { url:'biomaterials/bioplates/wells/index.jsp', width:480, height:320 };
     558    this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:450, height:300 };
     559    this.controllers['CHANGEHISTORY'] = { url:'common/history/index.jsp', width:600, height:480, edit:false, popup:true };
     560    this.controllers['DATAFILETYPE'] = { url:'admin/datafiletypes/index.jsp', width:600, height:400 };
     561    this.controllers['DERIVEDBIOASSAY'] = { url:'views/derivedbioassays/index.jsp', width:750, height:500 };
     562    this.controllers['DIRECTORY'] = { url:'filemanager/directories/index.jsp', width:600, height:400, popup:true };
     563    this.controllers['EXPERIMENT'] = { url:'views/experiments/index.jsp', width:750, height:500 };
     564    this.controllers['EXTRACT'] = { url:'biomaterials/extracts/index.jsp', width:750, height:500 };
     565    this.controllers['EXTRAVALUE'] = { url:'views/experiments/extravalues/index.jsp', width:500, height:340, edit:false };
     566    this.controllers['EXTRAVALUETYPE'] = { url:'admin/extravaluetypes/index.jsp', width:600, height:400 };
     567    this.controllers['FEATURE'] = { url:'lims/arraydesigns/features/index.jsp', width:750, height:500, popup:true, edit:false };
     568    this.controllers['FILE'] = { url:'filemanager/index.jsp', width:600, height:400 };
     569    this.controllers['FILESERVER'] = { url:'filemanager/fileservers/index.jsp', width:600, height:400 };
     570    this.controllers['FORMULA'] = { url:'views/formulas/index.jsp', width:750, height:500 };
     571    this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:600, height:400 };
     572    this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:450, height:300 };
     573    this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:400 };
     574    this.controllers['ITEMSUBTYPE'] = { url:'admin/itemsubtypes/index.jsp', width:600, height:400 };
    545575    this.controllers['JOB'] = { url:'views/jobs/index.jsp', width:750, height:500, popup:true, edit:false };
    546     this.controllers['FORMULA'] = { url:'views/formulas/index.jsp', width:750, height:500 };
     576    this.controllers['JOBAGENT'] = { url:'admin/jobagents/index.jsp', width:600, height:400 };
     577    this.controllers['MESSAGE'] = { url:'my_base/messages/index.jsp', width:600, height:400, popup:true, edit:false };
     578    this.controllers['MIMETYPE'] = { url:'admin/mimetypes/index.jsp', width:600, height:400 };
     579    this.controllers['NEWS'] = { url:'admin/news/index.jsp', width:600, height:400 };
     580    this.controllers['PERMISSIONTEMPLATE'] = { url:'views/permissiontemplates/index.jsp', width:450, height:300 };
    547581    this.controllers['PHYSICALBIOASSAY'] = { url:'views/physicalbioassays/index.jsp', width:750, height:500 };
    548     this.controllers['DERIVEDBIOASSAY'] = { url:'views/derivedbioassays/index.jsp', width:750, height:500 };
     582    this.controllers['PLATE'] = { url:'lims/plates/index.jsp', width:750, height:500 };
     583    this.controllers['PLATEEVENT'] = { url:'lims/plates/events/index.jsp', width:600, height:400 };
     584    this.controllers['PLATEEVENTTYPE'] = { url:'lims/platetypes/eventtypes/index.jsp', width:450, height:300 };
     585    this.controllers['PLATEGEOMETRY'] = { url:'lims/geometries/index.jsp', width:450, height:300 };
     586    this.controllers['PLATEMAPPING'] = { url:'lims/platemappings/index.jsp', width:600, height:400 };
     587    this.controllers['PLATETYPE'] = { url:'lims/platetypes/index.jsp', width:450, height:300 };
     588    this.controllers['PLATFORM'] = { url:'admin/platforms/index.jsp', width:600, height:400 };
     589    this.controllers['PLATFORMVARIANT'] = { url:'admin/platforms/variants/index.jsp', width:600, height:400 };
     590    this.controllers['PLUGINCONFIGURATION'] = { url:'admin/pluginconfigurations/index.jsp', width:600, height:400 };
     591    this.controllers['PLUGINDEFINITION'] = { url:'admin/plugindefinitions/index.jsp', width:750, height:500 };
     592    this.controllers['PLUGINTYPE'] = { url:'admin/plugintypes/index.jsp', width:600, height:400 };
     593    this.controllers['PROJECT'] = { url:'my_base/projects/index.jsp', width:600, height:400 };
     594    this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:750, height:500 };
     595    this.controllers['QUANTITY'] = { url:'admin/quantities/index.jsp', width:450, height:300 };
     596    this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:750, height:500 };
     597    this.controllers['QUOTATYPE'] = { url:'admin/quotatypes/index.jsp', width:450, height:300 };
    549598    this.controllers['RAWBIOASSAY'] = { url:'views/rawbioassays/index.jsp', width:750, height:500 };
    550599    this.controllers['RAWDATA'] = { url:'views/rawbioassays/rawdata/index.jsp', width:750, height:500, popup: true, edit:false };
     600    this.controllers['REPORTER'] = { url:'views/reporters/index.jsp', width:600, height:400 };
     601    this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width:750, height:500 };
    551602    this.controllers['REPORTERLIST'] = { url:'views/reporterlists/index.jsp', width:600, height:400 };
    552     this.controllers['REPORTER'] = { url:'views/reporters/index.jsp', width:600, height:400 };
    553603    this.controllers['REPORTERSCORE'] = this.controllers['REPORTER'];
    554     this.controllers['SCAN'] = { url:'views/scans/index.jsp', width:800, height:500 };
    555     this.controllers['IMAGE'] = { url:'views/scans/images/index.jsp', width:500, height:340 };
     604    this.controllers['REPORTERTYPE'] = { url:'admin/reportertypes/index.jsp', width:450, height:300 };
     605    this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:400 };
     606    this.controllers['SAMPLE'] = { url:'biomaterials/samples/index.jsp', width:750, height:500 };
    556607    this.controllers['SESSION'] = { url:'views/sessions/index.jsp', width:450, height:300, popup:true, edit:false };
     608    this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:450, height:300 };
    557609    this.controllers['TAG'] = { url:'biomaterials/tags/index.jsp', width:450, height:300 };
    558     this.controllers['EXTRACT'] = { url:'biomaterials/extracts/index.jsp', width:750, height:500 };
    559     this.controllers['SAMPLE'] = { url:'biomaterials/samples/index.jsp', width:750, height:500 };
    560     this.controllers['BIOMATERIALEVENT'] = { url:'biomaterials/events/index.jsp', width:600, height:400 };
    561     this.controllers['BIOSOURCE'] = { url:'biomaterials/biosources/index.jsp', width:750, height:500 };
    562     this.controllers['BIOMATERIALLIST'] = { url:'biomaterials/lists/index.jsp', width:600, height:400 };
    563     this.controllers['BIOPLATE'] = { url:'biomaterials/bioplates/index.jsp', width:750, height:500 };
    564     this.controllers['BIOPLATETYPE'] = { url:'biomaterials/bioplatetypes/index.jsp', width:600, height:400 };
    565     this.controllers['BIOPLATEEVENT'] = { url:'biomaterials/bioplates/events/index.jsp', width:600, height:400 };
    566     this.controllers['BIOPLATEEVENTTYPE'] = { url:'biomaterials/bioplateeventtypes/index.jsp', width:600, height:400 };
    567     this.controllers['BIOWELL'] = { url:'biomaterials/bioplates/wells/index.jsp', width:480, height:320 };
    568     this.controllers['MESSAGE'] = { url:'my_base/messages/index.jsp', width:600, height:400, popup:true, edit:false };
    569     this.controllers['PROJECT'] = { url:'my_base/projects/index.jsp', width:600, height:400 };
    570     this.controllers['PERMISSIONTEMPLATE'] = { url:'views/permissiontemplates/index.jsp', width:450, height:300 };
    571     this.controllers['FILE'] = { url:'filemanager/index.jsp', width:600, height:400 };
    572     this.controllers['FILESERVER'] = { url:'filemanager/fileservers/index.jsp', width:600, height:400 };
    573     this.controllers['DIRECTORY'] = { url:'filemanager/directories/index.jsp', width:600, height:400, popup:true };
    574     this.controllers['ARRAYBATCH'] = { url:'lims/arraybatches/index.jsp', width:750, height:500 };
    575     this.controllers['ARRAYDESIGN'] = { url:'lims/arraydesigns/index.jsp', width:750, height:500 };
    576     this.controllers['FEATURE'] = { url:'lims/arraydesigns/features/index.jsp', width:750, height:500, popup:true, edit:false };
    577     this.controllers['ARRAYSLIDE'] = { url:'lims/arrayslides/index.jsp', width:750, height:500 };
    578     this.controllers['PLATEGEOMETRY'] = { url:'lims/geometries/index.jsp', width:450, height:300 };
    579     this.controllers['PLATEMAPPING'] = { url:'lims/platemappings/index.jsp', width:600, height:400 };
    580     this.controllers['PLATE'] = { url:'lims/plates/index.jsp', width:750, height:500 };
     610    this.controllers['TRANSFORMATION'] = { url:'views/experiments/transformations/index.jsp', width:500, height:300 };
     611    this.controllers['UNIT'] = { url:'admin/quantities/units/index.jsp', width:600, height:400 };
     612    this.controllers['USER'] = { url:'admin/users/index.jsp', width:750, height:500 };
    581613    this.controllers['WELL'] = { url:'lims/plates/wells/index.jsp', width:750, height:500 };
    582     this.controllers['PLATEEVENT'] = { url:'lims/plates/events/index.jsp', width:600, height:400 };
    583     this.controllers['PLATETYPE'] = { url:'lims/platetypes/index.jsp', width:450, height:300 };
    584     this.controllers['PLATEEVENTTYPE'] = { url:'lims/platetypes/eventtypes/index.jsp', width:450, height:300 };
    585     this.controllers['ANNOTATIONTYPE'] = { url:'admin/annotationtypes/index.jsp', width:540, height:420 };
    586     this.controllers['ANNOTATIONTYPECATEGORY'] = { url:'admin/annotationtypecategories/index.jsp', width:540, height:400 };
    587     this.controllers['CLIENT'] = { url:'admin/clients/index.jsp', width:450, height:300 };
    588     this.controllers['HELP'] = { url:'admin/clients/help/index.jsp', width:600, height:400 };
    589     this.controllers['GROUP'] = { url:'admin/groups/index.jsp', width:600, height:400 };
    590     this.controllers['HARDWARE'] = { url:'admin/hardware/index.jsp', width:450, height:300 };
    591     this.controllers['MIMETYPE'] = { url:'admin/mimetypes/index.jsp', width:540, height:400 };
    592     this.controllers['NEWS'] = { url:'admin/news/index.jsp', width:600, height:400 };
    593     this.controllers['PLUGINCONFIGURATION'] = { url:'admin/pluginconfigurations/index.jsp', width:800, height:500 };
    594     this.controllers['PLUGINDEFINITION'] = { url:'admin/plugindefinitions/index.jsp', width:800, height:500 };
    595     this.controllers['PLUGINTYPE'] = { url:'admin/plugintypes/index.jsp', width:700, height:400 };
    596     this.controllers['JOBAGENT'] = { url:'admin/jobagents/index.jsp', width:700, height:400 };
    597     this.controllers['PROTOCOL'] = { url:'admin/protocols/index.jsp', width:750, height:500 };
    598     this.controllers['QUOTA'] = { url:'admin/quota/index.jsp', width:750, height:500 };
    599     this.controllers['QUOTATYPE'] = { url:'admin/quotatypes/index.jsp', width:500, height:340 };
    600     this.controllers['REPORTERTYPE'] = { url:'admin/reportertypes/index.jsp', width:500, height:340 };
    601     this.controllers['ROLE'] = { url:'admin/roles/index.jsp', width:600, height:400 };
    602     this.controllers['SOFTWARE'] = { url:'admin/software/index.jsp', width:450, height:300 };
    603     this.controllers['USER'] = { url:'admin/users/index.jsp', width:750, height:500 };
    604     this.controllers['ANYTOANY'] = { url:'common/anytoany/index.jsp', width:500, height:340, popup:true };
    605     this.controllers['EXTRAVALUETYPE'] = { url:'admin/extravaluetypes/index.jsp', width:500, height:400 };
    606     this.controllers['EXTRAVALUE'] = { url:'views/experiments/extravalues/index.jsp', width:500, height:340, edit:false };
    607     this.controllers['PLATFORM'] = { url:'admin/platforms/index.jsp', width:540, height:400 };
    608     this.controllers['PLATFORMVARIANT'] = { url:'admin/platforms/variants/index.jsp', width:540, height:400 };
    609     this.controllers['DATAFILETYPE'] = { url:'admin/datafiletypes/index.jsp', width:600, height:480 };
    610     this.controllers['QUANTITY'] = { url:'admin/quantities/index.jsp', width:600, height:480 };
    611     this.controllers['UNIT'] = { url:'admin/quantities/units/index.jsp', width:600, height:480 };
    612     this.controllers['CHANGEHISTORY'] = { url:'common/history/index.jsp', width:600, height:480, edit:false, popup:true };
    613     this.controllers['ANNOTATION'] = { url:'common/annotations/index.jsp', width:700, height:480, edit:true, popup:true };
    614     this.controllers['ITEMSUBTYPE'] = { url:'admin/itemsubtypes/index.jsp', width:640, height:440 };
    615     this.controllers['REPORTERCLONETEMPLATE'] = { url:'admin/reporterclonetemplates/index.jsp', width:750, height:500 };
    616614  }
    617615 
Note: See TracChangeset for help on using the changeset viewer.