Changeset 3539


Ignore:
Timestamp:
Jun 29, 2007, 2:35:45 PM (16 years ago)
Author:
Martin Svensson
Message:

Fixes #191 Mobile number field in user info?

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/src/docbook/admindoc/user_administration.xml

    r3487 r3539  
    219219          <seeother>
    220220            <other external_id="user.edit.contact">Edit contact information</other>
     221            <other external_id="user.additional">Edit additional info</other>
    221222            <other external_id="user.edit.membership">Group and role membership</other>
    222223          </seeother>
     
    332333          <seeother>
    333334            <other external_id="user.edit">Edit account</other>
     335            <other external_id="user.additional">Edit additional info</other>
     336            <other external_id="user.edit.membership">Group and role membership</other>
     337          </seeother>
     338        </helptext>
     339      </sect3>
     340
     341      <sect3 id="user_administration.users.edit.additional">
     342        <title>Additional information</title>
     343        <helptext external_id="user.edit.additional" title="Additional information">
     344          <para>
     345            This tab contains fields that hold various information about the user. There are
     346            by default two fields in BASE2 but this could easily be changed by the
     347            server administrator. How this configuration is done can be read in
     348            <xref linkend="appendix.extendedproperties" />
     349            <note>
     350              <para>
     351                The
     352                <guilabel>Additional info</guilabel>
     353                tab is only visible if there is one or more property defined for
     354                <classname>UserData</classname>
     355                in the configuration file for extended properties.
     356              </para>
     357            </note>
     358           
     359            These are the fields that are installed with BASE2
     360            <variablelist>
     361              <varlistentry>
     362                <term>
     363                  <guilabel>Mobile</guilabel>
     364                </term>
     365                <listitem>
     366                  <para>
     367                    The user's mobile number could be put in this field. This
     368                    field could be left empty.
     369                  </para>
     370                </listitem>
     371              </varlistentry>
     372              <varlistentry>
     373                <term>
     374                  <guilabel>Skype</guilabel>
     375                </term>
     376                <listitem>
     377                  <para>
     378                    Skype contact information, if the user has a registered
     379                    skype account. This field could be left empty.
     380                  </para>
     381                </listitem>
     382              </varlistentry>
     383            </variablelist>
     384          </para>
     385          <para>
     386            Go to the other tabs if there are any changes to do otherwise press
     387            &gbSave;
     388            to save the values or
     389            &gbCancel;
     390            to abort.
     391          </para>
     392          <seeother>
     393            <other external_id="user.edit">Edit account</other>
     394            <other external_id="user.contact">Edit contact</other>
    334395            <other external_id="user.edit.membership">Group and role membership</other>
    335396          </seeother>
     
    413474            <other external_id="user.edit">Edit user</other>
    414475            <other external_id="user.edit.contact">Edit contact information</other>
     476            <other external_id="user.additional">Edit additional info</other>
    415477            <other external_id="user.edit.default_membership">Default group and role membership</other>
    416478          </seeother>
  • trunk/doc/src/docbook/userdoc/webclient.xml

    r3495 r3539  
    460460        </helptext>
    461461       
     462      </sect2>
     463     
     464      <sect2 id="webclient.configuration.other">
     465        <title>Other information</title>
     466        <para>
     467          Use the
     468          <menuchoice>
     469            <guimenu>File</guimenu>
     470            <guimenuitem>Other information&hellip;</guimenuitem>
     471          </menuchoice>
     472          menu to bring up the other information dialog.
     473        </para>
     474        <helptext external_id="userpreferences.other" title="Other information">
     475          <para>
     476            This dialog has three tabs,
     477            <guilabel>Contact information</guilabel>
     478            ,
     479            <guilabel>Password</guilabel>
     480            and
     481            <guilabel>Other information</guilabel>
     482            (selected) .
     483          </para>
     484          <para>
     485            The look of the
     486            <guilabel>Other information</guilabel>
     487            tab can differe abit between different servers, depending on what settings
     488            the server is installed with. There are three inputs in a fresh BASE2
     489            installation but it is only the
     490            <guilabel>Description</guilabel>
     491            textarea that is static, the others can be removed or more fields can be
     492            added (managed by the server administrator). The three fields, included in a
     493            the BASE2 installation, are
     494            <variablelist>
     495              <varlistentry>
     496                <term>
     497                  <guilabel>Mobile</guilabel>
     498                </term>
     499                <listitem>
     500                  <para>Your mobile number(Optional).</para>
     501                </listitem>
     502              </varlistentry>
     503              <varlistentry>
     504                <term>
     505                  <guilabel>Skype</guilabel>
     506                </term>
     507                <listitem>
     508                  <para>Your skype contact information(Optional).</para>
     509                </listitem>
     510              </varlistentry>
     511              <varlistentry>
     512                <term>
     513                  <guilabel>Description</guilabel>
     514                </term>
     515                <listitem>
     516                  <para>
     517                    Text area where you can put useful information that couldn't
     518                    be stored anywhere else(Optional).
     519                  </para>
     520                </listitem>
     521              </varlistentry>
     522            </variablelist>
     523          </para>
     524          <para>Press &gbSave; to save the changes or &gbCancel; to abort.</para>
     525          <seeother>
     526            <other external_id="userpreferences.contact">Contact information</other>
     527            <other external_id="userpreferences.password">Change password</other>
     528          </seeother>
     529        </helptext>
    462530      </sect2>
    463531
  • trunk/www/admin/users/edit_user.jsp

    r3535 r3539  
    624624      </table>
    625625    </t:tab>
    626    
    627     <t:tab id="extended" title="Additional info"
    628       validate="validateExtendedProperties()" helpid="user.edit.additional">
    629       <table class="form" cellspacing="0">
    630         <%
    631         if (extendedProperties != null)
    632         {
    633           for (ExtendedProperty ep : ExtendedProperties.getProperties("UserData"))
    634           {
    635             String name = ep.getName();
    636             Type type = ep.getType();
    637             boolean required = !ep.isNullable();
    638             Object value = user == null ? cc.getPropertyValue(name) : user.getExtended(name);
    639             String theClazz = required ? requiredClazz : clazz;
    640             %>
    641             <tr valign="top">
    642               <td class="prompt"><%=HTML.encodeTags(ep.getTitle())%></td>
    643               <td>
    644               <%
    645               if (type == Type.INT || type == Type.LONG)
    646               {
    647                 %>
    648                 <input <%=theClazz%> type="text" name="<%=name%>"
    649                   value="<%=value == null ? "" : value%>"
    650                   size="20" maxlength="20" onkeypress="return Numbers.integerOnly(event)"
    651                   >
     626    <%
     627    if (extendedProperties != null)
     628    {
     629      %>
     630      <t:tab id="extended" title="Additional info"
     631        validate="validateExtendedProperties()" helpid="user.edit.additional">
     632        <table class="form" cellspacing="0">
     633          <%
     634            for (ExtendedProperty ep : ExtendedProperties.getProperties("UserData"))
     635            {
     636              String name = ep.getName();
     637              Type type = ep.getType();
     638              boolean required = !ep.isNullable();
     639              Object value = user == null ? cc.getPropertyValue(name) : user.getExtended(name);
     640              String theClazz = required ? requiredClazz : clazz;
     641              %>
     642              <tr valign="top">
     643                <td class="prompt"><%=HTML.encodeTags(ep.getTitle())%></td>
     644                <td>
    652645                <%
    653               }
    654               else if (type == Type.FLOAT || type == Type.DOUBLE)
    655               {
    656                 %>
    657                 <input <%=theClazz%> type="text" name="<%=name%>"
    658                   value="<%=value == null ? "" : value%>"
    659                   size="20" maxlength="20" onkeypress="return Numbers.numberOnly(event)"
    660                   >
    661                 <%
    662               }
    663               else if (type == Type.STRING)
    664               {
    665                 %>
    666                 <input <%=theClazz%> type="text" name="<%=name%>"
    667                   value="<%=HTML.encodeTags((String)value)%>"
    668                   size="40" maxlength="<%=ep.getLength()%>"
    669                   >
    670                 <%
    671               }
    672               else if (type == Type.TEXT)
    673               {
    674                 %>
    675                 <textarea <%=theClazz%> name="<%=name%>" rows="6" cols="40"
    676                   ><%=HTML.encodeTags((String)value)%></textarea>
    677                 <a href="javascript:Main.zoom(
    678                   '<%=HTML.javaScriptEncode(ep.getTitle())%>',
    679                   'reporter', '<%=name%>')"
    680                   title="Edit in larger window"><base:icon image="zoom.gif" /></a>
    681                 <%
    682               }
    683               else if (type == Type.BOOLEAN)
    684               {
    685                 Boolean b = (Boolean)value;
    686                 if (!required)
     646                if (type == Type.INT || type == Type.LONG)
    687647                {
    688648                  %>
    689                   <input type="radio" name="<%=name%>" value=""
    690                     <%=b == null ? "checked" : ""%>
    691                     ><i>- not specified -</i><br>
     649                  <input <%=theClazz%> type="text" name="<%=name%>"
     650                    value="<%=value == null ? "" : value%>"
     651                    size="20" maxlength="20" onkeypress="return Numbers.integerOnly(event)"
     652                    >
     653                  <%
     654                }
     655                else if (type == Type.FLOAT || type == Type.DOUBLE)
     656                {
     657                  %>
     658                  <input <%=theClazz%> type="text" name="<%=name%>"
     659                    value="<%=value == null ? "" : value%>"
     660                    size="20" maxlength="20" onkeypress="return Numbers.numberOnly(event)"
     661                    >
     662                  <%
     663                }
     664                else if (type == Type.STRING)
     665                {
     666                  %>
     667                  <input <%=theClazz%> type="text" name="<%=name%>"
     668                    value="<%=HTML.encodeTags((String)value)%>"
     669                    size="40" maxlength="<%=ep.getLength()%>"
     670                    >
     671                  <%
     672                }
     673                else if (type == Type.TEXT)
     674                {
     675                  %>
     676                  <textarea <%=theClazz%> name="<%=name%>" rows="6" cols="40"
     677                    ><%=HTML.encodeTags((String)value)%></textarea>
     678                  <a href="javascript:Main.zoom(
     679                    '<%=HTML.javaScriptEncode(ep.getTitle())%>',
     680                    'reporter', '<%=name%>')"
     681                    title="Edit in larger window"><base:icon image="zoom.gif" /></a>
     682                  <%
     683                }
     684                else if (type == Type.BOOLEAN)
     685                {
     686                  Boolean b = (Boolean)value;
     687                  if (!required)
     688                  {
     689                    %>
     690                    <input type="radio" name="<%=name%>" value=""
     691                      <%=b == null ? "checked" : ""%>
     692                      ><i>- not specified -</i><br>
     693                    <%
     694                  }
     695                  %>
     696                  <input type="radio" name="<%=name%>" value="true"
     697                    <%=b != null && b == true ? "checked" : ""%>
     698                    >true<br>
     699                  <input type="radio" name="<%=name%>" value="false"
     700                    <%=b != null && b == false ? "checked" : ""%>
     701                    >false
     702                  <%
     703                }
     704                else if (type == Type.DATE)
     705                {
     706                  %>
     707                  <table>
     708                  <tr>
     709                  <td>
     710                    <input <%=theClazz%> type="text" name="<%=name%>"
     711                      value="<%=dateFormatter.format((Date)value)%>"
     712                      size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"
     713                      >
     714                  </td>
     715                  <td>
     716                    <base:button
     717                      onclick="<%="Dates.selectDate('"+HTML.javaScriptEncode(ep.getTitle())+"', 'reporter', '"+name+"', null, '"+jsDateFormat +"')"%>"
     718                      image="calendar.png"
     719                      title="Calendar&hellip;"
     720                      tooltip="Select a date from a calendar"
     721                    />
     722                  </td>
     723                  </tr>
     724                  </table>
    692725                  <%
    693726                }
    694727                %>
    695                 <input type="radio" name="<%=name%>" value="true"
    696                   <%=b != null && b == true ? "checked" : ""%>
    697                   >true<br>
    698                 <input type="radio" name="<%=name%>" value="false"
    699                   <%=b != null && b == false ? "checked" : ""%>
    700                   >false
    701                 <%
    702               }
    703               else if (type == Type.DATE)
    704               {
    705                 %>
    706                 <table>
    707                 <tr>
    708                 <td>
    709                   <input <%=theClazz%> type="text" name="<%=name%>"
    710                     value="<%=dateFormatter.format((Date)value)%>"
    711                     size="20" maxlength="20" title="Enter date in format: <%=htmlDateFormat%>"
    712                     >
    713728                </td>
    714                 <td>
    715                   <base:button
    716                     onclick="<%="Dates.selectDate('"+HTML.javaScriptEncode(ep.getTitle())+"', 'reporter', '"+name+"', null, '"+jsDateFormat +"')"%>"
    717                     image="calendar.png"
    718                     title="Calendar&hellip;"
    719                     tooltip="Select a date from a calendar"
    720                   />
    721                 </td>
    722                 </tr>
    723                 </table>
    724                 <%
    725               }
    726               %>
    727               </td>
    728             </tr>
    729             <%
    730           }
    731         }
    732         %>
    733       </table>
    734     </t:tab>
    735    
     729              </tr>
     730              <%
     731            }
     732          %>
     733        </table>
     734      </t:tab>
     735    <%
     736    }
     737    %>   
    736738    <t:tab id="members" title="Membership"  tooltip="Manage group and role membership"
    737739      validate="validateMembership()" helpid="user.edit.membership">
  • trunk/www/admin/users/view_user.jsp

    r3535 r3539  
    248248        </table>
    249249       
    250         <h4>Additional information</h4>
    251         <table class="form" cellspacing="0">
    252           <%
    253           List<ExtendedProperty> extendedProperties = ExtendedProperties.getProperties("UserData");
    254           if (extendedProperties != null)
    255           {
     250        <%
     251        List<ExtendedProperty> extendedProperties = ExtendedProperties.getProperties("UserData");
     252        if (extendedProperties != null)
     253        {
     254          %>
     255          <h4>Additional information</h4>
     256          <table class="form" cellspacing="0"> 
     257            <%
    256258            boolean needsTr = true;
    257259            for (ExtendedProperty ep : extendedProperties)
     
    271273            %>
    272274            <%=needsTr ? "" : "</tr>"%>
    273             <%
    274           }
     275          </table>
     276          <%
     277        }
     278        else
     279        {
    275280          %>
    276         </table>
    277        
    278       <%
     281          <h4>Additional information</h4>
     282          There are no additional information
     283          <%
     284        }
     285
    279286      ItemQuery<Group> groupQuery = user.getGroups();
    280287      groupQuery.include(Include.MINE, Include.SHARED, Include.OTHERS, Include.IN_PROJECT);
Note: See TracChangeset for help on using the changeset viewer.