dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #29476
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 14899: Support Unique attribute for phone number type in Add/Update attribute.
------------------------------------------------------------
revno: 14899
committer: Tran Chau <tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2014-04-18 18:54:07 +0800
message:
Support Unique attribute for phone number type in Add/Update attribute.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/attribute.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/attribute.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/attribute.js 2014-04-18 10:22:11 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/javascript/attribute.js 2014-04-18 10:54:07 +0000
@@ -87,7 +87,7 @@
disable("optionSetId");
}
- if( type=="number" || type=='string' || type=='letter' ){
+ if( type=="number" || type=='string' || type=='letter' || type=='phoneNumber' ){
enable("unique");
}
else{
@@ -101,7 +101,6 @@
jQuery('#valueType [value=bool]').hide();
jQuery('#valueType [value=trueOnly]').hide();
jQuery('#valueType [value=date]').hide();
- jQuery('#valueType [value=phoneNumber]').hide();
jQuery('#valueType [value=trackerAssociate]').hide();
jQuery('#valueType [value=users]').hide();
jQuery('#valueType [value=combo]').hide();
@@ -111,7 +110,6 @@
jQuery('#valueType [value=bool]').show();
jQuery('#valueType [value=trueOnly]').show();
jQuery('#valueType [value=date]').show();
- jQuery('#valueType [value=phoneNumber]').show();
jQuery('#valueType [value=trackerAssociate]').show();
jQuery('#valueType [value=users]').show();
jQuery('#valueType [value=combo]').show();
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm 2014-04-18 08:58:14 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-program/src/main/webapp/dhis-web-maintenance-program/updateAttibuteForm.vm 2014-04-18 10:54:07 +0000
@@ -67,7 +67,7 @@
<option value="bool" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'bool' ) selected="selected" #end>$i18n.getString( "yes_no" )</option>
<option value="trueOnly" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'trueOnly' ) selected="selected" #end >$i18n.getString( "yes_only" )</option>
<option value="date" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'date' ) selected="selected" #end>$i18n.getString( "date" )</option>
- <option value="phoneNumber" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'phoneNumber' ) selected="selected" #end>$i18n.getString( "phone_number" )</option>
+ <option value="phoneNumber" #if( $attribute.valueType == 'phoneNumber' ) selected="selected" #end>$i18n.getString( "phone_number" )</option>
<option value="trackerAssociate" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'trackerAssociate' ) selected="selected" #end>$i18n.getString( "tracker_associate" )</option>
<option value="users" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'users' ) selected="selected" #end>$i18n.getString( "users" )</option>
<option value="combo" #if( $attribute.unique=='true' ) style='display:none' #end #if( $attribute.valueType == 'combo' ) selected="selected" #end>$i18n.getString( "attribute_combo_type" )</option>