Fossil

Check-in [bb05299e]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Add the "Send a message to ..." link for administrators on the subscription configuration page.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: bb05299ee78c531144a01e1abef0d949655330f985c37fb665501d5f23b9ddfb
User & Date: drh 2020-03-26 13:18:57
Context
2020-03-26
13:53
Validate the email address in the subscription editing form. (check-in: 32a8d110 user: drh tags: trunk)
13:18
Add the "Send a message to ..." link for administrators on the subscription configuration page. (check-in: bb05299e user: drh tags: trunk)
13:11
Improvements to the "Notification" setup screen. Take steps to ensure that the email address does not get cleared when editing subscriber preferences. (check-in: 60d40d5b user: drh tags: trunk)
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/alerts.c.

1642
1643
1644
1645
1646
1647
1648
1649





1650
1651
1652
1653
1654
1655
1656
  }
  form_begin(0, "%R/alerts");
  @ <input type="hidden" name="name" value="%h(zName)">
  @ <table class="subscribe">
  @ <tr>
  @  <td class="form_label">Email&nbsp;Address:</td>
  if( isLogin ){
    @  <td><input type="text" name="semail" value="%h(semail)" size="30"></td>





  }else{
    @  <td>%h(semail)</td>
  }
  @ </tr>
  if( g.perm.Admin ){
    int uid;
    @ <tr>







|
>
>
>
>
>







1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
  }
  form_begin(0, "%R/alerts");
  @ <input type="hidden" name="name" value="%h(zName)">
  @ <table class="subscribe">
  @ <tr>
  @  <td class="form_label">Email&nbsp;Address:</td>
  if( isLogin ){
    @  <td><input type="text" name="semail" value="%h(semail)" size="30">\
    if( g.perm.Admin ){
       @ &nbsp;&nbsp;<a href="%R/announce?to=%t(semail)">\
       @ (Send a message to %h(semail))</a>\
    }
    @ </td>
  }else{
    @  <td>%h(semail)</td>
  }
  @ </tr>
  if( g.perm.Admin ){
    int uid;
    @ <tr>