dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #40768
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 20737: tracker-capture: minor style fix
------------------------------------------------------------
revno: 20737
committer: Abyot Asalefew Gizaw <abyota@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2015-10-16 07:31:30 +0200
message:
tracker-capture: minor style fix
modified:
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/teiadd/tei-add.html
dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css
--
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-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html 2015-10-05 08:58:13 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/dataentry/dataentry.html 2015-10-16 05:31:30 +0000
@@ -3,7 +3,7 @@
{{dataentryWidget.title| translate}}
<span class="pull-right widget-link">
-
+
<a href ng-click="toggleEventsTableDisplay()" title="{{showEventsAsTables ? 'toggle_table_view_off' : 'toggle_table_view_on'| translate}}" ng-show="stagesCanBeShownAsTable"><span ng-if="!showEventsAsTables"><i class="fa fa-bars vertical-center"></i></span><span ng-if="showEventsAsTables"><i class="fa fa-square vertical-center"></i></span></a>
<a href ng-click="filterEvents = !filterEvents" title="{{filterEvents ? 'list_events' : 'filter_events'| translate}}" ng-show="eventFilteringRequired"><span ng-if="!filterEvents"><i class="fa fa-filter vertical-center"></i></span><span ng-if="filterEvents"><i class="fa fa-list vertical-center"></i></span></a>
<a href ng-click="toggleLegend()" title="{{'event_color_legend'| translate}}" class="small-horizonal-spacing"><i class="fa fa-info-circle vertical-center"></i></a>
@@ -33,7 +33,7 @@
<tr>
<th class="active" style="vertical-align:middle" ng-repeat="stage in programStages">
{{stage.name}}
-
+
<!-- event add/filter icon begins -->
<span class='pull-right'>
@@ -42,7 +42,7 @@
</span>
</span>
<!-- event add/filter icon ends -->
-
+
</th>
</tr>
</thead>
@@ -62,7 +62,7 @@
<span ng-if="eventsByStage[stage.id].length > 1 && filterEvents">
<span ng-if="currentEvent.programStage !== stage.id">
<div class="event-paging">
- <a href class="event-paging" ng-click="showDataEntryForEvent(eventsByStage[stage.id][0])">{{'show_more' | translate}}</a>
+ <a href class="event-paging" ng-click="showDataEntryForEvent(eventsByStage[stage.id][0])">{{'show_more'| translate}}</a>
</div>
</span>
<event-paginator ng-if="stage.id === currentEvent.programStage"></event-paginator>
@@ -192,23 +192,24 @@
<div ng-show="currentEvent" class='remove-default-padding overflow-ellipsis'>
<div class='row'><hr></div>
- <textarea class="form-control" rows="3" ng-model="note" placeholder="{{'add_new_note_here'| translate}}"></textarea>
- <div class="vertical-spacing">
- <button type="button"
- class="btn btn-primary small-horizonal-spacing"
- ng-click="addNote()">
- {{'add'| translate}}
- </button>
- <button type="button"
- class="btn btn-default small-horizonal-spacing"
- ng-click="clearNote()">
- {{'clear'| translate}}
- </button>
+ <div class="add-default-padding">
+ <textarea class="form-control" rows="3" ng-model="note" placeholder="{{'add_new_note_here'| translate}}"></textarea>
+ <div class="vertical-spacing">
+ <button type="button"
+ class="btn btn-primary"
+ ng-click="addNote()">
+ {{'add'| translate}}
+ </button>
+ <button type="button"
+ class="btn btn-default small-horizonal-spacing"
+ ng-click="clearNote()">
+ {{'clear'| translate}}
+ </button>
+ </div>
</div>
-
<table class="table table-striped dhis2-table-hover">
<tr ng-repeat="note in currentEvent.notes">
- <td class="overflow-ellipsis">
+ <td class="add-default-left-padding">
<d2-pop-over content="note" template="popover.html" details="{{'details'| translate}}">
<div>{{note.value}}</div>
</d2-pop-over>
@@ -222,5 +223,6 @@
</tr>
</table>
</div>
+ <div ng-show="currentEvent && !currentEvent.notes" class="alert alert-warning">{{'empty_notes'| translate}}</div>
</div>
-</div>
\ No newline at end of file
+</div>
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html 2015-10-06 15:53:51 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/notes/notes.html 2015-10-16 05:31:30 +0000
@@ -39,7 +39,7 @@
</div>
<table class="table table-striped dhis2-table-hover">
<tr ng-repeat="note in selectedEnrollment.notes| filter:noteSearchText">
- <td>
+ <td class="add-default-left-padding">
<d2-pop-over content="note" template="popover.html" details="{{'details'| translate}}">
<div>{{note.value}}</div>
</d2-pop-over>
@@ -59,4 +59,4 @@
<div class="alert alert-warning">{{'under_construction'| translate}}</div>
</div>
</div>
-</div>
\ No newline at end of file
+</div>
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/teiadd/tei-add.html'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/teiadd/tei-add.html 2015-10-08 11:26:14 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/components/teiadd/tei-add.html 2015-10-16 05:31:30 +0000
@@ -26,7 +26,7 @@
class="form-control"
ng-if="addingRelationship"
ng-change="setRelationshipSides('A')"
- ng-disabled="selectedProgramForRelative && selectedProgram.relatedProgram && relatedProgramRelationship">
+ ng-disabled="selectedProgramForRelative && selectedProgram.relatedProgram && relatedProgramRelationship || !relationship.selected">
<option>{{relationship.selected.aIsToB}}</option>
<option>{{relationship.selected.bIsToA}}</option>
</select>
@@ -50,7 +50,7 @@
ng-model="selectedRelationship.bIsToA"
class="form-control"
ng-change="setRelationshipSides('B')"
- ng-disabled="selectedProgramForRelative && selectedProgram.relatedProgram && relatedProgramRelationship">
+ ng-disabled="selectedProgramForRelative && selectedProgram.relatedProgram && relatedProgramRelationship || !relationship.selected">
<option>{{relationship.selected.aIsToB}}</option>
<option>{{relationship.selected.bIsToA}}</option>
</select>
=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css'
--- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2015-10-02 12:05:43 +0000
+++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-tracker-capture/styles/style.css 2015-10-16 05:31:30 +0000
@@ -568,6 +568,10 @@
margin-top: 15px !important;
}
+.add-default-left-padding {
+ padding-left: 15px !important;
+}
+
.visit-details {
margin-top: -5px;
margin-left: 15px;
@@ -1169,4 +1173,4 @@
.select2-container .select2-choice {
padding: 5px !important;
color: #555 !important;
-}
\ No newline at end of file
+}