##// END OF EJS Templates
repo group: fix API for updating parent...
repo group: fix API for updating parent With other bugs out of the way, the API implementation just has to pass the new group id correctly. Note that - as in many other places - moving things to the top level doesn't work. Original patch has been modified by Mads Kiilerich.

File last commit:

r8455:19d93bd7 default
r8733:fdc9c2fd stable
Show More
repo_group_edit_settings.html
51 lines | 1.7 KiB | text/html | HtmlLexer
## -*- coding: utf-8 -*-
${h.form(url('update_repos_group',group_name=c.repo_group.group_name))}
<div class="form">
<div class="form-group">
<label class="control-label" for="group_name">${_('Group name')}:</label>
<div>
${h.text('group_name',class_='form-control')}
</div>
</div>
<div class="form-group">
<label class="control-label" for="group_description">${_('Description')}:</label>
<div>
${h.textarea('group_description',cols=23,rows=5,class_='form-control')}
</div>
</div>
<div class="form-group">
<label class="control-label" for="parent_group_id">${_('Group parent')}:</label>
<div>
${h.select('parent_group_id','',c.repo_groups,class_='form-control')}
</div>
</div>
<div class="form-group">
<div class="buttons">
${h.submit('save',_('Save'),class_="btn btn-default")}
${h.reset('reset',_('Reset'),class_="btn btn-default")}
</div>
</div>
</div>
${h.end_form()}
${h.form(url('delete_repo_group', group_name=c.repo_group.group_name))}
<div class="form">
<div class="form-group">
<div class="buttons">
${h.submit('remove_%s' % c.repo_group.group_name,_('Remove this group'),class_="btn btn-danger",onclick="return confirm('"+_('Confirm to delete this group')+"');")}
</div>
</div>
</div>
${h.end_form()}
<script>
'use strict';
$(document).ready(function(){
$("#parent_group_id").select2({
'dropdownAutoWidth': true
});
});
</script>