<STYLE TYPE='text/css'>
#loading-en
.error {
display:nonefont-weight: bold;
leftcolor: 16%#d04437;
}
textarea#feedback-body-en {
positionresize: absolute;none;
}
#loading-en
top: {
display:none;
left: 16%;
position: absolute;
top: 30%;
width: 300%;
z-index: 1000;
}
#loadingcontent-en
{
height: 60%;
left: 50%;
top: 50%;
width: 60%;
}
#loadingspinner-en
{
top: 50%;
width: 30%;
}
</STYLE>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<div id="loading-en">
<div id="loadingcontent-en">
<span id='loadingspinner-en' class='aui-icon aui-icon-wait'>Loading...</span>
</div>
</div>
<div id='feedback-main-div-en' style='font-size: 14px; font-family: Lato,Helvetica,FreeSans,sans-serif'>
<div id='feedback-error-en'></div>
<form class="aui" enctype='multipart/form-data' id='feedback-form-en' name='feedback-form-en' target='feedback-response-en' method='post' action='http://jira.teamlead.ru/plugins/servlet/feedback/create'>
<input type='hidden' name='form-index' id='form-index-en' value='117'/>
<div>
<select id='feedback-issue-type-en' data-placeholder="Тип обращения..." name='feedback-issue-type'>
<option value='25' selected >Sales Question</option>
<option value='10'>Technical Consultation</option>
<option value='27'>Bug</option>
<option value='1'>Blocker Fault</option>
<option value='4'>Ideas & Improvements</option>
<option value='25'>Friendship</option>
<option value='25'>Financial Question</option>
</select>
<script>
AJS.$("#feedback-issue-type-en").auiSelect2();
</script>
</div>
<br> <div><input class="text long-field-en" type='text' id='feedback-summary-en' name='feedback-summary' class='feedback-summary' placeholder='Тема обращения' value=''/></div>
<br> <div style='display:none;'><input type='text' id='feedback-language' name='feedback-language' class='feedback-language' placeholder='Выберите язык (en/ru)' value='en'/></div>
<div><TEXTAREA class="textarea long-field" id='feedback-body-en' name='feedback-body' ROWS='5' placeholder='Подробности...'></TEXTAREA>
</div>
<br>
<div>
<select id="feedback-fix-version-en" multiple data-placeholder="Software..." name='feedback-fix-version'>
<option value='13020'>JIRA</option>
<option value='13021'>Confluence</option>
<option value='21821'>CRM for JIRA</option>
<option value='22120'>JIRA Service Desk</option>
<option value='13027'>JIRA Agile</option>
<option value='21228'>Stash</option>
<option value='13025'>Bamboo</option>
<option value='13024'>Crucible</option>
<option value='13023'>FishEye</option>
<option value='13022'>Crowd</option>
<option value='16920'>Bitbucket</option>
<option value='19729'>Feedback for JIRA</option>
<option value='21820'>Werewolf forJIRA</option>
<option value='21822'>Calendar for JIRA</option>
<option value='23320'>Tempo Timesheet</option>
<option value='13029'>Team Calendars for Confluence</option>
<option value='13028'>Capture for JIRA</option>
<option value='23922'>Questions for Confluence</option>
<option value='19723'>Локализация JIRA</option>
<option value='19724'>Локализация Confluence</option>
<option value='19726'>Локализация Agile</option>
<option value='19727'>Локализация Tempo</option>
<option value='21920'>Локализация JIRA Service Desk</option>
</select>
<script>
AJS.$("#feedback-fix-version-en").auiSelect2();
</script>
</div>
<br>
<div>
<input class="text" type='text' id='feedback-email-en' name='feedback-email' placeholder='Your E-mail' size='38' value=''/>
</div>
<br>
<div>
<input class="text" type='file' id='feedback-attachment-en' name='feedback-attachment' size='38' />
</div>
<br>
<div align="left">
<input class="aui-button aui-button-primary" type='button' value=' Send ' onclick='addFeedbackEn()'/>
</div>
</form>
</div>
#captcha{margin-bottom:0;padding-bottom:0}#captcha .captcha-container{clear:none;margin:5px 0 0 0;min-height:0;overflow:hidden;padding:0} #captcha .captcha-container .captcha-image{float:left}#captcha .captcha-container .captcha-trigger{float:left} #captcha .captcha-container .captcha-trigger .content{margin:0;overflow:hidden;text-align:left;text-indent:-999em;width:0} #captcha .captcha-container .icon-reload{background-image:url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAMFBMVEX///9wcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHBwcHAAAAAM3lI2AAAADnRSTlMAESIzRFVmiJmqu8zd7qUOxRYAAAB3SURBVHjaY2axe9y7PGDtDyZGg+zYTvZDDExMpvWpnZb/GZgYPb5tYPhpDxRhnMvAwPCBgYmZITMAyGJgYTyz5wMDMmAEk+7GKUwQbooAM5hxR14HKKLAwMAc/x/I2CHA4PVzH1AqqECgq+wzkLEj3GtqPyfcHAB0GR2Spl8/YwAAAABJRU5ErkJggg==")}
</STYLE>
<script src='http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js'></script>
<div id="loading-en">
<div id="loadingcontent-en">
<span id='loadingspinner-en' class='aui-icon aui-icon-wait'>Loading...</span>
</div>
</div>
<div id='feedback-main-div-en' style='font-size: 14px; font-family: Arial,Helvetica,FreeSans,sans-serif'>
<div id='feedback-error-en' class='error'></div>
<form class="aui" enctype='multipart/form-data' id='feedback-form-en' name='feedback-form-en' target='feedback-response-en' method='post' action='https://jira.teamlead.ru/plugins/servlet/feedback/create'>
<input type='hidden' name='feedback-from-url' id='feedback-from-url-en' value=''/>
<input type='hidden' name='form-index' id='form-index-en' value='1'/>
<div>
<select id='feedback-custom-type' data-placeholder="Issue type..." class='select' name='feedback-custom-type'>
<option value='' selected='selected'>Выберите тип обращения</option>
<option value='2'>Техническая консультация</option>
<option value='1'>Покупка продуктов или услуг</option>
<option value='3'>Ошибка в работе приложения</option>
<option value='4'>Сбой всей системы</option>
<option value='5'>Улучшение или идея</option>
<option value='6'>Сотрудничество с нами</option>
<option value='7'>Вопрос в бухгалтерию</option>
</select>
<script>
AJS.$("#feedback-issue-type-en").auiSelect2();
</script>
</div>
<br>
<div>
<input class="text long-field-en" type='text' id='feedback-summary-en' name='feedback-summary' class='feedback-summary' placeholder='Тема обращения' value=''/></div>
<br> <div style='display:none;'><input type='text' id='feedback-language' name='feedback-language' class='feedback-language' placeholder='Выберите язык (en/ru)' value='ru'/></div>
<div><TEXTAREA class="textarea long-field" id='feedback-body-en' name='feedback-body' ROWS='5' placeholder='Тут можно указать подробности...'></TEXTAREA>
</div>
<br>
<div>
<input class="text" type='text' id='feedback-email-en' name='feedback-email' placeholder='E-mail для ответа' size='38' value=''/>
</div>
<br>
<div>
<input class="text" type='file' id='feedback-attachment-en' name='feedback-attachment' size='38' />
</div>
<br>
<div align="left">
<input class="aui-button aui-button-primary" id="send-feedback-btn-en" type='button' value=' Отправить ' onclick='addFeedbackEn()'/>
</div>
</form>
</div>
<div id="feedback-back-en" class="aui" style="display: none">
<input type="button" class="aui-button" onclick="jQuery('#feedback-main-div-en').show();jQuery('#feedback-response-en').hide();jQuery('#feedback-back-en').hide(); jQuery('.captcha-reload').click();" value="Back"/>
</div>
<iframe id='feedback-response-en' name='feedback-response-en' frameborder='no' style='display: none;' width='500' height='350250'></iframe>
<script<p type='text/javascript'>
jQuery(window).load(function()
{
jQuery('#feedback-main-div-en').show();
jQuery('#feedback-new-issue-div-en').hide();
jQuery('#feedback-response-en').hide();
jQuery('#feedback-new-issue-button-en').click(function ()
{
jQuery('#feedback-form-en')[0].reset();
jQuery('#feedback-main-div-en').show();
jQuery('#feedback-new-issue-div-en').hide();
jQuery('#feedback-response-en').hide();
});
});
function addFeedbackEn(id="personal-data-area"><span style="color: rgb(128,130,132);">Нажимая кнопку "Отправить", Вы соглашаетесь на <span style="color: rgb(128,205,234);"><a href="/display/RU/Data+agreement+with+clients"><span style="color: rgb(128,205,234);">условия по обработке персональных данных </span></a></span></span></p>
<script type='text/javascript'>
JIRACaptcha = {
setup: function () {
jQuery("#captcha").delegate("span.captcha-reload", "click", function (e) {
var summary = jQuery('#feedback-summary-en').val();
var email = jQuery('#feedback-email-en').val JIRACaptcha.refresh();
if (summary == '' || email == '') e.preventDefault();
{
var message = '' });
if (summary == '')}, refresh: function () {
{
var messageimg = message + '<div>Enter the Summary please</div>'jQuery(".captcha-image", "#captcha .captcha-container"), src = img.attr("src");
}
if (email == '')
src.indexOf("__r") >= 0) {
message = message + '<div>Enter the E-mail please</div>';
}
jQuery('#feedback-error-en').html(message);
src = src.replace(/__r=([^&]+)/, "__r=" + Math.random());
return false;
}} else {
jQuery('#feedback-error-en').html('');
jQuery('#feedback-main-div-en').hide();
jQuery('#loading-en').fadeIn();
jQuery('#feedback-response-en').show();
jQuery('#feedback-form-en').submit();
jQuery('#feedback-response-en').on("load", function() {
src = src.indexOf('?') >= 0 ? (src + "&__r=" + Math.random()) : (src + "?__r=" + Math.random());
}
img.attr("src", src);
jQuery("#captcha .captcha-response").focus();
}
};
jQuery(window).load(function()
{
jQuery(JIRACaptcha.setup);
jQuery('#feedback-new-issuemain-div-en').show();
jQuery('#loading-en'#feedback-new-issue-div-en').fadeOuthide();
} jQuery('#feedback-response-en').hide();
return false;
}
</script>jQuery('#feedback-new-issue-button-en').click(function ()
{
jQuery('.captcha-reload').click();
jQuery('#feedback-main-div-en').show();
jQuery('#feedback-new-issue-div-en').hide();
jQuery('#feedback-response-en').hide();
});
window.addEventListener('message', function(event) {
console.log("get event");
console.log(event.data);
if (event.data.command == 'hideFeedbackForm') {
console.log("hideFeedbackForm");
jQuery("#feedback-form-en").hide();
jQuery("#personal-data-area").hide();
}
});
});
function addFeedbackEn() {
if ( document.getElementById('feedback-attachment-en').files.length > 0 )
{
var attachSize = document.getElementById('feedback-attachment-en').files[0].size;
if ( attachSize > 1000000 * 10 )
{ var message = '<div>Attachment size exceeds the allowable limit</div>'; jQuery('#feedback-error-en').html(message); return false; }}
var summary = jQuery('#feedback-summary-en').val();
var email = jQuery('#feedback-email-en').val();
var customType = jQuery('#feedback-custom-type').val();
if (summary == '' || email == '' || (!customType || customType == ''))
{
var message = '';
if (summary == '')
{
message = message + '<div>Enter the Summary please</div>';
}
if (email == '')
{
message = message + '<div>Enter the E-mail please</div>';
}
if (customType == '')
{
message = message + '<div>Please choose the question type</div>';
}
jQuery('#feedback-error-en').html(message);
return false;
}
jQuery('#feedback-error-en').html('');
//jQuery('#feedback-main-div-en').hide();
//jQuery('#feedback-back-en').show();
jQuery('#send-feedback-btn-en').hide();
jQuery('#loading-en').fadeIn();
jQuery('#feedback-response-en').show();
jQuery('#feedback-from-url-en').val(location.href);
jQuery('#feedback-form-en').submit();
jQuery('#feedback-response-en').on("load", function() {
jQuery('#feedback-new-issue-div-en').show();
jQuery('#loading-en').fadeOut();
});
return false;
}
</script> |