dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #35121
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 18024: Include 'View name' field in the 'details' area of SQL View.
------------------------------------------------------------
revno: 18024
committer: Tran Chau<tran.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-01-16 20:34:21 +0700
message:
Include 'View name' field in the 'details' area of SQL View.
modified:
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/jsonSqlView.vm
dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/sqlView.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-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties 2015-01-13 15:01:23 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/resources/org/hisp/dhis/dataadmin/i18n_module.properties 2015-01-16 13:34:21 +0000
@@ -366,4 +366,5 @@
update_the_data_elements_and_option_combos_in_expression = Update the data elements and option combos in expression
org_unit_group_does_not_exist=Org unit group does not exist
duplicate_periods=Duplicate periods
-remove_expired_invitations=Remove expired invitations
\ No newline at end of file
+remove_expired_invitations=Remove expired invitations
+view_name=View name
\ No newline at end of file
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js 2014-11-24 19:09:53 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/sqlView.js 2015-01-16 13:34:21 +0000
@@ -36,6 +36,7 @@
jQuery.postJSON('getSqlView.action', { id: context.id }, function( json ) {
setInnerHTML('nameField', json.sqlView.name);
+ setInnerHTML('viewNameField', json.sqlView.viewName);
var description = json.sqlView.description;
setInnerHTML('descriptionField', description ? description : '[' + i18n_none + ']');
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/jsonSqlView.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/jsonSqlView.vm 2014-06-13 09:05:03 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/jsonSqlView.vm 2015-01-16 13:34:21 +0000
@@ -1,6 +1,7 @@
{ "sqlView":
{
"name": "$!encoder.jsonEncode( ${sqlViewObject.name} )",
+ "viewName": "$!encoder.jsonEncode( ${sqlViewObject.getViewName()} )",
"uid": "$!{sqlViewObject.uid}",
"description": "$!encoder.jsonEncode( ${sqlViewObject.description} )",
"sqlquery": "$!encoder.jsonEncode( ${sqlViewObject.sqlQuery} )"
=== modified file 'dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/sqlView.vm'
--- dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/sqlView.vm 2014-11-01 21:22:12 +0000
+++ dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/sqlView.vm 2015-01-16 13:34:21 +0000
@@ -67,6 +67,7 @@
<a href="javascript:hideDetails()" title="$i18n.getString( 'hide_details' )"><img src="../images/hide.png" alt="$i18n.getString( 'hide_details' )"/></a>
</div>
<p><label>$i18n.getString( "name" ):</label><br/><span id="nameField"></span></p>
+ <p><label>$i18n.getString( "view_name" ):</label><br/><span id="viewNameField"></span></p>
<p><label>$i18n.getString( "description" ):</label><br/><span id="descriptionField"></span></p>
<p><label>$i18n.getString( "id" ):</label><br/><span id="idField"></span></p>
</div>