mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-10 04:25:44 +03:00
Manage Pledge: Enable pledge admins to edit contributors from manage form (#108)
* Add contributor management to manage form * Check `pledge_id` to prevent returning all contributors * Return a plain text error string – this is used in an alert box, so it can't contain HTML * Hide confirmation when pledge is a draft * Only enqueue script if the user is authorized
This commit is contained in:
parent
286e6d55ef
commit
544fe39199
8 changed files with 110 additions and 18 deletions
|
@ -55,10 +55,67 @@
|
|||
}
|
||||
}
|
||||
|
||||
input[type="submit"] {
|
||||
input[type="submit"],
|
||||
.button-primary {
|
||||
display: inline-block;
|
||||
height: auto;
|
||||
padding: ms(-3) ms(0);
|
||||
font-weight: 600;
|
||||
}
|
||||
|
||||
.contributor-list-heading {
|
||||
margin: 1rem 0;
|
||||
}
|
||||
|
||||
.contributor-list {
|
||||
margin-bottom: 1.5rem;
|
||||
|
||||
th,
|
||||
td,
|
||||
th *,
|
||||
td * {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
thead {
|
||||
background-color: #fff;
|
||||
color: inherit;
|
||||
|
||||
th {
|
||||
border-bottom-color: $color-gray-light-700;
|
||||
}
|
||||
}
|
||||
|
||||
tr > * {
|
||||
border-top-color: $color-gray-light-700;
|
||||
|
||||
&:first-child {
|
||||
border-left-color: $color-gray-light-700;
|
||||
}
|
||||
|
||||
&:last-child {
|
||||
border-right-color: $color-gray-light-700;
|
||||
}
|
||||
}
|
||||
|
||||
tr:last-child > * {
|
||||
border-bottom-color: $color-gray-light-700;
|
||||
}
|
||||
|
||||
.avatar {
|
||||
margin-right: 8px;
|
||||
}
|
||||
|
||||
.button-link-delete {
|
||||
text-decoration: none;
|
||||
|
||||
.dashicons {
|
||||
margin-top: -2px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.pledge-contributors.pledge-status__draft .resend-confirm {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue