Godwin
9 years ago
10 changed files with 69 additions and 13 deletions
@ -0,0 +1,30 @@ |
|||
(function() { |
|||
var body = document.querySelector('body'); |
|||
var primaryContent = document.getElementById('primary-content'); |
|||
var eventDlg = document.getElementById('event-dlg'); |
|||
|
|||
forEachElement('.event-detail-link', function(link) { |
|||
var eventDetails = link.parentElement.querySelector('.event-details'); |
|||
var moreDetails = eventDlg.querySelector('.more-details'); |
|||
|
|||
link.addEventListener('click', function(event) { |
|||
event.preventDefault(); |
|||
eventDlg.querySelector('.event-details').innerHTML = eventDetails.innerHTML; |
|||
var href = eventDetails.getAttribute('data-href'); |
|||
if (href) { |
|||
moreDetails.setAttribute('href', href); |
|||
moreDetails.classList.remove('hidden'); |
|||
} else { |
|||
moreDetails.classList.add('hidden'); |
|||
} |
|||
window.openOverlay(eventDlg, primaryContent, body); |
|||
|
|||
var closeDlg = function(event) { |
|||
event.preventDefault(); |
|||
window.closeOverlay(eventDlg, primaryContent, body); |
|||
}; |
|||
eventDlg.querySelector('.close-btn').onclick = closeDlg; |
|||
document.getElementById('overlay').onclick = closeDlg; |
|||
}); |
|||
}); |
|||
})(); |
@ -1,10 +1,7 @@ |
|||
= row do |
|||
= columns(medium: 12) do |
|||
%h2=_'articles.permission_denied.headings.confirm_email','Please confirm your email address' |
|||
= columns(medium: 6, large: 5) do |
|||
= form_tag :do_confirm, :authenticity_token => false do |
|||
.email-field.input-field |
|||
= email_field_tag :email, nil, required: true |
|||
= label_tag :email |
|||
= form_tag :do_confirm, :authenticity_token => false, class: 'flex-form' do |
|||
= emailfield :email, nil, required: true, big: true |
|||
= hidden_field_tag :token, @confirmation.token |
|||
= button_tag :login |
|||
|
@ -1,4 +1,4 @@ |
|||
= row do |
|||
= columns(medium: 12) do |
|||
%h2=_'articles.permission_denied.headings.confirmation_sent','Confirmation Sent' |
|||
%h2=_'articles.permission_denied.headings.confirmation_sent' |
|||
%p=_'articles.conference_registration.paragraphs.email_confirm', :p |
|||
|
@ -1 +1 @@ |
|||
Sent. |
|||
%p= _'articles.conference_registration.paragraphs.admin.broadcast.sent' |
|||
|
Loading…
Reference in new issue