[WTF CVS] wtf/templates/pages/reports team_view.tmpl,1.5,1.6
Brought to you by:
gryphonshafer
|
From: Gryphon S. <gry...@us...> - 2006-11-28 21:58:41
|
Update of /cvsroot/wtf-tracker/wtf/templates/pages/reports In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv22723/templates/pages/reports Modified Files: team_view.tmpl Log Message: Addition of support for an Email Team View to Me button on the Team View page Index: team_view.tmpl =================================================================== RCS file: /cvsroot/wtf-tracker/wtf/templates/pages/reports/team_view.tmpl,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** team_view.tmpl 11 Nov 2006 21:43:14 -0000 1.5 --- team_view.tmpl 28 Nov 2006 21:58:37 -0000 1.6 *************** *** 56,60 **** <label> <input type="checkbox" name="team" value="extended" ! onclick="this.form.download.value = 0; this.form.submit()" <tmpl_if name="extended_team"> checked="checked" --- 56,60 ---- <label> <input type="checkbox" name="team" value="extended" ! onclick="this.form.special_action.value = 'none'; this.form.submit()" <tmpl_if name="extended_team"> checked="checked" *************** *** 68,72 **** <label> <input type="checkbox" name="notes" value="view" ! onclick="this.form.download.value = 0; this.form.submit()" <tmpl_unless name="notes_hide"> checked="checked" --- 68,72 ---- <label> <input type="checkbox" name="notes" value="view" ! onclick="this.form.special_action.value = 'none'; this.form.submit()" <tmpl_unless name="notes_hide"> checked="checked" *************** *** 79,88 **** <p style="clear: both; padding-top: 5px"> ! <input type="submit" value="View Data" onclick="this.form.download.value = 0" /> ! <input type="hidden" name="download" value="0"/> <input type="button" value="Download Data" onclick=" ! this.form.download.value = 1; this.form.submit(); " /> </p> </form> --- 79,97 ---- <p style="clear: both; padding-top: 5px"> ! <input type="submit" value="View Data" onclick="this.form.special_action.value = 'none'" /> ! <input type="hidden" name="special_action" value="none"/> <input type="button" value="Download Data" onclick=" ! this.form.special_action.value = 'download'; this.form.submit(); " /> + <input type="button" value="Email Team View to Me" onclick=" + if ( confirm( + 'This will email the current Team View data excluding the\n' + + 'summary table to your <tmpl_var name="username"> address.' + ) ) { + this.form.special_action.value = 'email'; + this.form.submit(); + } + " /> </p> </form> |