/SampleApplication/ColdBox3/views/artist/index.cfm

http://github.com/bobsilverberg/ValidateThisColdBoxPlugin · ColdFusion · 32 lines · 28 code · 4 blank · 0 comment · 0 complexity · 74afbd3687fc849b25946bd118c66bc5 MD5 · raw file

  1. <cfoutput>
  2. <h1>User List</h1>
  3. <cfif flash.exists( "message" )>
  4. <div class="messagebox">#flash.get( "message" )#</div>
  5. </cfif>
  6. <p><a href="#Event.BuildLink( 'artist.maintain' )#">Add</a></p>
  7. <table>
  8. <thead>
  9. <tr>
  10. <th>Whom</th>
  11. <th>Has Art?</th>
  12. <th>Actions</th>
  13. </tr>
  14. </thead>
  15. <tbody>
  16. <cfloop array="#rc.artists#" index="Artist">
  17. <tr>
  18. <th>#Artist.getFullname()#</a></th>
  19. <th>#Artist.hasArt()#</a></th>
  20. <td>
  21. <a href="#Event.BuildLink( 'artist.maintain' & ".artistid." & Artist.getArtistID() )#">Edit</a> |
  22. <a href="#Event.BuildLink( 'artist.delete' & ".artistid." & Artist.getArtistID() )#">Delete</a>
  23. </td>
  24. </tr>
  25. </cfloop>
  26. </tbody>
  27. </table>
  28. </cfoutput>