Skip to content

Commit

Permalink
Adds placeholders for user name and email in the user account informa…
Browse files Browse the repository at this point in the history
…tion of a mobile survey. re #4357
  • Loading branch information
chiatt committed Jan 23, 2019
1 parent 5c1e52e commit 1401985
Showing 1 changed file with 19 additions and 4 deletions.
23 changes: 19 additions & 4 deletions arches/app/templates/views/mobile-survey-designer.htm
Original file line number Diff line number Diff line change
Expand Up @@ -587,8 +587,8 @@ <h1 class="page-header text-overflow mobile-designer-title">
</div>

<!-- Account Summary Panel -->
<div class="msm-account-summary-panel" style="">
<div class="mpm-group-panel-header">
<div class="msm-account-summary-panel">
<div class="mpm-group-panel-header" style="border-left: 1px solid #ccc;">
<h4 class="msm-group-label">{% trans "Account Summary" %}</h4>
<div class="msm-basemap-subtitle">
{% trans "User identification and data editing statistics" %}
Expand All @@ -598,20 +598,34 @@ <h4 class="msm-group-label">{% trans "Account Summary" %}</h4>
<div class="mpm-user-panel-content">
<!--ko if: mobilesurvey.selectedUser() -->
<!-- User Name -->
<!--ko if: mobilesurvey.selectedUser().first_name || mobilesurvey.selectedUser().last_name-->
<div class="msm-stat-user-panel">
<span class="msm-stat-user" data-bind="text: mobilesurvey.selectedUser().first_name + ' ' + mobilesurvey.selectedUser().last_name"></span>
</div>
<div class="msm-stat-label">
{% trans 'User Name' %}
</div>
<!--/ko-->
<!--ko ifnot: mobilesurvey.selectedUser().first_name || mobilesurvey.selectedUser().last_name-->
<div class="msm-stat-label">
{% trans 'No user name' %}
</div>
<!--/ko-->

<!-- User Email -->
<!--ko if: mobilesurvey.selectedUser().email -->
<div class="msm-stat-user-panel">
<span class="msm-stat-user" data-bind="text: mobilesurvey.selectedUser().email"></span>
</div>
<div class="msm-stat-label">
{% trans 'User Email' %}
</div>
<!--/ko-->
<!--ko if: mobilesurvey.selectedUser().email -->
<div class="msm-stat-label">
{% trans 'No user email' %}
</div>
<!--/ko-->


<!-- Last Synch -->
<div class="msm-stat-user-panel">
Expand Down Expand Up @@ -664,7 +678,8 @@ <h4 class="msm-group-label">{% trans "Account Summary" %}</h4>
data: {name: {% trans "'Data'" %}, namelong: {% trans "'Data Download'" %}, description: {% trans "'Define the data you will allow users to download'" %}},
people: {name: {% trans "'People'" %}, namelong: {% trans "'People'" %}, description: {% trans "'Summary of people invited to participate in this survey'" %}},
groupplaceholder: {% trans "'Select one or more groups...'" %},
modelplaceholder: {% trans "'Select one or more resource models...'" %}
modelplaceholder: {% trans "'Select one or more resource models...'" %},
loadingmessage: {% trans "'Saving survey - this may take a few minutes'" %}
}
};
});{% endautoescape %}
Expand Down

0 comments on commit 1401985

Please sign in to comment.