[%# support/request/form.tt Form to manage and append information to a support request Authors: Afuna Copyright (c) 2015 by Dreamwidth Studios, LLC. This program is free software; you may redistribute it and/or modify it under the same terms as Perl itself. For a copy of the license, please reference 'perldoc perlartistic' or 'perldoc perlgpl'. %] [%- CALL dw.ml_scope( "/support/see_request.tt" ) -%]
[%- form.hidden( name = 'spid' value = spid ); form.hidden( name = 'auth' value = auth ); -%]
Reply
  • [% from %]
  • [%- IF faqlist.size -%]
  • [%- form.select( name = "faqid" id = "faqid" items = faqlist ) -%]
  • [%- END -%] [%- IF can.use_stock_answers -%]
  • [%- stock_answers -%]
  • [%- END -%] [%- IF userfacing_actions_list.size > 2 %]
  • [%- form.select( label = dw.ml( ".reply.type" ) name = "replytype" items = userfacing_actions_list ) -%]
  • [%- ELSE; form.hidden( name = "replytype" value = userfacing_actions_list.first ); END -%]
  • [%- form.textarea( label = dw.ml( ".message" ) _ ":" id = "reply" name = "reply" rows = 15 cols = 100 wrap = "virtual" value = reply.initial_text ) -%]
  • [%- '.no.html.allowed3' | ml -%]

[%- IF can.do_internal_actions -%]
[%- form.submit( value = "Quick Submit" name = "submitpost" id = "submitpost" ) -%]
Internal
    [%- IF internal_actions_list.size > 2 %]
  • [%- form.select( label = dw.ml( ".reply.type" ) name = "internaltype" id = "internaltype" items = internal_actions_list ) -%]
  • [%- ELSE; form.hidden( name = "internaltype" value = internal_actions_list.first ); END -%] [%- IF can.change_category -%]
  • [%- form.select( label = dw.ml( '.change.cat' ) name = "changecat" items = catlist ) -%]
  • [%- END -%] [%- IF can.approve_answers -%]
  • [%- form.select( label = dw.ml( '.approve.screened' ) name = "approveans" id = "approveans" items = screenedlist ) -%] [%- form.select( name = 'approveas' items = approve_actions_list ) -%]
  • [%- END -%] [%- IF can.put_in_queue -%]
  • [%- form.checkbox( label = dw.ml( ".put.in.queue" ) name = "touch" id = "touch" value = 1 ) -%] [%- '.use.this.to.re-open' | ml -%]
  • [%- END -%] [%- IF can.take_out_of_queue -%]
  • [%- form.checkbox( label = dw.ml( '.take.out.of.queue' ) name = "untouch" id = "untouch" value = 1 ) -%] [%- '.use.this.to.change.awaiting' | ml -%]
  • [%- END -%] [%- IF can.change_summary -%]
  • [%- form.checkbox( label = dw.ml( '.change.summary' ) name = "changesum" id = "changesum" value = 1 ) -%] [%- form.textbox( name = "summary" size = 50 maxlength = 80 value = request.summary ) -%]
  • [%- END -%]
  • [%- form.textarea( label = "Notes:" id = "internal" name = "internal" rows = 8 cols = 100 wrap = "virtual" ) -%]
[%- END -%]
[%- form.submit( value = dw.ml( is_poster ? ".postbuttoninfo" : ".postbutton" ) name = "submitpost" id = "submitpost" ) -%]