Files
@ 9447a8b26da0
Branch filter:
Location: kallithea/kallithea/templates/admin/settings/settings_vcs.html - annotation
9447a8b26da0
4.4 KiB
text/html
style: consistently use label markup wrapping around input elements
The 'for="..."' markup is error prone.
The 'for="..."' markup is error prone.
d1addaf7a91e d1addaf7a91e 4304595d246c 68d3315c48d4 d1923cd0521c 951004d57e3f d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e d1addaf7a91e 68d3315c48d4 68d3315c48d4 d1923cd0521c 951004d57e3f d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e dacdea9fda2a d1addaf7a91e 9447a8b26da0 9447a8b26da0 9447a8b26da0 9447a8b26da0 d1addaf7a91e dacdea9fda2a d1addaf7a91e d1addaf7a91e d1addaf7a91e 4304595d246c d1923cd0521c dd42c2ad28d7 a79e651306e2 c40e567e4b82 5d161c096260 b7654d1675da d1addaf7a91e dacdea9fda2a d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e 40cfdd004bf6 d1addaf7a91e d27572fa323c d27572fa323c d27572fa323c d27572fa323c d27572fa323c d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e d1addaf7a91e 27504cac4127 d1addaf7a91e df5b6fc6c518 df5b6fc6c518 d1addaf7a91e | ${h.form(url('admin_settings'), method='post')}
<div class="form">
<div class="form-horizontal">
<div class="form-group">
<label>${_('Hooks')}:</label>
<div>
<div class="checkbox">
<label>
${h.checkbox('hooks_changegroup_repo_size','True')}
${_('Show repository size after push')}
</label>
</div>
<div class="checkbox">
<label>
${h.checkbox('hooks_changegroup_push_logger','True')}
${_('Log user push commands')}
</label>
</div>
<div class="checkbox">
<label>
${h.checkbox('hooks_outgoing_pull_logger','True')}
${_('Log user pull commands')}
</label>
</div>
<div class="checkbox">
<label>
${h.checkbox('hooks_changegroup_update','True')}
${_('Update repository after push (hg update)')}
</label>
</div>
</div>
</div>
<div class="form-group">
<label>${_('Mercurial extensions')}:</label>
<div>
<div class="checkbox">
<label>
${h.checkbox('extensions_largefiles','True')}
${_('Enable largefiles extension')}
</label>
</div>
<div class="checkbox">
<label>
${h.checkbox('extensions_hgsubversion','True')}
${_('Enable hgsubversion extension')}
</label>
</div>
<span class="help-block">${_('Requires hgsubversion library to be installed. Enables cloning of remote Subversion repositories while converting them to Mercurial.')}</span>
##<div class="checkbox">
## <label>
## ${h.checkbox('extensions_hggit','True')}
## ${_('Enable hg-git extension')}
## </label>
##</div>
##<span class="help-block">${_('Requires hg-git library to be installed. Enables cloning of remote Git repositories while converting them to Mercurial.')}</span>
</div>
</div>
%if c.visual.allow_repo_location_change:
<div class="form-group">
<label class="control-label" for="paths_root_path">${_('Location of repositories')}:</label>
<div>
${h.text('paths_root_path',size=60,readonly="readonly",class_='form-control')}
<span id="path_unlock" data-toggle="tooltip" style="cursor: pointer"
title="${_('Click to unlock. You must restart Kallithea in order to make this setting take effect.')}">
<div class="btn btn-default btn-sm"><i id="path_unlock_icon" class="icon-lock"></i></div>
</span>
<span class="help-block">${_('Filesystem location where repositories are stored. After changing this value, a restart and rescan of the repository folder are both required.')}</span>
</div>
</div>
%else:
## form still requires this but we cannot internally change it anyway
${h.hidden('paths_root_path',size=30,readonly="readonly")}
%endif
<div class="form-group">
<div class="buttons">
${h.submit('save',_('Save Settings'),class_="btn btn-default")}
${h.reset('reset',_('Reset'),class_="btn btn-default")}
</div>
</div>
</div>
</div>
${h.end_form()}
<script type="text/javascript">
$(document).ready(function(){
$('#path_unlock').on('click', function(e){
$('#path_unlock_icon').removeClass('icon-lock');
$('#path_unlock_icon').addClass('icon-lock-open-alt');
$('#paths_root_path').removeAttr('readonly');
});
});
</script>
|