Mercurial > kallithea
changeset 6856:dfb31968225d
templates: tweak file edit page markup to be slightly more correct and make it look slightly better
- use <label> for the commit message label
- use .form-group
- use form-inline only for the heading
- use form-group-sm to make the <select> less bloated
author | domruf <dominikruf@gmail.com> |
---|---|
date | Sun, 30 Jul 2017 14:26:10 +0200 |
parents | d01ca871f1bd |
children | cddff7f0dd08 |
files | kallithea/templates/files/files_edit.html |
diffstat | 1 files changed, 5 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/kallithea/templates/files/files_edit.html Wed Jun 28 22:57:48 2017 +0200 +++ b/kallithea/templates/files/files_edit.html Sun Jul 30 14:26:10 2017 +0200 @@ -34,12 +34,12 @@ </div> <div class="panel-body" id="edit"> <div id="files_data"> - ${h.form(h.url.current(),method='post',id='eform',class_='form-inline')} + ${h.form(h.url.current(),method='post',id='eform')} <h3 class="files_location"> ${_('Location')}: ${h.files_breadcrumbs(c.repo_name,c.cs.raw_id,c.file.path)} </h3> <div id="body" class="panel panel-default"> - <div class="panel-heading clearfix"> + <div class="panel-heading clearfix form-inline form-group-sm"> <span> <span><i class="icon-doc-inv"></i></span> <span>${h.link_to(h.show_id(c.file.changeset),h.url('changeset_home',repo_name=c.repo_name,revision=c.file.changeset.raw_id))}</span> @@ -63,11 +63,11 @@ </div> </div> <div> - <div> - <div>${_('Commit Message')}</div> + <div class="form-group"> + <label>${_('Commit Message')}</label> <textarea class="form-control commit-message" id="commit" name="message" placeholder="${c.default_message}"></textarea> </div> - <div class="buttons"> + <div class="form-group buttons"> ${h.submit('commit',_('Commit Changes'),class_="btn btn-success")} ${h.reset('reset',_('Reset'),class_="btn btn-default")} </div>