-
Notifications
You must be signed in to change notification settings - Fork 469
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #543 from ever-co/develop
Develop
- Loading branch information
Showing
17 changed files
with
225 additions
and
12 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 |
---|---|---|
|
@@ -6,6 +6,13 @@ We would love for you to contribute to Ever Platform! | |
|
||
If you're changing the structure of the repository please create an issue first. | ||
|
||
By default, when you submitting contributions with Pull Requests, we require electronic submission of individual [Contributor Assignment Agreement (CAA)](https://gist.github.com/evereq/95f74ae09510766ffa9379006715ccfd). In some cases (when contributions are very small, at our discretion) instead of CAA we may accept submission of individual [Contributor License Agreement (CLA)](https://gist.github.com/evereq/53ddec283243481344fb61df1706ec40). | ||
|
||
If you submitting contribution on behalf of some legal entity, you need to submit Entity Contributor Assignment Agreement (CAA) or Entity Contributor License Agreement (CLA), which you can request by sending us an email to [email protected]. | ||
|
||
We are using open-source [CLA assistant](https://github.com/cla-assistant/cla-assistant) project to collect your signatures on CAA. | ||
The templates for our CAA/CLA documents generated by http://www.harmonyagreements.org. | ||
|
||
## Submitting bug reports | ||
|
||
Make sure you are on latest changes. | ||
|
@@ -19,6 +26,6 @@ You are more than welcome to submit future requests here https://github.com/ever | |
|
||
This is an open source project. | ||
Contributions you make to this public Ever Platform repository are completely voluntary. | ||
When you submit an issue, bug report, question, enhancement, pull request, etc., you are offering your contribution without expectation of payment, | ||
you expressly waive any future pay claims against the Ever Co. LTD related to your contribution, and you acknowledge that this does not create an obligation on the part of the Ever Co. LTD of any kind. | ||
Furthermore, your contributing to this project does not create an employer-employee relationship between the Ever Co. LTD and the contributor. | ||
When you submit an issue, bug report, question, enhancement, pull request, etc., you are offering your contribution without expectation of payment, you expressly waive any future pay claims against the Ever Co. LTD related to your contribution, and you acknowledge that this does not create an obligation on the part of the Ever Co. LTD of any kind. Furthermore, your contributing to this project does not create an employer-employee relationship between the Ever Co. LTD and the contributor. | ||
|
||
See also "Submitting Pull Requests" section above for more information on CAA/CLA, required for any contributions. |
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
37 changes: 37 additions & 0 deletions
37
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.component.html
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,37 @@ | ||
<div class="modal-header"> | ||
<h4 class="modal-title" id="modal-title">Profile Ban</h4> | ||
<button | ||
type="button" | ||
class="close" | ||
aria-label="Close button" | ||
aria-describedby="modal-title" | ||
(click)="modal.dismiss()" | ||
> | ||
<span aria-hidden="true">×</span> | ||
</button> | ||
</div> | ||
<div class="modal-body"> | ||
<p> | ||
<strong | ||
>Are you sure you want to {{ user.isBanned ? 'unban' : 'ban' }} | ||
<span class="text-primary">"{{ user.name }}"</span>?</strong | ||
> | ||
</p> | ||
</div> | ||
<div class="modal-footer"> | ||
<button | ||
type="button" | ||
class="btn btn-outline-secondary" | ||
(click)="modal.dismiss()" | ||
> | ||
Cancel | ||
</button> | ||
<button | ||
type="button" | ||
ngbAutofocus | ||
class="btn btn-danger" | ||
(click)="modal.close(user.id)" | ||
> | ||
Ok | ||
</button> | ||
</div> |
Empty file.
15 changes: 15 additions & 0 deletions
15
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.component.ts
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,15 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap'; | ||
import { CustomerViewModel } from 'app/pages/+customers/customers.component'; | ||
|
||
@Component({ | ||
selector: 'ea-ban-confirm', | ||
templateUrl: './ban-confirm.component.html', | ||
styleUrls: ['./ban-confirm.component.scss'] | ||
}) | ||
export class BanConfirmComponent implements OnInit { | ||
@Input() user: CustomerViewModel; | ||
constructor(private readonly modal: NgbActiveModal) {} | ||
|
||
ngOnInit() {} | ||
} |
11 changes: 11 additions & 0 deletions
11
admin/website-angular/src/app/@shared/user/ban-confirm/ban-confirm.module.ts
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,11 @@ | ||
import { NgModule } from '@angular/core'; | ||
import { CommonModule } from '@angular/common'; | ||
import { BanConfirmComponent } from './ban-confirm.component'; | ||
|
||
@NgModule({ | ||
declarations: [BanConfirmComponent], | ||
exports: [BanConfirmComponent], | ||
entryComponents: [BanConfirmComponent], | ||
imports: [CommonModule] | ||
}) | ||
export class BanConfirmModule {} |
2 changes: 2 additions & 0 deletions
2
admin/website-angular/src/app/@shared/user/ban-confirm/index.ts
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,2 @@ | ||
export * from './ban-confirm.module'; | ||
export * from './ban-confirm.component'; |
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
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
Oops, something went wrong.