-
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.
[web] add more notification management
- Loading branch information
Showing
15 changed files
with
547 additions
and
67 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
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
27 changes: 27 additions & 0 deletions
27
internal/server/web/partials/notifications/delete-notification-modal.mustache
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,27 @@ | ||
<div class="modal fade" id="delete-notification-modal" tabindex="-1" role="dialog" | ||
aria-labelledby="delete-notifications-modal-title" | ||
aria-hidden="true"> | ||
<div class="modal-dialog modal-dialog-centered modal" role="document"> | ||
<div class="modal-content bg-my_grey"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="delete-notifications-modal-title">Delete Notification</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p> | ||
<span class="d-none" | ||
id="last-token-hint">This is the last token subscribed to this notification.</span> | ||
You are going to delete this notification. Are you sure? | ||
</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button> | ||
<button type="button" class="btn btn-danger" data-dismiss="modal" | ||
onclick="deleteNotification()">Delete Notification | ||
</button> | ||
</div> | ||
</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
40 changes: 0 additions & 40 deletions
40
internal/server/web/partials/notifications/modify-container.mustache
This file was deleted.
Oops, something went wrong.
74 changes: 74 additions & 0 deletions
74
internal/server/web/partials/notifications/new-notification-modal.mustache
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,74 @@ | ||
{{#new-notification-modal}} | ||
<div class="modal fade" id="new-notification-modal" tabindex="-1" role="dialog" | ||
aria-labelledby="new-notifications-modal-title" | ||
aria-hidden="true"> | ||
<div class="modal-dialog modal-dialog-centered modal-xl" role="document"> | ||
<div class="modal-content bg-my_grey"> | ||
<div class="modal-header"> | ||
<h5 class="modal-title" id="new-notifications-modal-title"> | ||
<span class="new-notification-content">New Notification</span> | ||
<span class="only-add-tokens-content">Add Token to Notification</span> | ||
</h5> | ||
<button type="button" class="close" data-dismiss="modal" aria-label="Close"> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<div class="new-notification-content"> | ||
<div class="alert border"> | ||
<h5>Select Notification Classes</h5> | ||
<ul class="list-group bg-my_grey list-group-striped"> | ||
{{#notification-classes}} | ||
{{> capabilities/part}} | ||
{{/notification-classes}} | ||
</ul> | ||
</div> | ||
<div> | ||
<h5>Tokens</h5> | ||
<div class="custom-control custom-switch"> | ||
<input type="checkbox" class="custom-control-input" | ||
id="new-notification-user-wide-input"> | ||
<label class="custom-control-label" for="new-notification-user-wide-input">User | ||
Wide</label> | ||
</div> | ||
<small class="form-text text-muted mb-2">User wide notifications apply to all your | ||
mytokens.</small> | ||
</div> | ||
<div class="row"> | ||
<button class="btn-success btn mx-3 new-notification-save-btn user-wide-toggle-effected d-none col"> | ||
<i class="sticky-center mx-auto fas fa-plus"></i> Create User-Wide Notification | ||
</button> | ||
</div> | ||
</div> | ||
|
||
<div class="only-add-tokens-content"> | ||
<p> | ||
Select tokens to add to this notification. | ||
</p> | ||
</div> | ||
|
||
<div class="row mx-1 user-wide-toggle-effected" id="tokens-notifications-select-content"> | ||
<button class="btn-success btn col mr-2 d-inline-flex align-items-start new-notification-save-btn" | ||
style="max-width:5%;" | ||
data-toggle="tooltip" data-placement="top" data-original-title="Save"> | ||
<i class="sticky-center mx-auto fas fa-save"></i></button> | ||
<table class="col table table-hover table-grey"> | ||
<thead> | ||
<tr> | ||
<th></th> | ||
<th style="min-width: 35%;">Token Name</th> | ||
<th>Created</th> | ||
<th>Created from IP</th> | ||
<th>Expires</th> | ||
<th></th> | ||
</tr> | ||
</thead> | ||
<tbody id="notifications-all-tokens-to-subscribe-table"> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
{{/new-notification-modal}} |
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
Oops, something went wrong.