##// END OF EJS Templates
Import some of the files from Select2 3.5.0 Javascript system....
Import some of the files from Select2 3.5.0 Javascript system. RhodeCode 2.2.5 used a version of Select2. Herein, we bring into Kallithea only a few files directly from Select2 3.5.0 (6ef7155) upstream, using the commands indicated below: (cd /tmp; \ git clone https://github.com/ivaynberg/select2.git; \ cd select2; \ git checkout 3.5.0 \ ) mkdir rhodecode/public/js/select2 cp -pa /tmp/select2/select2.{js,css,png} rhodecode/public/js/select2/ cp -pa /tmp/select2/select2x2.png rhodecode/public/js/select2/ cp -pa /tmp/select2/select2-spinner.gif rhodecode/public/js/select2/ hg add rhodecode/public/js/select2/

File last commit:

r4116:ffd45b18 rhodecode-2.2.5-gpl
r4128:bbbb013a rhodecode-2.2.5-gpl
Show More
repo_edit_fork.html
21 lines | 653 B | text/html | HtmlLexer
${h.form(url('repo_as_fork', repo_name=c.repo_info.repo_name),method='put')}
<div class="form">
<div class="fields">
${h.select('id_fork_of','',c.repos_list,class_="medium")}
${h.submit('set_as_fork_%s' % c.repo_info.repo_name,_('Set'),class_="btn btn-small",)}
</div>
<div class="field" style="border:none;color:#888">
<ul>
<li>${_('''Manually set this repository as a fork of another from the list''')}</li>
</ul>
</div>
</div>
${h.end_form()}
<script>
$(document).ready(function(){
$("#id_fork_of").select2({
'dropdownAutoWidth': true,
});
})
</script>