53c1df8248
- The subscription panel is placed in the "mysettings" menu (not anymmore a popup) - A Unsubscribe button were added. It removes the email if found - The 2 options to receive a mail when someone is starting to edit and finished to edit can be chosen for each user (at least one of the two is compulsory) - First time you go on the email notification panel in the mysettings menu, a call is made to get the email and options already subscribed for this userId * If found, the form is pre-filled with the datas * If not, the form is set with defaults values It's just informative. Users can still subscribe another mail for this userId. - Removed the integration of this plugin in the "Share this pad" menu. First becaue, imo, it's not the place, and second, because it meant 2 forms with the same id.
20 lines
901 B
Text
20 lines
901 B
Text
<p>
|
|
<input type="checkbox" id="options-emailNotifications"></input>
|
|
<label for="options-emailNotifications">Email Notifications</label>
|
|
<div class="ep_email_settings">
|
|
<form class='ep_email_form'>
|
|
<input id='ep_email' class='ep_email_input' placeholder='your@email.com' type=email>
|
|
<label>Send a mail when someone..</label>
|
|
<br />
|
|
<input type="checkbox" style="margin-left:0.3em;" id="ep_email_onStart"></input>
|
|
<label for="ep_email_onStart">starts editing the pad</label>
|
|
<br />
|
|
<input type="checkbox" style="margin-left:0.3em;" id="ep_email_onEnd"></input>
|
|
<label for="ep_email_onEnd">finish editing the pad</label>
|
|
<input id='ep_email_option'type=hidden >
|
|
</form>
|
|
<br />
|
|
<input style="padding:5px;" id='ep_email_subscribe' type=button value=subscribe>
|
|
<input style="padding:5px;" id='ep_email_unsubscribe'type=button value=unsubscribe>
|
|
</div>
|
|
</p>
|