<div class="container-home">
	<h3 class="recent-articles heading_all_sections_top">
		<span>
			<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" width="24" height="24"><path d="M16.6256 3.12837L9.29145 10.4625L9.29886 14.7097L13.537 14.7022L20.8682 7.37102C21.5912 8.75426 22 10.3277 22 11.9966C22 17.5194 17.5228 21.9966 12 21.9966C6.47715 21.9966 2 17.5194 2 11.9966C2 6.47373 6.47715 1.99658 12 1.99658C13.6689 1.99658 15.2423 2.40541 16.6256 3.12837ZM20.4853 2.09709L21.8995 3.5113L12.7071 12.7037L11.2954 12.7062L11.2929 11.2895L20.4853 2.09709Z" fill="currentColor"></path></svg>
			<span>{{LANG edit_video}}: {{TITLE}}</span>
		</span>
	</h3>
	
	
	<div class="row">
		<div class="col-md-8" id="edit-form">
			<div class="upload_video_bg_color">
			<div id="video-success" class="alert alert-success"></div>
			<div class="errors alert alert-danger"></div>
			<form action="" class="step_2_form" method="POST">
				<?php if (PT_IsAdmin() && $pt->video->is_movie && $pt->video->is_short != 1) { ?>
                  <div id="movie_fields">
                     <div class="form-group">
                        <label for="movie_title">{{LANG movie_title}}</label>
                           <input id="movie_title" name="movie_title" type="text" placeholder="{{LANG movie_title}}"  value="{{TITLE}}" class="form-control input-md">
                     </div>
                     <div class="form-group">
                        <label for="description">{{LANG description}}</label>  
                           <textarea name="movie_description" id="description" cols="30" rows="5" class="move_description">{{DESC}}</textarea>
                     </div>
                     <div class="form-group">
                        <label for="stars">{{LANG stars}}</label>
                           <input id="stars" name="stars" type="text" placeholder="{{LANG stars}} {{LANG by_comma}}" class="form-control input-md" value="<?php echo($pt->video->stars) ?>">
                     </div>
                     <div class="form-group">
                        <label for="producer">{{LANG producer}}</label>
                           <input id="producer" name="producer" type="text" placeholder="{{LANG producer}}" class="form-control input-md" value="<?php echo($pt->video->producer) ?>">
                     </div>
                     <div class="form-group">
                        <label for="release">{{LANG release}}</label>
                           <input id="release" name="release" type="number" placeholder="{{LANG release}}" class="form-control input-md"  min="1910" max="<?php echo date('Y') ?>" value="<?php echo($pt->video->movie_release) ?>">
                     </div>
                     <div class="form-group">
                        <label for="country">{{LANG country}}</label>
                           <select class="form-control show-tick" id="country" name="country">
                              <?php foreach ($countries_name as $key => $value) { $selected = ($pt->video->country == $key) ? 'selected' : '';  ?>
                              <option value="<?php echo $key; ?>" <?php echo $selected?>><?php echo $value; ?></option>
                              <?php  } ?>
                           </select>
                     </div>
                     <div class="form-group">
                        <label for="quality">{{LANG quality}}</label>
                           <select class="form-control show-tick" id="quality" name="quality">
                              <option value="CAMRip" <?php echo $pt->video->quality == 'CAMRip' ? 'selected' : ''; ?>>CAMRip</option>
                              <option value="TS" <?php echo $pt->video->quality == 'TS' ? 'selected' : ''; ?>>TS</option>
                              <option value="VHSRip" <?php echo $pt->video->quality == 'VHSRip' ? 'selected' : ''; ?>>VHSRip</option>
                              <option value="WP" <?php echo $pt->video->quality == 'WP' ? 'selected' : ''; ?>>WP</option>
                              <option value="SCR (VHSScr)" <?php echo $pt->video->quality == 'SCR (VHSScr)' ? 'selected' : ''; ?>>SCR (VHSScr)</option>
                              <option value="DVDScr" <?php echo $pt->video->quality == 'DVDScr' ? 'selected' : ''; ?>>DVDScr</option>
                              <option value="TC" <?php echo $pt->video->quality == 'TC' ? 'selected' : ''; ?>>TC</option>
                              <option value="LDRip" <?php echo $pt->video->quality == 'LDRip' ? 'selected' : ''; ?>>LDRip</option>
                              <option value="TVRip" <?php echo $pt->video->quality == 'TVRip' ? 'selected' : ''; ?>>TVRip</option>
                              <option value="SATRip" <?php echo $pt->video->quality == 'SATRip' ? 'selected' : ''; ?>>SATRip</option>
                              <option value="DVBRip" <?php echo $pt->video->quality == 'DVBRip' ? 'selected' : ''; ?>>DVBRip</option>
                              <option value="DTVRip" <?php echo $pt->video->quality == 'DTVRip' ? 'selected' : ''; ?>>DTVRip</option>
                              <option value="DVD" <?php echo $pt->video->quality == 'DVD' ? 'selected' : ''; ?>>DVD</option>
                              <option value="HDRip" <?php echo $pt->video->quality == 'HDRip' ? 'selected' : ''; ?>>HDRip</option>
                              <option value="WEB-DL" <?php echo $pt->video->quality == 'WEB-DL' ? 'selected' : ''; ?>>WEB-DL</option>
                              <option value="HD-TV" <?php echo $pt->video->quality == 'HD-TV' ? 'selected' : ''; ?>>HD-TV</option>
                              <option value="HD DVD" <?php echo $pt->video->quality == 'HD DVD' ? 'selected' : ''; ?>>HD DVD</option>
                           </select>
                     </div>
                     <div class="form-group">
                        <label for="category">{{LANG category}}</label>
                           <select class="form-control show-tick" id="category" name="category">
                              <?php foreach($pt->movies_categories as $key => $category) { $selected = ($pt->video->category_id == $key) ? 'selected' : '';?>
								<option value="<?php echo $key?>" <?php echo $selected?>><?php echo $category?></option>
								<?php } ?>
                           </select>
                     </div> 
                     <div class="form-group">
                        <label for="rating">{{LANG rating}} {{LANG rating_btween}}</label>
                           <input type="number" id="rating" name="rating" class="form-control" min="1" max="10" step="0.1" value="<?php echo($pt->video->rating) ?>">
                     </div> 
                  </div>
                    <?php if ($pt->config->sell_videos_system == 'on') { ?>
                     <div class="form-group">
						<label for="buy_price">{{LANG set_p_v}}</label>  
							<input id="mySingleFieldTags_" name="buy_price" type="text" placeholder="" class="form-control input-md" value="<?php echo($pt->video->sell_video) ?>">
					</div>
					<?php } ?>
					<?php if ($pt->config->rent_videos_system == 'on') { ?>
						<div class="form-group">
							<label for="movie_rent_price">{{LANG rent_price}}</label>  
								<input id="mySingleFieldTags_movie" name="movie_rent_price" type="text" placeholder="" class="form-control input-md" value="<?php echo $pt->video->rent_price ?>">
								
						</div>
						<span class="help-block"><?php if($pt->config->admin_com_rent_videos > 0){ ?>{{LANG p_m_than_}} <?php echo($pt->config->admin_com_rent_videos) ?><?php }?></span>
						<?php } ?>
                  <input type="hidden" name="is_movie" class="is_movie" value="1">
                  <?php if (PT_IsAdmin()) { ?>
                  <div class="clear"></div>
						<div class="form-group">
							<label for="featured_movie">{{LANG featured}}</label>  
								<select name="featured_movie" id="featured_movie" class="form-control">
									<option value="0" <?php echo ($pt->video->featured_movie == 0) ? 'selected' : '' ?>>No</option>
									<option value="1" <?php echo ($pt->video->featured_movie == 1) ? 'selected' : '' ?>>Yes</option>
								</select>
						</div>
						<?php } ?>
                  <?php }else{ ?>


               <?php if ($pt->editLink) { ?>
               <div class="form-group">
						<label for="url">{{LANG video_url}}</label>  
						<input id="url" name="url" type="text" placeholder="" class="form-control input-md" oninput="fetchVideoUrl(this)">
					</div>
					<span class="help-block">{{LANG url_desc}}, <?php echo ($pt->config->facebook_import == 'on') ? 'Facebook, ': '';?>mp4<?php echo ($pt->config->ok_import == 'on') ? ',ok.ru': '';?><?php echo ($pt->config->tiktok_import == 'on') ? ',TikTok': '';?><?php echo ($pt->config->youtube_short == 'on') ? ',' . $lang_array['youtube_short']: '';?><?php echo ($pt->config->instagram_import == 'on') ? ',' . $lang_array['instagram']: '';?><?php echo ($pt->config->embed_videos == 'on') ? ',' . $lang_array['can_embed_website']: '';?></span>
					<?php } ?>

					<div class="form-group">
						<label for="title">{{LANG video_title}}</label>  
							<input id="title" name="title" type="text" value="{{TITLE}}" class="form-control input-md">
							
					</div>
					<span class="help-block">{{LANG video_title_help}}</span>
					<div class="form-group">
						<label for="description">{{LANG video_descritpion}}</label>  
							<textarea name="description" id="description" cols="30" rows="10" class="description">{{DESC}}</textarea>
					</div>
					<?php if ($pt->video->is_short != 1) { ?>
					<div class="form-group">
						<label for="category_id">{{LANG category}}</label>  
							<select name="category_id" id="category_id" class="form-control">
								<?php foreach($pt->categories as $key => $category) { $selected = ($pt->video->category_id == $key) ? 'selected' : '';?>
								<option value="<?php echo $key?>" <?php echo $selected?>><?php echo $category?></option>
								<?php } ?>
							</select>
					</div>
					<div class="form-group" <?php if (empty($pt->sub_categories_array["'1'"])) { ?> style="display: none;"<?php } ?> id="sub_category_div">
						<label for="sub_category_id">{{LANG sub_category}}</label>
							<select name="sub_category_id" id="sub_category_id" class="form-control">
								<?php echo $pt->sub_categories_array["'".$pt->video->category_id."'"]; ?>
							</select>
					</div>
					<?php if ($pt->config->geo_blocking == 'on') {
						 ?>
						<div class="form-group">
							<label for="geo_blocking">{{LANG geo_blocking}}</label>
								<div class="form-group-rs" id="geo_blocking">
					            <select class="selectpicker show-menu-arrow show-tick" multiple name="continents-list[]" data-live-search="true" title="{{LANG geo_blocking}}" data-actions-box="true">
					              	<?php 
					              	foreach ($pt->continents as $key => $name): 
					              		?>
					              		<option value="<?php echo($name); ?>" <?php echo (!empty($pt->video->geo_blocking) && in_array($name, json_decode($pt->video->geo_blocking))) ? 'selected' : '' ?>>
					              			<span>
					              				<?php echo($name); ?>
					              			</span>
					              		</option>
					              	<?php endforeach; ?>
					          	</select>
					            <div class="clear"></div>
					    		</div>
						</div>
						<?php } ?>
						<?php if (PT_IsAdmin() || $pt->user->is_pro) { ?>
						<div class="form-group">
							<label for="featured">{{LANG featured}}</label>  
								<select name="featured" id="featured" class="form-control">
									<option value="0" <?php echo ($pt->video->featured == 0) ? 'selected' : '' ?>>No</option>
									<option value="1" <?php echo ($pt->video->featured == 1) ? 'selected' : '' ?>>Yes</option>
								</select>
						</div>
						<?php } ?>
					<?php if (PT_IsAdmin()) { ?>
					<div class="clear"></div>
					<div class="form-group" style="position: relative;">
						<label for="assign_to_user">{{LANG assign_to_user}}</label>  
						<div class="vid_edit_assign">
							<input id="assign_to_user" name="assign_to_user" type="text" placeholder="{{LANG username}}" class="form-control input-md">
							<div class="search-dropdown_ hidden"></div>
						</div>
					</div>
					<?php } ?>
					<?php } ?>
					<div class="form-group">
						<label for="privacy">{{LANG privacy}}</label>  
							<select name="privacy" id="privacy" class="form-control">
								<option value="0" <?php echo ($pt->video->privacy == 0) ? 'selected' : '' ?>>{{LANG public}}</option>
								<option value="1" <?php echo ($pt->video->privacy == 1 && $pt->video->publication_date == 0) ? 'selected' : '' ?>>{{LANG private}}</option>
								<option value="2" <?php echo ($pt->video->privacy == 2) ? 'selected' : '' ?>>{{LANG unlisted}}</option>
								<option value="3" <?php echo ($pt->video->privacy == 1 && $pt->video->publication_date > 0) ? 'selected' : '' ?>>{{LANG scheduled}}</option>
								<option value="4" <?php echo ($pt->video->privacy == 4) ? 'selected' : '' ?>>{{LANG subscribers}}</option>
							</select>
					</div>
					<div class="scheduled <?php echo ($pt->video->privacy == 1 && $pt->video->publication_date > 0) ? '' : 'hidden' ?>">
	                  	<div class="form-group">
		                     <label for="date">{{LANG publication_date}} {{LANG utc_timezone}}</label>
							 <div class="row">
		                     <div class="col-md-6">
		                        <input id="date" name="date" type="text" placeholder="" class="form-control input-md" value="<?php echo(date('Y-m-d',$pt->video->publication_date)) ?>">
		                     </div>
		                     <div class="col-md-6">
		                        <select name="hour" id="hour" class="form-control">
		                        	<?php foreach ($pt->config->hours as $key => $value) { ?>
		                        		<option value="<?php echo($key) ?>" <?php echo ((date('g:iA',$pt->video->publication_date) == $key) ? 'selected' : ''); ?>><?php echo $value; ?></option>
		                        	<?php } ?>
		                        </select>
		                     </div>
							 </div>
		                  </div>
	                 </div>
	            <?php if ($pt->video->is_short != 1) { ?>
					<div class="form-group">
		                     <label for="age_restriction">{{LANG age_restriction}}</label>  
		                        <select name="age_restriction" id="age_restriction" class="form-control">
		                           <option value="1" <?php echo ($pt->video->age_restriction == 1) ? 'selected' : '' ?>>{{LANG all_ages}}</option>
		                           <option value="2" <?php echo ($pt->video->age_restriction == 2) ? 'selected' : '' ?>>{{LANG only_18}}</option>
		                        </select>
		                  </div>
		         <?php } ?>
					<div class="form-group">
						<label for="tags">{{LANG tags}}</label>  
							<input id="mySingleFieldTags" name="tags" type="text" value="{{TAGS}}" placeholder="" class="form-control input-md">
							
					</div>
					<span class="help-block">{{LANG tags_help}}</span>
					<?php if ($pt->video->is_short != 1) { ?>
					<?php if (($pt->config->sell_videos_system == 'on' && $pt->config->who_sell == 'pro_users' && ($pt->user->is_pro || $pt->user->admin)) || ($pt->config->sell_videos_system == 'on' && $pt->config->who_sell == 'users') ) { ?>
						<div class="form-group">
							<label for="set_p_v">{{LANG set_p_v}}</label>  
								<input id="mySingleFieldTags" name="set_p_v" type="text" placeholder="" class="form-control input-md" value="<?php echo $pt->video->sell_video ?>" autocomplete="off">
								
						</div>
						<span class="help-block"><?php if($pt->config->admin_com_sell_videos > 0 && $pt->config->com_type != 1){ ?>{{LANG p_m_than_}} <?php echo($pt->config->admin_com_sell_videos) ?><?php }?></span>
						<?php } ?>
							<?php if ($pt->config->rent_videos_system == 'on') { ?>
						<div class="form-group">
							<label for="rent_price">{{LANG rent_price}}</label>  
								<input id="mySingleFieldTags" name="rent_price" type="text" placeholder="" class="form-control input-md" value="<?php echo $pt->video->rent_price ?>">
								
						</div>
						<span class="help-block"><?php if($pt->config->admin_com_rent_videos > 0){ ?>{{LANG p_m_than_}} <?php echo($pt->config->admin_com_rent_videos) ?><?php }?></span>
						<?php } ?>
						<?php } ?>
				<?php } ?>
             <?php if ($pt->video->is_short != 1) { ?>
				<?php if ((($pt->config->usr_v_mon == 'on' && $pt->config->user_mon_approve == 'off') || ($pt->config->usr_v_mon == 'on' && $pt->config->user_mon_approve == 'on' && $pt->user->monetization == '1')) && $pt->user->video_mon == '1') { ?>

				<div class="form-group">
                    <label for="monetization">{{LANG monetization}}</label>  
                        <select name="monetization" id="monetization" class="form-control">
                           <option value="1" <?php echo ($pt->video->monetization == 1) ? 'selected' : ''  ?>>{{LANG enable}}</option>
                           <option value="0" <?php echo ($pt->video->monetization == 0) ? 'selected' : ''  ?>>{{LANG disable}}</option>
                        </select>
                </div>
                <?php } ?>
                <?php } ?>
                <?php if ($pt->config->restrict_embedding_system == 'on') { ?>
                <div class="form-group">
                    <label for="embedding">{{LANG restrict_embedding}}</label>  
                        <select name="embedding" id="embedding" class="form-control">
                           <option value="no" <?php echo ($pt->video->embedding == 0) ? 'selected' : ''  ?>>{{LANG no}}</option>
                           <option value="yes" <?php echo ($pt->video->embedding == 1) ? 'selected' : ''  ?>>{{LANG yes}}</option>
                        </select>
                </div>
                <?php } ?>

				<div class="form-group hidden">
					<label for="thumbnail">{{LANG thumbnail}}</label>  
						<input id="thumbnail" name="thumbnail" type="file" accept="image/*">
						<span class="help-block">jpg, png, gif</span>
				</div>
				
				<div class="">
					<button type="submit" id="submit-btn" class="btn btn-main upload_custom_new">{{LANG publish}}</button>&nbsp;&nbsp;
					<?php if ($pt->video->is_short != 1) { ?>
					<?php if ($pt->config->video_text_system == 'on' && empty($pt->video->facebook) && empty($pt->video->vimeo) && empty($pt->video->daily) && empty($pt->video->youtube) && empty($pt->video->twitch) && empty($pt->video->ok)) { ?>
						<a type="button" class="btn btn-info upload_custom_new" href="{{LINK video_text/{{ID}}}}" data-load="?link1=video_text&id={{ID}}">{{LANG add_card}}</a>&nbsp;&nbsp;
					<?php } ?>
					<?php } ?>
					<button type="button" class="btn btn-delete upload_custom_new" onclick="PT_DeleteVideo({{ID}}, 'edit-page')">{{LANG delete_videos}}</button>
				</div>
				<input type="hidden" name="video-id" class="video-id" value="{{ID}}">
			</form>
			</div>
		</div>
		<div class="col-md-4">
			<div class="upload_video_bg_color">
				<div class="pt_upload_vdo_preview">
					<div class="pt_upload_vdo_thumb">
						<div class="thumbnail-preview edit-thumb thumbnail-preview-renderer">
							<img src="{{THUMBNAIL}}" alt="{{TITLE}}">
						</div>
					</div>
					
					<div class="video-title">
						<p>{{TITLE}}</p>
					</div>
					<div class="video-description">
						<p>{{DESC_2}}</p>
					</div>
				</div>
			</div>
		</div>
		<div class="clear"></div>
	<div class="clear"></div>
</div>
</div>

<script>
	<?php if ($pt->editLink) { ?>
	function fetchVideoUrl(self) {
		$.post('{{CONFIG site_url}}/aj/fetch-video', {link: $(self).val(),video_id:"{{ID}}"}, function(data, textStatus, xhr) {
			if (data.status == 200) {
				$('.errors').addClass('hidden')
	    		$('#video-success').html("{{LANG video_url_changed_successfully}}");
	    		setTimeout(function () {
	    			$('#video-success').html("");
	    		}, 2000);
	    	} else {
	    		$('#submit-btn').attr('disabled', false);
	    	    $('#submit-btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg> {{LANG publish}}');
	    		$('.errors').removeClass('hidden').html(data.message);
	    	}
		});
	}
	<?php } ?>
	$(document).on('change', '#privacy', function(event) {
		event.preventDefault();
		if ($(this).val() == 3) {
			$('.scheduled').removeClass('hidden');
		}
		else{
			$('.scheduled').addClass('hidden');
		}
	});
	var el = $(".description").emojioneArea({
		pickerPosition: "bottom",
	    tonesStyle: "radio",
	    events: {
	     	keyup: function (editor, event) {
		    }
	    },
	    filters: {
	        flags : false,
	        objects : false,
	        travel_places : false,
	        activity : false
	    }
	});
	var el2 = $(".move_description").emojioneArea({
		pickerPosition: "bottom",
	    tonesStyle: "radio",
	    events: {
	     	keyup: function (editor, event) {
		    }
	    },
	    filters: {
	        flags : false,
	        objects : false,
	        travel_places : false,
	        activity : false
	    }
	});
	$('.selectpicker').selectpicker({});
<?php 
$js_array = json_encode($pt->sub_categories_array);
echo "var sub_categories_array = ". $js_array . ";\n";
?>
$(document).on('change', '#category_id', function(event) {
	event.preventDefault();
	id = $(this).val();
	if (typeof(sub_categories_array["'"+id+"'"]) == 'undefined') {
   	$('#sub_category_div').hide();
    $('#sub_category_id').html('');
   }
   else{
   	$('#sub_category_div').show();
    $('#sub_category_id').html(sub_categories_array["'"+id+"'"]);
  }
});
$(function () {
	$( "#date" ).datepicker({ dateFormat: 'yy-mm-dd', minDate: 'today',prevText: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z" /></svg>',nextText: '<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><path fill="currentColor" d="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z" /></svg>'});
	$('.edit-thumb').on('click', function(event) {
		$('#thumbnail').trigger('click');
	});
	$('#thumbnail').on('change', function(event) {
		readURL(this);
	});
	$('#description').keyup(function(event) {
      str = $(this).val().replace(/(?:\r\n|\r|\n)/g, '<br />');
      $('.video-description p').html(str);
   });
	<?php if (PT_IsAdmin() && $pt->video->is_movie) { ?>
		$('#movie_title').keyup(function(event) {
	      $('.video-title p').html($(this).val());
	   });
	<?php }else{ ?>
	   $('#title').keyup(function(event) {
	      $('.video-title p').html($(this).val());
	   });
	<?php } ?>
	$("#mySingleFieldTags").tagit({
		allowSpaces: true
	});
	$('#edit-form form').ajaxForm({
	    url: '{{LINK aj/edit-video}}' + '?hash=' + $('.main_session').val(),
	    beforeSend: function() {
	    	$('#submit-btn').attr('disabled', true);
	    	$('#submit-btn').text("{{LANG please_wait}}");
	    },
	    success: function(data) {
	    	if (data.status == 200) {
	    		$('#video-success').html(data.message);
          window.location.href = '{{URL}}';
	    	} else {
	    		$('#submit-btn').attr('disabled', false);
	    	    $('#submit-btn').html('<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-check-circle"><path d="M22 11.08V12a10 10 0 1 1-5.93-9.14"></path><polyline points="22 4 12 14.01 9 11.01"></polyline></svg> {{LANG publish}}');
	    		$('.errors').removeClass('hidden').html(data.message);
	    	}
	    }
	});
});
<?php if (PT_IsAdmin()) { ?>
$('#assign_to_user').keyup(function(event) {
	var search_value = $(this).val();
	var search_dropdown = $('.search-dropdown_');
	if (search_value == '') {
		search_dropdown.addClass('hidden');
		search_dropdown.empty();
		return false;
	} else {
		search_dropdown.removeClass('hidden');
	}
    $.post('{{LINK aj/search_users}}', {search_value: search_value}, function(data, textStatus, xhr) {
    	if (data.status == 200) {
    		search_dropdown.html(data.html);
    	} else {
	       search_dropdown.addClass('hidden');
		   search_dropdown.empty();
		   return false;
    	}
    });
});

function add_to_input(username) {
	$('#assign_to_user').val(username);
	var search_dropdown = $('.search-dropdown_');
	search_dropdown.addClass('hidden');
    search_dropdown.empty();
}
<?php } ?>
</script>