Source: site.view [edit]
Function name: editSpeaker
Arguments: speakerName
Description:
Page type: webl
Render function:  
Module: speakaboutai

Page source:

var Speakers = WubCall("speakaboutai.speakerslist", []);

var theSpeaker;
every speaker in Speakers do
   if speakerName == speaker.name then
      theSpeaker = speaker
   end;
end;

var form = `<center><h1>Edit Speaker</h1>
<form action="/webl/WubHub_DoIt" method="post">
   <input name="cmdline" value="speakaboutai.updateSpeaker(name,url,imageUrl,tags,summary,biography,keynotes,long,boost)" type="hidden"/><p>
   <table> <tr><td>
   Name: </td><td><input name="name" value="` + (Str_Trim(theSpeaker.name) ? "") + `" size="60" title="Name"/>
      </td></tr><tr><td>   
   Url: </td><td>  <input name="url" value="` + (Str_Trim(theSpeaker.url) ? "") + `" size="60" title="Url"/>
      </td></tr><tr><td>     
   Image: </td><td><input name="imageUrl" value="` + (Str_Trim(theSpeaker.imageUrl) ? "") + `" size="60" title="Image"/>
      </td></tr><tr><td>     
   Tags:   </td><td><input name="tags" value="` + (Str_Trim(theSpeaker.tags) ? "") + `" size="60" title="Tags"/>
      </td></tr><tr><td>  
   Summary:   </td><td><textarea name="summary" cols="45" rows="3" title="Summary"/>` + (Str_Trim(theSpeaker.summary) ? "") + `</textarea>
      </td></tr><tr><td>  
   Keynote Topics:   </td><td><textarea name="keynotes" cols="45" rows="3" title="Keynotes"/>` + (Str_Trim(theSpeaker.keynotes) ? "") + `</textarea>
      </td></tr><tr><td>
   Biography:   </td><td><textarea name="biography" cols="45" rows="10" title="Biography"/>` + (Str_Trim(theSpeaker.biography) ? "") + `</textarea>
      </td></tr><tr><td>  
   Long Bio:   </td><td><textarea name="long" cols="45" rows="15" title="Long Bio"/>` + (Str_Trim(theSpeaker.long) ? "") + `</textarea>
      </td></tr><tr><td>     
   Boost: </td><td>  <input name="boost" value="` + (Str_Trim(theSpeaker.boost) ? "50") + `" size="3" title="Boost"/>
      </td></tr></table>

   <input type="submit" value="Update Speaker Info">
</form></center>
`;

NewPage(form, "text/html");