-
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.
- Loading branch information
1 parent
553072d
commit 9e7f5b3
Showing
3 changed files
with
31 additions
and
30 deletions.
There are no files selected for viewing
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 |
---|---|---|
@@ -1,30 +1,31 @@ | ||
<div class="actions"> | ||
|
||
<div class="top"> | ||
<div class="dropdown-button"> | ||
<button class="clear-btn"><img src="/public/images/plus.svg"> {{contactType.friendly}}</button> | ||
<div class="dropdown-content"> | ||
<a href="/add-place?type={{ contactType.name }}&op=new">Create New</a> | ||
<a href="/add-place?type={{ contactType.name }}&op=replace">Replace Existing</a> | ||
<a href="/add-place?type={{ contactType.name }}&op=bulk">Upload from CSV</a> | ||
</div> | ||
<div class="top"> | ||
<div class="dropdown-button"> | ||
<button class="clear-btn"><img src="/public/images/plus.svg"> {{contactType.friendly}}</button> | ||
<div class="dropdown-content"> | ||
<a href="/add-place?type={{ contactType.name }}&op=new">Create New</a> | ||
<a href="/add-place?type={{ contactType.name }}&op=replace">Replace Existing</a> | ||
<a href="/add-place?type={{ contactType.name }}&op=bulk">Upload from CSV</a> | ||
</div> | ||
<button class="clear-btn" onclick="window.location.href='/move/{{ contactType.name }}'"> | ||
<img src="/public/images/move.svg">Move {{contactType.friendly}} | ||
</button> | ||
</div> | ||
<div id = "action_buttons_{{contactType.name}}" hx-swap-oob="true" class="bottom"> | ||
{% if directiveModel.validationErrorCount > 0 or directiveModel.totalCount == 0 %} | ||
<div data-toggle="tooltip" title="Fix invalid users"> | ||
<button class="clear-btn disabled" hx-post="/app/apply-changes?type={{ contactType.name }}" hx-swap="none" disabled> | ||
<img src="/public/images/upload-users.svg"> Upload All | ||
</button> | ||
</div> | ||
{% else %} | ||
<button class="clear-btn" hx-post="/app/apply-changes?type={{ contactType.name }}" hx-swap="none"> | ||
<button class="clear-btn" onclick="window.location.href='/move/{{ contactType.name }}'"> | ||
<img src="/public/images/move.svg">Move {{contactType.friendly}} | ||
</button> | ||
</div> | ||
<div class="bottom" id="action_buttons_{{contactType.name}}" hx-swap-oob="true"> | ||
{% if directiveModel.validationErrorCount > 0 or directiveModel.totalCount == 0 %} | ||
<div data-toggle="tooltip" title="Fix invalid users"> | ||
<button class="clear-btn disabled" hx-post="/app/apply-changes?type={{ contactType.name }}" hx-swap="none" | ||
disabled> | ||
<img src="/public/images/upload-users.svg"> Upload All | ||
</button> | ||
{% endif %} | ||
{% include "components/button_save_credentials.html" %} | ||
</div> | ||
</div> | ||
{% else %} | ||
<button class="clear-btn" hx-post="/app/apply-changes?type={{ contactType.name }}" hx-swap="none"> | ||
<img src="/public/images/upload-users.svg"> Upload All | ||
</button> | ||
{% endif %} | ||
{% include "components/button_save_credentials.html" %} | ||
</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 |
---|---|---|
|
@@ -49,4 +49,3 @@ | |
</div> | ||
{% endif %} | ||
</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 |
---|---|---|
@@ -1,7 +1,8 @@ | ||
<h3> | ||
Oops...! | ||
</h3> | ||
<p> | ||
<img src="public/images/error.svg"> Looks like you have <b class="error-text"><i>{{directiveModel.validationErrorCount}} Invalid user(s)</i></b>. | ||
Fix them below. | ||
</p> | ||
Oops...! | ||
</h3> | ||
<p> | ||
<img src="public/images/error.svg"> Looks like you have | ||
<b class="error-text"><i>{{directiveModel.validationErrorCount}} Invalid user(s)</i></b>. | ||
Fix them below. | ||
</p> |