-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 234-multi-facility-small
- Loading branch information
Showing
12 changed files
with
352 additions
and
170 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{% if error %} | ||
<div class="notification is-danger" style="margin: 0;"> | ||
{{ error }} | ||
</div> | ||
{% endif %} | ||
|
||
{% if success %} | ||
<div data-success="true"></div> | ||
{% endif %} | ||
|
||
<input name="place_type" value="{{contactType.name}}" hidden /> | ||
<input name="op" value="{{op}}" hidden /> | ||
|
||
{% if confirm %} | ||
{% include "components/manage_hierarchy_warning" %} | ||
{% endif %} | ||
|
||
<div {% if confirm %}hidden{% endif %}> | ||
<section class="section is-small"> | ||
<h1 class="subtitle">{{ sourceDescription }}</h1> | ||
{% for hierarchy in sourceHierarchy %} | ||
{% | ||
include "components/search_input.html" | ||
type=contactType.name | ||
hierarchy=hierarchy | ||
data=data | ||
required=hierarchy.required | ||
prefix="source_" | ||
%} | ||
{% endfor %} | ||
</section> | ||
|
||
{% if destinationHierarchy.size > 0 %} | ||
<section class="section is-small"> | ||
<h1 class="subtitle">{{ destinationDescription }}</h1> | ||
{% for hierarchy in destinationHierarchy %} | ||
{% | ||
include "components/search_input.html" | ||
type=contactType.name | ||
hierarchy=hierarchy | ||
data=data | ||
required=hierarchy.required | ||
prefix="destination_" | ||
%} | ||
{% endfor %} | ||
</section> | ||
{% endif %} | ||
|
||
<div class="field is-grouped is-grouped-right"> | ||
<div class="control"> | ||
<button id="place_create_submit" class="button is-link">{{ op | capitalize }}</button> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<section class="section is-small"> | ||
<h1 class="subtitle">Confirm you want to {{ op }} this:</h1> | ||
<table class="table is-bordered is-fullwidth"> | ||
<tbody> | ||
{% for hierarchy in sourceHierarchy %} | ||
{% capture property_name %}source_{{ hierarchy.property_name }}{% endcapture %} | ||
{%if data[property_name] and data[property_name] != empty %} | ||
<tr> | ||
<td>Source {{ hierarchy.friendly_name }}</td> | ||
<td>{{ data[property_name] }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
{% for hierarchy in destinationHierarchy %} | ||
{% capture property_name %}destination_{{ hierarchy.property_name }}{% endcapture %} | ||
{%if data[property_name] and data[property_name] != empty %} | ||
<tr> | ||
<td>Destination {{ hierarchy.friendly_name }}</td> | ||
<td>{{ data[property_name] }}</td> | ||
</tr> | ||
{% endif %} | ||
{% endfor %} | ||
|
||
<tr> | ||
<td># of Affected Contacts</td> | ||
<td>{{ warningInfo.affectedPlaceCount }}</td> | ||
</tr> | ||
|
||
<tr> | ||
<td>User's Last Sync</td> | ||
<td>{{ warningInfo.lastSyncDescription }}</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
|
||
{% if isPermanent %}<span class="tag is-warning">Cannot be undone</span>{% endif %} | ||
{% if warningInfo.userIsActive %}<span class="tag is-warning">User is active</span>{% endif %} | ||
{% if warningInfo.lotsOfPlaces %}<span class="tag is-warning">Large amount of data</span>{% endif %} | ||
|
||
<div class="field is-grouped is-grouped-right"> | ||
<div class="control"> | ||
<button id="place_create_submit" class="button is-link">Confirm {{ op | capitalize }}</button> | ||
<a href="/manage-hierarchy/{{ op }}/{{ contactType.name }}" class="button">Cancel</a> | ||
</div> | ||
</div> | ||
|
||
<input name="confirmed" value="true" hidden /> | ||
</section> |
Oops, something went wrong.