##// END OF EJS Templates
templates: drop context_bar, use repo_context_bar directly
templates: drop context_bar, use repo_context_bar directly

File last commit:

r3988:072a37c4 default
r3988:072a37c4 default
Show More
files_add.html
90 lines | 3.6 KiB | text/html | HtmlLexer
Added initial support for creating new nodes in repos
r1483 <%inherit file="/base/base.html"/>
<%def name="title()">
improved title consistency...
r3582 ${_('%s Files Add') % c.repo_name} &middot; ${c.rhodecode_name}
Added initial support for creating new nodes in repos
r1483 </%def>
<%def name="js_extra()">
<script type="text/javascript" src="${h.url('/js/codemirror.js')}"></script>
</%def>
<%def name="css_extra()">
<link rel="stylesheet" type="text/css" href="${h.url('/css/codemirror.css')}"/>
</%def>
fixed missing page_nav in files edit/add
r3620 <%def name="page_nav()">
${self.menu('repositories')}
</%def>
Added initial support for creating new nodes in repos
r1483 <%def name="breadcrumbs_links()">
Mads Kiilerich
clean-up of breadcrumbs on pages with repo context bar
r3602 ${_('Add file')} @ ${h.show_id(c.cs)}
Added initial support for creating new nodes in repos
r1483 </%def>
<%def name="main()">
Mads Kiilerich
templates: drop context_bar, use repo_context_bar directly
r3988 ${self.repo_context_bar('files')}
Added initial support for creating new nodes in repos
r1483 <div class="box">
<!-- box / title -->
<div class="title">
${self.breadcrumbs()}
<ul class="links">
<li>
<span style="text-transform: uppercase;">
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 <a href="#">${_('Branch')}: ${c.cs.branch}</a></span>
White-space cleanup
r1888 </li>
</ul>
Added initial support for creating new nodes in repos
r1483 </div>
<div class="table">
Mads Kiilerich
html: don't use tabs
r3197 <div id="files_data">
${h.form(h.url.current(),method='post',id='eform',enctype="multipart/form-data")}
Added initial support for creating new nodes in repos
r1483 <h3>${_('Add new file')}</h3>
<div class="form">
Changed order of add file form inputs.
r1603 <div class="fields">
<div id="filename_container" class="field file">
<div class="label">
<label for="filename">${_('File Name')}:</label>
</div>
<div class="input">
<input type="text" value="" size="30" name="filename" id="filename">
UI !
r1756 ${_('or')} <span class="ui-btn" id="upload_file_enable">${_('Upload file')}</span>
Changed order of add file form inputs.
r1603 </div>
White-space cleanup
r1888 </div>
Changed order of add file form inputs.
r1603 <div id="upload_file_container" class="field" style="display:none">
<div class="label">
added more strict checks for file path in add file controller
r3559 <label for="upload_file_container">${_('Upload file')}</label>
Added initial support for creating new nodes in repos
r1483 </div>
Changed order of add file form inputs.
r1603 <div class="file">
<input type="file" size="30" name="upload_file" id="upload_file">
White-space cleanup
r1888 ${_('or')} <span class="ui-btn" id="file_enable">${_('Create new file')}</span>
Changed order of add file form inputs.
r1603 </div>
</div>
<div class="field">
<div class="label">
<label for="location">${_('Location')}</label>
</div>
<div class="input">
<input type="text" value="${c.f_path}" size="30" name="location" id="location">
${_('use / to separate directories')}
</div>
White-space cleanup
r1888 </div>
Changed order of add file form inputs.
r1603 </div>
White-space cleanup
r1888 </div>
Mads Kiilerich
html: don't use tabs
r3197 <div id="body" class="codeblock">
<div id="editor_container">
added uploading of files from web interface directly into repo
r1485 <pre id="editor_pre"></pre>
Mads Kiilerich
html: don't use tabs
r3197 <textarea id="editor" name="content" style="display:none"></textarea>
added uploading of files from web interface directly into repo
r1485 </div>
Mads Kiilerich
Fix a lot of casings - use standard casing in most places
r3654 <div style="padding: 10px;color:#666666">${_('Commit message')}</div>
disable file editing when not on branch head fixes issue #462
r3237 <textarea id="commit" name="message" style="height: 100px;width: 99%;margin-left:4px" placeholder="${c.default_message}"></textarea>
Mads Kiilerich
html: don't use tabs
r3197 </div>
minor css fixes
r3887 <div style="text-align: left;padding-top: 5px">
UI !
r1756 ${h.submit('commit',_('Commit changes'),class_="ui-btn")}
${h.reset('reset',_('Reset'),class_="ui-btn")}
Mads Kiilerich
html: don't use tabs
r3197 </div>
${h.end_form()}
<script type="text/javascript">
var reset_url = "${h.url('files_home',repo_name=c.repo_name,revision=c.cs.raw_id,f_path=c.f_path)}";
initCodeMirror('editor',reset_url);
</script>
</div>
Added initial support for creating new nodes in repos
r1483 </div>
White-space cleanup
r1888 </div>
</%def>