Remove legacy 'forms' package and templates
yay!
This commit is contained in:
parent
66769ab34b
commit
d0b78babd2
26 changed files with 0 additions and 2051 deletions
tailbone/templates/forms
|
@ -1,4 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace file="/autocomplete.mako" import="autocomplete" />
|
||||
|
||||
${autocomplete(field_name, service_url, field_value, field_display, width=width, selected=selected, cleared=cleared)}
|
|
@ -1,10 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
${h.text(name, value=value)}
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
$('input[name="${name}"]').datepicker({
|
||||
changeYear: ${'true' if change_year else 'false'},
|
||||
dateFormat: 'yy-mm-dd'
|
||||
});
|
||||
});
|
||||
</script>
|
|
@ -1,40 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<% _focus_rendered = False %>
|
||||
|
||||
% for error in fieldset.errors.get(None, []):
|
||||
<div class="fieldset-error">${error}</div>
|
||||
% endfor
|
||||
|
||||
% for field in fieldset.render_fields.itervalues():
|
||||
|
||||
% if field.requires_label:
|
||||
<div class="field-wrapper ${field.name}">
|
||||
% for error in field.errors:
|
||||
<div class="field-error">${error}</div>
|
||||
% endfor
|
||||
${field.label_tag()|n}
|
||||
<div class="field">${field.render()|n}</div>
|
||||
% if 'instructions' in field.metadata:
|
||||
<span class="instructions">${field.metadata['instructions']}</span>
|
||||
% endif
|
||||
</div>
|
||||
|
||||
% if not _focus_rendered and (fieldset.focus is True or fieldset.focus is field):
|
||||
% if not field.is_readonly() and getattr(field.renderer, 'needs_focus', True):
|
||||
<script type="text/javascript">
|
||||
$(function() {
|
||||
% if hasattr(field.renderer, 'focus_name'):
|
||||
$('#${field.renderer.focus_name}').focus();
|
||||
% else:
|
||||
$('#${field.renderer.name}').focus();
|
||||
% endif
|
||||
});
|
||||
</script>
|
||||
<% _focus_rendered = True %>
|
||||
% endif
|
||||
% endif
|
||||
% else:
|
||||
${field.render()|n}
|
||||
% endif
|
||||
|
||||
% endfor
|
|
@ -1,7 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<%namespace file="/forms/lib.mako" import="render_field_readonly" />
|
||||
<div class="fieldset">
|
||||
% for field in fieldset.render_fields.itervalues():
|
||||
${render_field_readonly(field)}
|
||||
% endfor
|
||||
</div>
|
|
@ -1,21 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<div class="form">
|
||||
${h.form(form.action_url, id=form.id or None, method='post', enctype='multipart/form-data')}
|
||||
${form.csrf_token()}
|
||||
|
||||
${form.render_fields()|n}
|
||||
|
||||
% if buttons:
|
||||
${buttons|n}
|
||||
% else:
|
||||
<div class="buttons">
|
||||
${h.submit('create', form.create_label if form.creating else form.update_label)}
|
||||
% if form.creating and form.allow_successive_creates:
|
||||
${h.submit('create_and_continue', form.successive_create_label)}
|
||||
% endif
|
||||
<a href="${form.cancel_url}" class="button">Cancel</a>
|
||||
</div>
|
||||
% endif
|
||||
|
||||
${h.end_form()}
|
||||
</div>
|
|
@ -1,7 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
<div class="form">
|
||||
${form.render_fields()|n}
|
||||
% if buttons:
|
||||
${buttons|n}
|
||||
% endif
|
||||
</div>
|
|
@ -1,10 +0,0 @@
|
|||
## -*- coding: utf-8 -*-
|
||||
|
||||
<%def name="render_field_readonly(field)">
|
||||
% if field.requires_label:
|
||||
<div class="field-wrapper ${field.name}">
|
||||
${field.label_tag()|n}
|
||||
<div class="field">${field.render_readonly()}</div>
|
||||
</div>
|
||||
% endif
|
||||
</%def>
|
Loading…
Add table
Add a link
Reference in a new issue