216 lines
4.9 KiB
Text
216 lines
4.9 KiB
Text
|
|
[%# support/request/form.tt
|
||
|
|
|
||
|
|
Form to manage and append information to a support request
|
||
|
|
|
||
|
|
Authors:
|
||
|
|
Afuna <coder.dw@afunamatata.com>
|
||
|
|
|
||
|
|
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 method='post' action='[% site.root%]/support/append_request' name='supportForm' class='simple-form'>
|
||
|
|
|
||
|
|
[%- form.hidden(
|
||
|
|
name = 'spid'
|
||
|
|
value = spid
|
||
|
|
);
|
||
|
|
|
||
|
|
form.hidden(
|
||
|
|
name = 'auth'
|
||
|
|
value = auth
|
||
|
|
);
|
||
|
|
-%]
|
||
|
|
|
||
|
|
<fieldset class='external odd'>
|
||
|
|
<legend><span>Reply</span></legend>
|
||
|
|
<ul style="margin-top: 1em;">
|
||
|
|
<li><label>[% '.from' | ml %]</label> [% from %]</li>
|
||
|
|
|
||
|
|
[%- IF faqlist.size -%]
|
||
|
|
<li><label for='faqid'>[% dw.ml( ".reference") _ " <a href='faq'>" _ dw.ml( ".faq" ) _ "</a>" %]:</label>
|
||
|
|
[%-
|
||
|
|
form.select(
|
||
|
|
name = "faqid"
|
||
|
|
id = "faqid"
|
||
|
|
|
||
|
|
items = faqlist
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF can.use_stock_answers -%]
|
||
|
|
<li>
|
||
|
|
[%- stock_answers -%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF userfacing_actions_list.size > 2 %]
|
||
|
|
<li>
|
||
|
|
[%- form.select( label = dw.ml( ".reply.type" )
|
||
|
|
name = "replytype"
|
||
|
|
|
||
|
|
items = userfacing_actions_list
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>[%- ELSE;
|
||
|
|
form.hidden( name = "replytype"
|
||
|
|
value = userfacing_actions_list.first
|
||
|
|
);
|
||
|
|
END -%]
|
||
|
|
|
||
|
|
<li>
|
||
|
|
[%- form.textarea( label = dw.ml( ".message" ) _ ":"
|
||
|
|
id = "reply"
|
||
|
|
name = "reply"
|
||
|
|
|
||
|
|
rows = 15
|
||
|
|
cols = 100
|
||
|
|
wrap = "virtual"
|
||
|
|
|
||
|
|
value = reply.initial_text
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>
|
||
|
|
<li>
|
||
|
|
<p style='padding: 0 6em'>[%- '.no.html.allowed3' | ml -%]</p></li>
|
||
|
|
</ul>
|
||
|
|
</fieldset>
|
||
|
|
|
||
|
|
[%- IF can.do_internal_actions -%]
|
||
|
|
<fieldset>
|
||
|
|
[%- form.submit( value = "Quick Submit"
|
||
|
|
name = "submitpost"
|
||
|
|
id = "submitpost"
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</fieldset>
|
||
|
|
|
||
|
|
<fieldset class='internal even'>
|
||
|
|
<legend><span>Internal</span></legend>
|
||
|
|
<ul>
|
||
|
|
[%- IF internal_actions_list.size > 2 %]
|
||
|
|
<li>
|
||
|
|
[%- form.select( label = dw.ml( ".reply.type" )
|
||
|
|
name = "internaltype"
|
||
|
|
id = "internaltype"
|
||
|
|
|
||
|
|
items = internal_actions_list
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
|
||
|
|
<div id='bounce_email' style='display: none'>
|
||
|
|
[%- form.textbox( label = dw.ml( '.email.user' )
|
||
|
|
name = 'bounce_email'
|
||
|
|
size = 25,
|
||
|
|
hint = '<div><input type="checkbox" name="force_spelling" id="force_spelling"> <label for="force_spelling" style="float: none">Override email spell-check</label></div>'
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</div>
|
||
|
|
</li>[%- ELSE;
|
||
|
|
form.hidden( name = "internaltype"
|
||
|
|
value = internal_actions_list.first
|
||
|
|
);
|
||
|
|
END -%]
|
||
|
|
|
||
|
|
[%- IF can.change_category -%]
|
||
|
|
<li>
|
||
|
|
[%- form.select( label = dw.ml( '.change.cat' )
|
||
|
|
name = "changecat"
|
||
|
|
|
||
|
|
items = catlist
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF can.approve_answers -%]
|
||
|
|
<li>
|
||
|
|
[%- form.select( label = dw.ml( '.approve.screened' )
|
||
|
|
name = "approveans"
|
||
|
|
id = "approveans"
|
||
|
|
|
||
|
|
items = screenedlist
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
|
||
|
|
[%- form.select(
|
||
|
|
name = 'approveas'
|
||
|
|
items = approve_actions_list
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF can.put_in_queue -%]
|
||
|
|
<li>
|
||
|
|
[%- form.checkbox( label = dw.ml( ".put.in.queue" )
|
||
|
|
name = "touch"
|
||
|
|
id = "touch"
|
||
|
|
value = 1
|
||
|
|
) -%]
|
||
|
|
[%- '.use.this.to.re-open' | ml -%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF can.take_out_of_queue -%]
|
||
|
|
<li>
|
||
|
|
[%- form.checkbox( label = dw.ml( '.take.out.of.queue' )
|
||
|
|
name = "untouch"
|
||
|
|
id = "untouch"
|
||
|
|
value = 1
|
||
|
|
) -%]
|
||
|
|
[%- '.use.this.to.change.awaiting' | ml -%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
[%- IF can.change_summary -%]
|
||
|
|
<li>
|
||
|
|
[%- form.checkbox( label = dw.ml( '.change.summary' )
|
||
|
|
name = "changesum"
|
||
|
|
id = "changesum"
|
||
|
|
value = 1
|
||
|
|
) -%]
|
||
|
|
|
||
|
|
[%- form.textbox(
|
||
|
|
name = "summary"
|
||
|
|
|
||
|
|
size = 50
|
||
|
|
maxlength = 80
|
||
|
|
|
||
|
|
value = request.summary
|
||
|
|
) -%]
|
||
|
|
</li>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
<li>
|
||
|
|
[%- form.textarea( label = "Notes:"
|
||
|
|
id = "internal"
|
||
|
|
name = "internal"
|
||
|
|
|
||
|
|
rows = 8
|
||
|
|
cols = 100
|
||
|
|
wrap = "virtual"
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</li>
|
||
|
|
</ul>
|
||
|
|
</fieldset>
|
||
|
|
[%- END -%]
|
||
|
|
|
||
|
|
<fieldset style="margin-top: 1em;">
|
||
|
|
[%- form.submit( value = dw.ml( is_poster ? ".postbuttoninfo" : ".postbutton" )
|
||
|
|
name = "submitpost"
|
||
|
|
id = "submitpost"
|
||
|
|
)
|
||
|
|
-%]
|
||
|
|
</fieldset>
|
||
|
|
|
||
|
|
</form>
|