Skip to content

Commit

Permalink
Merge pull request #4484 from archesproject/4401_lock_synced_survey
Browse files Browse the repository at this point in the history
Notifies user when some features of the MSM are immutable
  • Loading branch information
chiatt authored Jan 28, 2019
2 parents 5e36b82 + 8d2abfc commit c457479
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
9 changes: 9 additions & 0 deletions arches/app/media/css/arches.css
Original file line number Diff line number Diff line change
Expand Up @@ -9276,6 +9276,15 @@ a.clear-geojson-button:hover {
overflow-y: auto;
}

.msm-locked-warning {
height: 40px;
background: #999;
color: #fff;
padding-left: 10px;
position: relative;
padding-top: 10px;
}

.msm-list-filter {
display: flex;
padding: 12px 10px 13px 65px;
Expand Down
5 changes: 5 additions & 0 deletions arches/app/templates/views/mobile-survey-designer.htm
Original file line number Diff line number Diff line change
Expand Up @@ -422,6 +422,7 @@ <h1 class="page-header text-overflow mobile-designer-title">
<!--/ko-->

<!--ko if: activePage() === 'resourcemodel'-->
<div class='msm-locked-warning' data-bind="visible: locked">{% trans 'These options cannot be modified because users have already synched with this survey.' %}</div>
<div class="mpm-card-content mpm-crud-section">

<div class="account-label">{% trans 'Data entry cards selected for this survey:' %}</div>
Expand All @@ -442,6 +443,7 @@ <h1 class="page-header text-overflow mobile-designer-title">

<!-- Models Card -->
<!--ko if: activePage() === 'models'-->
<div class='msm-locked-warning' data-bind="visible: locked">{% trans 'These options cannot be modified because users have already synched with this survey.' %}</div>
<div class="mpm-card-content selection-page model-selection">

<!-- Icon and Title -->
Expand Down Expand Up @@ -473,6 +475,7 @@ <h1 class="page-header text-overflow mobile-designer-title">

<!-- Data Card -->
<!--ko if: activePage() === 'data'-->
<div class='msm-locked-warning' data-bind="visible: locked">{% trans 'These options cannot be modified because users have already synched with this survey.' %}</div>
<div class="msm-crud-section" style="height: 200px; border-bottom: transparent;">
<!-- Allow Data Downloads Switch -->
<div class="mpm-item-listing-header data-panel">
Expand Down Expand Up @@ -558,6 +561,7 @@ <h1 class="page-header text-overflow mobile-designer-title">
<!--/ko-->

<!--ko if: activePage() === 'people'-->
<div class='msm-locked-warning' data-bind="visible: locked">{% trans 'These options cannot be modified because users have already synched with this survey.' %}</div>
<div id="models-card">
<div class="mpm-card-content selection-page model-selection">

Expand Down Expand Up @@ -590,6 +594,7 @@ <h1 class="page-header text-overflow mobile-designer-title">

<!--ko if: activePage() === 'identity'-->
<!-- Account Page -->
<div class='msm-locked-warning' data-bind="visible: locked">{% trans 'These options cannot be modified because users have already synched with this survey.' %}</div>
<div id="models-card">
<div class="mpm-card-content group-page">
<div style="display: flex">
Expand Down

0 comments on commit c457479

Please sign in to comment.