forked from data.coop/membersystem
Compare commits
No commits in common. "8e7291e5bfc631459dc246ae1b89ed5bece85eba" and "a0bbc3adc03ec7e960e713387dafab050e551a73" have entirely different histories.
8e7291e5bf
...
a0bbc3adc0
|
@ -441,48 +441,10 @@ span.time_remaining {
|
|||
display : flex;
|
||||
justify-content : center;
|
||||
list-style : none;
|
||||
padding : var(--half-space) 0;
|
||||
padding : 0;
|
||||
margin : 0;
|
||||
}
|
||||
|
||||
.pagination > li {
|
||||
margin : 0 var(--half-space);
|
||||
}
|
||||
|
||||
.pagination > li:first-child {
|
||||
margin-right : var(--double-space);
|
||||
}
|
||||
|
||||
.pagination > li:last-child {
|
||||
margin-left : var(--double-space);
|
||||
}
|
||||
|
||||
.pagination .page-item {
|
||||
border : 1px solid var(--fade);
|
||||
padding : var(--quarter-space) var(--half-space);
|
||||
border-radius : var(--half-space);
|
||||
background : var(--light-dust);
|
||||
font-size : 0.78em;
|
||||
}
|
||||
|
||||
.pagination .page-link {
|
||||
padding : var(--half-space);
|
||||
color : var(--twilight);
|
||||
}
|
||||
|
||||
.pagination .page-item.active {
|
||||
background : var(--twilight);
|
||||
}
|
||||
|
||||
.pagination .page-item.active .page-link {
|
||||
color : var(--light-dust);
|
||||
font-weight : bold;
|
||||
}
|
||||
|
||||
.pagination .page-item.disabled {
|
||||
opacity : 0.6;
|
||||
}
|
||||
|
||||
.pagination .page-item.disabled .page-link {
|
||||
cursor : default;
|
||||
margin : 0 var(--half-space);
|
||||
}
|
||||
|
|
|
@ -17,10 +17,10 @@
|
|||
{% csrf_token %}
|
||||
<fieldset class="blockLabels">
|
||||
<div class="buttonHolder">
|
||||
<button class="small" type="submit" name="action_primary" style="float:right">+ Add Email</button>
|
||||
<button class="small" disabled type="submit" id="action_primary" name="action_primary">Make Primary</button>
|
||||
<button class="small" type="submit" name="action_send">Re-send Verification</button>
|
||||
<button class="small" type="submit" name="action_remove">Remove</button>
|
||||
<button class="btn small btn-success" type="submit" name="action_primary" style="float:right">+ Add Email</button>
|
||||
<button class="btn small btn-success" disabled type="submit" name="action_primary">Make Primary</button>
|
||||
<button class="btn small btn-primary" type="submit" name="action_send">Re-send Verification</button>
|
||||
<button class="btn small btn-danger" type="submit" name="action_remove">Remove</button>
|
||||
</div>
|
||||
<table class="table" id="user_email_table">
|
||||
<thead>
|
||||
|
@ -45,7 +45,6 @@
|
|||
{% if emailaddress.primary or user.emailaddress_set.count == 1 %}
|
||||
checked="checked"
|
||||
{% endif %}
|
||||
class="{% if emailaddress.primary %}primary_email{% endif %}"
|
||||
/>
|
||||
</td>
|
||||
<td>
|
||||
|
@ -105,15 +104,6 @@
|
|||
}
|
||||
});
|
||||
}
|
||||
|
||||
let radio_actions = document.getElementsByName('email');
|
||||
if (radio_actions.length) {
|
||||
for (radio of radio_actions) {
|
||||
radio.addEventListener("change", function (e) {
|
||||
document.getElementById('action_primary').disabled = e.target.classList.contains('primary_email')
|
||||
});
|
||||
}
|
||||
}
|
||||
})();
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Reference in a new issue