From 4759a8804c3dde1d353576d4387a569c6d90c6c7 Mon Sep 17 00:00:00 2001 From: Jed Watson Date: Thu, 15 Jan 2015 15:06:24 +1100 Subject: [PATCH] Removing old jade form field templates --- templates/fields/azurefile/form.jade | 23 --------- templates/fields/boolean/form.jade | 14 ----- templates/fields/boolean/initial.jade | 7 --- templates/fields/cloudinaryimage/form.jade | 55 -------------------- templates/fields/cloudinaryimages/form.jade | 57 --------------------- templates/fields/code/form.jade | 9 ---- templates/fields/color/form.jade | 12 ----- templates/fields/color/initial.jade | 9 ---- templates/fields/date/form.jade | 10 ---- templates/fields/date/initial.jade | 6 --- templates/fields/datetime/form.jade | 11 ---- templates/fields/datetime/initial.jade | 8 --- templates/fields/email/form.jade | 13 ----- templates/fields/email/initial.jade | 1 - templates/fields/embedly/form.jade | 14 ----- templates/fields/html/form.jade | 9 ---- templates/fields/html/initial.jade | 6 --- templates/fields/key/form.jade | 1 - templates/fields/key/initial.jade | 1 - templates/fields/localfile/form.jade | 27 ---------- templates/fields/localfiles/form.jade | 38 -------------- templates/fields/location/form.jade | 48 ----------------- templates/fields/location/initial.jade | 44 ---------------- templates/fields/markdown/form.jade | 9 ---- templates/fields/markdown/initial.jade | 6 --- templates/fields/money/form.jade | 1 - templates/fields/money/initial.jade | 1 - templates/fields/name/form.jade | 16 ------ templates/fields/name/initial.jade | 8 --- templates/fields/number/form.jade | 1 - templates/fields/number/initial.jade | 1 - templates/fields/numberarray/form.jade | 1 - templates/fields/numberarray/initial.jade | 1 - templates/fields/password/form.jade | 15 ------ templates/fields/password/initial.jade | 8 --- templates/fields/relationship/form.jade | 30 ----------- templates/fields/relationship/initial.jade | 19 ------- templates/fields/s3file/form.jade | 27 ---------- templates/fields/select/form.jade | 16 ------ templates/fields/select/initial.jade | 10 ---- templates/fields/text/form.jade | 10 ---- templates/fields/text/initial.jade | 6 --- templates/fields/textarea/form.jade | 9 ---- templates/fields/textarea/initial.jade | 6 --- templates/fields/textarray/form.jade | 15 ------ templates/fields/textarray/initial.jade | 10 ---- templates/fields/url/form.jade | 1 - templates/fields/url/initial.jade | 1 - 48 files changed, 651 deletions(-) delete mode 100644 templates/fields/azurefile/form.jade delete mode 100644 templates/fields/boolean/form.jade delete mode 100644 templates/fields/boolean/initial.jade delete mode 100644 templates/fields/cloudinaryimage/form.jade delete mode 100644 templates/fields/cloudinaryimages/form.jade delete mode 100644 templates/fields/code/form.jade delete mode 100644 templates/fields/color/form.jade delete mode 100644 templates/fields/color/initial.jade delete mode 100644 templates/fields/date/form.jade delete mode 100644 templates/fields/date/initial.jade delete mode 100644 templates/fields/datetime/form.jade delete mode 100644 templates/fields/datetime/initial.jade delete mode 100644 templates/fields/email/form.jade delete mode 100644 templates/fields/email/initial.jade delete mode 100644 templates/fields/embedly/form.jade delete mode 100644 templates/fields/html/form.jade delete mode 100644 templates/fields/html/initial.jade delete mode 100644 templates/fields/key/form.jade delete mode 100644 templates/fields/key/initial.jade delete mode 100644 templates/fields/localfile/form.jade delete mode 100644 templates/fields/localfiles/form.jade delete mode 100644 templates/fields/location/form.jade delete mode 100644 templates/fields/location/initial.jade delete mode 100644 templates/fields/markdown/form.jade delete mode 100644 templates/fields/markdown/initial.jade delete mode 100644 templates/fields/money/form.jade delete mode 100644 templates/fields/money/initial.jade delete mode 100644 templates/fields/name/form.jade delete mode 100644 templates/fields/name/initial.jade delete mode 100644 templates/fields/number/form.jade delete mode 100644 templates/fields/number/initial.jade delete mode 100644 templates/fields/numberarray/form.jade delete mode 100644 templates/fields/numberarray/initial.jade delete mode 100644 templates/fields/password/form.jade delete mode 100644 templates/fields/password/initial.jade delete mode 100644 templates/fields/relationship/form.jade delete mode 100644 templates/fields/relationship/initial.jade delete mode 100644 templates/fields/s3file/form.jade delete mode 100644 templates/fields/select/form.jade delete mode 100644 templates/fields/select/initial.jade delete mode 100644 templates/fields/text/form.jade delete mode 100644 templates/fields/text/initial.jade delete mode 100644 templates/fields/textarea/form.jade delete mode 100644 templates/fields/textarea/initial.jade delete mode 100644 templates/fields/textarray/form.jade delete mode 100644 templates/fields/textarray/initial.jade delete mode 100644 templates/fields/url/form.jade delete mode 100644 templates/fields/url/initial.jade diff --git a/templates/fields/azurefile/form.jade b/templates/fields/azurefile/form.jade deleted file mode 100644 index f6b2144ae3..0000000000 --- a/templates/fields/azurefile/form.jade +++ /dev/null @@ -1,23 +0,0 @@ -- var hasFile = item.get(field.paths.exists) -.field.type-azurefile(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFile ? 'true' : 'false') - label.field-label= field.label - input(type='file', name=field.paths.upload).field-upload - input(type='hidden', name=field.paths.action, value='').field-action - .field-ui(class=hasFile ? 'has-file' : false) - .file-container - .file-details - if hasFile - .file-values - a(href=item.get(field.paths.url), target='_blank').field-value= item.get(field.paths.url) - .upload-queued.pull-left - .alert.alert-success File selected - save to upload - .delete-queued.pull-left - .alert.alert-danger - .file-toolbar - div.pull-left - button(type='button').btn.btn-default.btn-upload-file=(hasFile ? 'Change' : 'Upload' ) + ' File' - button(type='button', data-alt-text='Delete File', style=(hasFile ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File - button(type='button', data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload - button(type='button', style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove - if field.note - .col-md-10: .field-note!= field.note \ No newline at end of file diff --git a/templates/fields/boolean/form.jade b/templates/fields/boolean/form.jade deleted file mode 100644 index c540dfb31a..0000000000 --- a/templates/fields/boolean/form.jade +++ /dev/null @@ -1,14 +0,0 @@ -.field.type-boolean(data-field-type=field.type, data-field-path=field.path, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=item.get(field.path) ? 'true' : 'false') - .field-ui(class=field.indent ? 'field-indented' : false) - if field.noedit - if item.get(field.path) - img(src='/keystone/images/icons/16/checkbox-checked.png', width=16, height=16).checked - else - img(src='/keystone/images/icons/16/checkbox-unchecked.png', width=16, height=16).unchecked - span= field.label - else - label(for=field.path).checkbox - input(type='checkbox', name=field.path, id=field.path, value='true', checked=item.get(field.path)) - =' ' + field.label - if field.note - .field-note !{field.note} diff --git a/templates/fields/boolean/initial.jade b/templates/fields/boolean/initial.jade deleted file mode 100644 index 1fa92fd964..0000000000 --- a/templates/fields/boolean/initial.jade +++ /dev/null @@ -1,7 +0,0 @@ -.field.type-boolean - .field-ui(class=field.indent ? 'field-indented' : false) - label(for=field.path).checkbox - input(type='checkbox', name=field.path, id=field.path, value='true', checked=(item[field.path] === 'true' || field.options.default === true)) - =' ' + field.label - if field.note - .field-note !{field.note} diff --git a/templates/fields/cloudinaryimage/form.jade b/templates/fields/cloudinaryimage/form.jade deleted file mode 100644 index 4ab62403c8..0000000000 --- a/templates/fields/cloudinaryimage/form.jade +++ /dev/null @@ -1,55 +0,0 @@ -- var hasImage = item.get(field.paths.exists) -.field.type-cloudinaryimage(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasImage ? 'true' : 'false') - label.field-label= field.label - input(type='file', name=field.paths.upload).field-upload - input(type='hidden', name=field.paths.action, value='').field-action - .field-ui(class=hasImage ? 'has-image' : false) - if field.noedit - if hasImage - .image-preview - a(href=item.get(field.paths.url), rel=field.path).img-thumbnail - img(width=90, height=90, data-src=field.apply(item, 'fit', false, 90), data-id=item.get(field.paths.public_id), data-wysiwyg=(field.options.wysiwyg ? 'true' : false), data-wysiwyg-options=(field.options.wysiwyg ? '#{JSON.stringify(field.options.wysiwyg)}' : false), data-wysiwyg-original=(field.options.wysiwyg ? item.get(field.paths.url) : false), data-wysiwyg-src=(field.options.wysiwyg ? ( 'object' == typeof field.options.wysiwyg ? field.apply(item, field.options.wysiwyg.crop, field.options.wysiwyg.width, field.options.wysiwyg.height) : item.get(field.paths.url) ) : false)).img-load - .ion-image.img-loading - .image-details - .field-value= item.get(field.paths.url) - .field-value= item.get(field.paths.width) + ' x ' + item.get(field.paths.height) - else - .help-block (no image) - else - .image-container - if hasImage - .image-preview.current - a(href=item.get(field.paths.url), rel=field.path).img-thumbnail - img(width=90, height=90, data-src=field.apply(item, 'fit', false, 90), data-id=item.get(field.paths.public_id), data-wysiwyg=(field.options.wysiwyg ? 'true' : false), data-wysiwyg-options=(field.options.wysiwyg ? '#{JSON.stringify(field.options.wysiwyg)}' : false), data-wysiwyg-original=(field.options.wysiwyg ? item.get(field.paths.url) : false), data-wysiwyg-src=(field.options.wysiwyg ? ( 'object' == typeof field.options.wysiwyg ? field.apply(item, field.options.wysiwyg.crop, field.options.wysiwyg.width, field.options.wysiwyg.height) : item.get(field.paths.url) ) : false)).img-load - .ion-image.img-loading - .delete-pending(style='display: none;') - .image-details - if hasImage - .image-values - .field-value= item.get(field.paths.url) - .field-value= item.get(field.paths.width) + ' x ' + item.get(field.paths.height) - .upload-queued.pull-left - .alert.alert-success Image selected - save to upload - .select-queued.pull-left - .alert.alert-success Image selected from Cloudinary - .delete-queued.pull-left - .alert.alert-danger - .image-toolbar - div.pull-left - button(type='button').btn.btn-default.btn-upload-image= (hasImage ? 'Change' : 'Upload') + ' Image' - if field.options.autoCleanup - button(type='button', data-alt-text='Remove Image', data-default-action='delete', data-alt-action='reset', style=(hasImage ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-image Delete Image - else - button(type='button', data-alt-text='Delete Image', data-default-action='reset', data-alt-action='delete', style=(hasImage ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-image Remove Image - button(type='button', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-image Cancel Upload - button(type='button', style='display: none;').btn.btn-link.btn-cancel.btn-undo-image Undo Remove - if field.options.select - .image-select - input(type='hidden', - name=field.path + '_select', - id='field_' + field.path + '_select', - data-prefix=(field.options.selectPrefix ? field.options.selectPrefix : item.get(field.paths.folder)), - data-ref-filters=field.filters).ui-select2-cloudinary - - if field.note - .field-note!= field.note diff --git a/templates/fields/cloudinaryimages/form.jade b/templates/fields/cloudinaryimages/form.jade deleted file mode 100644 index 8620343a72..0000000000 --- a/templates/fields/cloudinaryimages/form.jade +++ /dev/null @@ -1,57 +0,0 @@ -- var hasImages = item.get(field.path).length -- var p = cloudinary.prefix; -- if (p.length) - - p += '_'; -- var tags = [p + field.list.path + '_' + field.path, p + field.list.path + '_' + field.path + '_' + item.id]; -- if (cloudinary.prefix) - - tags.push(cloudinary.prefix); -- if (env != 'production') - - tags.push(p + 'dev'); -- var uploadOptions = {tags: tags}; -- if (cloudinary.folders) - - uploadOptions.folder = item.get(field.paths.folder); -- var directUpload = cloudinary.uploader.direct_upload(undefined, uploadOptions); -- var formData = _.extend({cloud_name: cloudinary.cloud_name, api_key: cloudinary.api_key, timestamp: directUpload.hidden_fields.timestamp, signature: directUpload.hidden_fields.signature}, uploadOptions); -.field.type-cloudinaryimages(data-field-type=field.type, data-field-path=field.path, data-field-paths-upload=field.paths.upload, data-field-paths-uploads=field.paths.uploads, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasImages ? 'true' : 'false') - label.field-label= field.label - input(type='hidden', name=field.paths.action, value='').field-action - input(type='hidden', name=field.paths.order, value='').field-order - input(type='hidden', name=field.paths.uploads, value='').field-uploads - input(type='file', name='file', multiple, data-form-data='#{JSON.stringify(formData)}').field-upload - .field-ui(class=hasImages ? 'has-image' : false) - if field.noedit - each value in item.get(field.path) - .image-field.row.col-sm-3.col-md-12(title=value.width + ' x ' + value.height) - .image-preview - a(href=value.url, rel=field.path).img-thumbnail - img(width=90, height=90, data-src=value.fit(false, 90), data-id=value.public_id, data-wysiwyg=(field.options.wysiwyg ? 'true' : false), data-wysiwyg-options=(field.options.wysiwyg ? '#{JSON.stringify(field.options.wysiwyg)}' : false), data-wysiwyg-original=(field.options.wysiwyg ? value.url : false), data-wysiwyg-src=(field.options.wysiwyg ? ( 'object' == typeof field.options.wysiwyg ? value[field.options.wysiwyg.crop](field.options.wysiwyg.width, field.options.wysiwyg.height) : value.src() ) : false)).img-load - .ion-picture.img-loading - else - .images-container.clearfix - each value in item.get(field.path) - .image-field.image-sortable.row.col-sm-3.col-md-12(data-id=value.public_id, title=value.width + ' x ' + value.height) - .image-preview - a(href=value.url, rel=field.path).img-thumbnail - img(width=90, height=90, data-src=value.fit(false, 90), data-id=value.public_id, data-wysiwyg=(field.options.wysiwyg ? 'true' : false), data-wysiwyg-options=(field.options.wysiwyg ? '#{JSON.stringify(field.options.wysiwyg)}' : false), data-wysiwyg-original=(field.options.wysiwyg ? value.url : false), data-wysiwyg-src=(field.options.wysiwyg ? ( 'object' == typeof field.options.wysiwyg ? value[field.options.wysiwyg.crop](field.options.wysiwyg.width, field.options.wysiwyg.height) : value.src() ) : false)).img-load - .ion-picture.img-loading - .delete-pending(style='display: none;') - .image-details - button(type='button', data-alt-text='Delete').btn.btn-link.btn-cancel.btn-remove-image Remove - button(type='button', data-alt-text='Undo', style='display: none;').btn.btn-link.btn-cancel.btn-undo-remove Undo - .image-field.image-upload.row.col-sm-3.col-md-12 - .image-preview - span.img-thumbnail - span.img-dropzone - .ion-picture.img-uploading - .image-details - span.image-message Drag to upload - - .images-toolbar.row.col-sm-3.col-md-12 - div.pull-left - button(type='button').btn.btn-default.btn-upload Upload Images - .upload-queued.pull-left - .alert.alert-success - .delete-queued.pull-left - .alert.alert-danger - if field.note - .field-note!= field.note diff --git a/templates/fields/code/form.jade b/templates/fields/code/form.jade deleted file mode 100644 index bc5bfbcd39..0000000000 --- a/templates/fields/code/form.jade +++ /dev/null @@ -1,9 +0,0 @@ -.field.type-code(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - .field-value= item.get(field.path) - else - textarea(name=field.path, class='dev-code' data-dev-lang=(field.lang ? field.lang : null) data-dev-mime=(field.mime ? field.mime : null) style='height: #{field.height}px')= item.get(field.path) - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note diff --git a/templates/fields/color/form.jade b/templates/fields/color/form.jade deleted file mode 100644 index 76dc2286bf..0000000000 --- a/templates/fields/color/form.jade +++ /dev/null @@ -1,12 +0,0 @@ -.field(class='type-' + field.type, data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - - var value = field.format(item) - .field-ui - if field.noedit - .field-value= value - else - .input-group.field-type-color - input(type='text', name=field.path, value=value, autocomplete='off').form-control - span.input-group-addon: i - if field.note - .field-note!= field.note diff --git a/templates/fields/color/initial.jade b/templates/fields/color/initial.jade deleted file mode 100644 index fef57e1c00..0000000000 --- a/templates/fields/color/initial.jade +++ /dev/null @@ -1,9 +0,0 @@ -.field(class='type-' + field.type) - label.field-label= field.label - .field-ui - .input-group.field-type-color - input(type='text', name=field.path, value=item[field.path], autocomplete='off').form-control - span.input-group-addon: i - if field.note - .field-note!= field.note - diff --git a/templates/fields/date/form.jade b/templates/fields/date/form.jade deleted file mode 100644 index 5b3e432ca6..0000000000 --- a/templates/fields/date/form.jade +++ /dev/null @@ -1,10 +0,0 @@ -.field(class='type-' + field.type, data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - .field-value= field.format(item, 'Do MMM YYYY') - else - input(type='text', name=field.path, value=field.format(item, 'YYYY-MM-DD'), class='ui-datepicker', placeholder='YYYY-MM-DD', autocomplete='off').form-control - button(type='button').btn.btn-default.btn-set-today Today - if field.note - .field-note!= field.note diff --git a/templates/fields/date/initial.jade b/templates/fields/date/initial.jade deleted file mode 100644 index eb024778ce..0000000000 --- a/templates/fields/date/initial.jade +++ /dev/null @@ -1,6 +0,0 @@ -.field(class='type-' + field.type) - label.field-label= field.label - .field-ui(class='width-' + field.width) - input(type='text', name=field.path, value=item[field.path], class='ui-datepicker' autocomplete='off').form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/datetime/form.jade b/templates/fields/datetime/form.jade deleted file mode 100644 index f3aa899fa9..0000000000 --- a/templates/fields/datetime/form.jade +++ /dev/null @@ -1,11 +0,0 @@ -.field.type-datetime(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - .field-value= field.format(item, 'Do MMM YYYY, h:mm:ss a') - else - input(type='text', name=field.paths.date, value=field.format(item, 'YYYY-MM-DD'), placeholder='YYYY-MM-DD', autocomplete='off').form-control.ui-datepicker - input(type='text', name=field.paths.time, value=field.format(item, 'h:mm:ss a'), placeholder='HH:MM:SS am/pm', autocomplete='off').form-control.time - button(type='button').btn.btn-default.btn-set-now Now - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note \ No newline at end of file diff --git a/templates/fields/datetime/initial.jade b/templates/fields/datetime/initial.jade deleted file mode 100644 index d103c08df1..0000000000 --- a/templates/fields/datetime/initial.jade +++ /dev/null @@ -1,8 +0,0 @@ -.field.type-datetime - label.field-label= field.label - .field-ui(class='width-' + field.width) - .form-row - .col-sm-6: input(type='text', name=field.paths.date, value=item[field.paths.date], placeholder='YYYY-MM-DD', autocomplete='off').form-control.ui-datepicker - .col-sm-6: input(type='text', name=field.paths.time, value=item[field.paths.time], placeholder='HH:MM:SS am/pm', autocomplete='off').form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/email/form.jade b/templates/fields/email/form.jade deleted file mode 100644 index 3c110ba019..0000000000 --- a/templates/fields/email/form.jade +++ /dev/null @@ -1,13 +0,0 @@ -.field.type-email(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-gravatar=field.options.displayGravatar ? 'true' : 'false') - label.field-label= field.label - - var value = field.format(item) - .field-ui(class='width-' + field.width) - if field.noedit - .field-value= value - else - input(type='text', name=field.path, value=value, autocomplete='off').form-control - if field.note - .field-note!= field.note - if field.options.displayGravatar - img(src=field.gravatarUrl(item,100), style="margin-top:10px").img-thumbnail.img-gravatar - diff --git a/templates/fields/email/initial.jade b/templates/fields/email/initial.jade deleted file mode 100644 index e69f439744..0000000000 --- a/templates/fields/email/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/initial \ No newline at end of file diff --git a/templates/fields/embedly/form.jade b/templates/fields/embedly/form.jade deleted file mode 100644 index f681aa4a33..0000000000 --- a/templates/fields/embedly/form.jade +++ /dev/null @@ -1,14 +0,0 @@ -.field.type-embedly(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui - if item.get(field.paths.exists) - .field-value= item.get(field.paths.providerName) + ' ' + utils.upcase(item.get(field.paths.type)) - .field-value= item.get(field.paths.url) - if item.get(field.paths.thumbnailUrl) - .image-preview - a(href=item.get(field.paths.url), rel=field.path).img-thumbnail - img(width=item.get(field.paths.thumbnailWidth), height=item.get(field.paths.thumbnailHeight), src=item.get(field.paths.thumbnailUrl)) - else - .field-value (not set) - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note diff --git a/templates/fields/html/form.jade b/templates/fields/html/form.jade deleted file mode 100644 index bd53139c96..0000000000 --- a/templates/fields/html/form.jade +++ /dev/null @@ -1,9 +0,0 @@ -.field.type-html(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - textarea(name=field.path, class=field.wysiwyg ? 'wysiwyg-noedit' : 'code', style='height: #{field.height}px')= item.get(field.path) - else - textarea(name=field.path, class=field.wysiwyg ? 'wysiwyg' : 'code', style='height: #{field.height}px')= item.get(field.path) - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note diff --git a/templates/fields/html/initial.jade b/templates/fields/html/initial.jade deleted file mode 100644 index 2d9cb44174..0000000000 --- a/templates/fields/html/initial.jade +++ /dev/null @@ -1,6 +0,0 @@ -.field.type-html - label.field-label= field.label - .field-ui(class='width-' + field.width) - textarea(name=field.path, class=field.wysiwyg ? 'wysiwyg' : 'code', style='height: #{field.height}px')= item[field.path] - if field.note - .field-note!= field.note diff --git a/templates/fields/key/form.jade b/templates/fields/key/form.jade deleted file mode 100644 index 3abb8b9fcd..0000000000 --- a/templates/fields/key/form.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/form \ No newline at end of file diff --git a/templates/fields/key/initial.jade b/templates/fields/key/initial.jade deleted file mode 100644 index e69f439744..0000000000 --- a/templates/fields/key/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/initial \ No newline at end of file diff --git a/templates/fields/localfile/form.jade b/templates/fields/localfile/form.jade deleted file mode 100644 index 648b048548..0000000000 --- a/templates/fields/localfile/form.jade +++ /dev/null @@ -1,27 +0,0 @@ -- var hasFile = item.get(field.paths.exists) -.field.type-localfile(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFile ? 'true' : 'false') - label.field-label= field.label - input(type='file', name=field.paths.upload).field-upload - input(type='hidden', name=field.paths.action, value='').field-action - .field-ui(class=hasFile ? 'has-file' : false) - .file-container - .file-details - if hasFile - .file-values - a(href=field.href(item), target='_blank').field-value - if field.hasFormatter() - !=field.format(item) - else - =field.format(item) - .upload-queued.pull-left - .alert.alert-success File selected - save to upload - .delete-queued.pull-left - .alert.alert-danger - .file-toolbar - div.pull-left - button(type='button').btn.btn-default.btn-upload-file=(hasFile ? 'Change' : 'Upload' ) + ' File' - button(type='button', data-alt-text='Delete File', style=(hasFile ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File - button(type='button', data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload - button(type='button', style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove - if field.note - .field-note!= field.note diff --git a/templates/fields/localfiles/form.jade b/templates/fields/localfiles/form.jade deleted file mode 100644 index 4cbaa768dc..0000000000 --- a/templates/fields/localfiles/form.jade +++ /dev/null @@ -1,38 +0,0 @@ -- var hasFiles = item.get(field.paths.exists).length -.field.type-localfiles(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFiles ? 'true' : 'false') - label.field-label= field.label - input(type='file', name=field.paths.upload, multiple).field-upload - input(type='hidden', name=field.paths.action, value='').field-action - input(type='hidden', name=field.paths.order, value='').field-order - .field-ui(class=hasFiles ? 'has-file' : false) - .files-container.clearfix - each file, i in item.get(field.path) - .file-field.file-sortable(data-id=file.id) - .file-preview - a(href=field.href(file), target='_blank').field-value - if field.hasFormatter() - !=field.format(item, i) - else - =field.format(item, i) - .glyphicon.glyphicon-trash.delete-pending(style='display:none;') - .file-details - button(type='button', data-alt-text='Delete').btn.btn-link.btn-cancel.btn-remove-file Remove - button(type='button', data-alt-text='Undo', style='display:none;').btn.btn-link.btn-cancel.btn-undo-remove Undo - - - .file-container - .file-details.clearfix - .upload-queued.pull-left(style='display:none') - .alert.alert-success - .files-list - span.number-of-files - selected - save to upload - .file-toolbar - div.pull-left - button(type='button').btn.btn-default.btn-upload Upload Files - //button(type='button').btn.btn-default.btn-upload-file=(hasFiles ? 'Change' : 'Upload' ) + ' File' - //a(href=js, data-alt-text='Delete File', style=(hasFiles ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File - a(href=js, data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload - //a(href=js, style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove - if field.note - .field-note!= field.note diff --git a/templates/fields/location/form.jade b/templates/fields/location/form.jade deleted file mode 100644 index 0c47bb31f9..0000000000 --- a/templates/fields/location/form.jade +++ /dev/null @@ -1,48 +0,0 @@ -.field.type-location(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - if field.noedit - label.field-label= field.label - .field-ui.noedit: .field-value= field.format(item) - else - .field-ui - label= field.label - a(href=js).field-label-companion.btn-show-extras (show more fields) - .row.extras - .col-sm-3.col-md-2: label.text-muted PO Box / Shop - .col-sm-3.col-md-2: input(type='text', name=field.paths.number, value=item.get(field.paths.number)).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Building Name - .col-sm-9.col-md-5: input(type='text', name=field.paths.name, value=item.get(field.paths.name)).form-control - .row - .col-sm-3.col-md-2: label.text-muted Street Address - .col-sm-9.col-md-5: input(type='text', name=field.paths.street1, value=item.get(field.paths.street1)).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Street Address 2 - .col-sm-9.col-md-5: input(type='text', name=field.paths.street2, value=item.get(field.paths.street2)).form-control - .row - .col-sm-3.col-md-2: label.text-muted Suburb - .col-sm-9.col-md-5: input(type='text', name=field.paths.suburb, value=item.get(field.paths.suburb)).form-control - .row - .col-sm-3.col-md-2: label.text-muted State - .col-sm-3.col-md-2: input(type='text', name=field.paths.state, value=item.get(field.paths.state)).form-control - .col-sm-2.col-md-1.field-postcode: label.text-muted Postcode - .col-sm-3.col-md-2: input(type='text', name=field.paths.postcode, value=item.get(field.paths.postcode)).form-control - .row - .col-sm-3.col-md-2: label.text-muted Country - .col-sm-9.col-md-5: input(type='text', name=field.paths.country, value=item.get(field.paths.country)).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Lng/Lat - .col-sm-9.col-md-5: .form-row - .col-sm-6: input(type='text', name=field.paths.geo, value=item.get(field.path + '.geo') ? item.get(field.path + '.geo')[0] : '', placeholder='Longitude').form-control - .col-sm-6: input(type='text', name=field.paths.geo, value=item.get(field.path + '.geo') ? item.get(field.path + '.geo')[1] : '', placeholder='Latitude').form-control - - if field.enableMapsAPI - .row: .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2.improve-options - label(for=field.paths.improve, title='When checked, this will attempt to fill missing fields. It will also get the lat/long').checkbox.autoimprove - input(type='checkbox', name=field.paths.improve, id=field.paths.improve, value='true') - | Autodetect and improve location on save - label(for=field.paths.overwrite).checkbox.overwrite - input(type='checkbox', name=field.paths.overwrite, id=field.paths.overwrite, value='true') - | Replace existing data - - if field.note - .field-note!= field.note diff --git a/templates/fields/location/initial.jade b/templates/fields/location/initial.jade deleted file mode 100644 index 5434e8f2ff..0000000000 --- a/templates/fields/location/initial.jade +++ /dev/null @@ -1,44 +0,0 @@ -.field.type-location - .field-ui - label= field.label - a(href=js).field-label-companion.btn-show-extras (show more fields) - .row.extras - .col-sm-3.col-md-2: label.text-muted PO Box / Shop - .col-sm-3.col-md-2: input(type='text', name=field.paths.number, value=item[field.paths.number]).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Building Name - .col-sm-9.col-md-5: input(type='text', name=field.paths.name, value=item[field.paths.name]).form-control - .row - .col-sm-3.col-md-2: label.text-muted Street Address - .col-sm-9.col-md-5: input(type='text', name=field.paths.street1, value=item[field.paths.street1]).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Street Address 2 - .col-sm-9.col-md-5: input(type='text', name=field.paths.street2, value=item[field.paths.street2]).form-control - .row - .col-sm-3.col-md-2: label.text-muted Suburb - .col-sm-9.col-md-5: input(type='text', name=field.paths.suburb, value=item[field.paths.suburb]).form-control - .row - .col-sm-3.col-md-2: label.text-muted State - .col-sm-3.col-md-2: input(type='text', name=field.paths.state, value=item[field.paths.state]).form-control - .col-sm-2.col-md-1.field-postcode: label.text-muted Postcode - .col-sm-3.col-md-2: input(type='text', name=field.paths.postcode, value=item[field.paths.postcode]).form-control - .row - .col-sm-3.col-md-2: label.text-muted Country - .col-sm-9.col-md-5: input(type='text', name=field.paths.country, value=item[field.paths.country]).form-control - .row.extras - .col-sm-3.col-md-2: label.text-muted Lng/Lat - .col-sm-9.col-md-5: .form-row - .col-sm-6: input(type='text', name=field.paths.geo, value=item[field.path + '.geo'] ? item[field.path + '.geo'][0] : '', placeholder='Longitude').form-control - .col-sm-6: input(type='text', name=field.paths.geo, value=item[field.path + '.geo'] ? item[field.path + '.geo'][1] : '', placeholder='Latitude').form-control - - if field.enableMapsAPI - .row: .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2.improve-options - label(for=field.paths.improve, title='When checked, this will attempt to fill missing fields. It will also get the lat/long').checkbox.autoimprove - input(type='checkbox', name=field.paths.improve, id=field.paths.improve, value='true') - | Autodetect and improve location on save - label(for=field.paths.overwrite).checkbox.overwrite - input(type='checkbox', name=field.paths.overwrite, id=field.paths.overwrite, value='true') - | Replace existing data - - if field.note - .field-note!= field.note diff --git a/templates/fields/markdown/form.jade b/templates/fields/markdown/form.jade deleted file mode 100644 index 433f2862e8..0000000000 --- a/templates/fields/markdown/form.jade +++ /dev/null @@ -1,9 +0,0 @@ -.field.type-markdown(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - .field-value!= item.get(field.paths.html) - else - textarea(name=field.path, style='height: #{field.height}px', data-toolbar-hidden-buttons=field.toolbarOptions.hiddenButtons).form-control.markdown.code= item.get(field.paths.md) - if field.note - .field-note!= field.note diff --git a/templates/fields/markdown/initial.jade b/templates/fields/markdown/initial.jade deleted file mode 100644 index dcb7e03f2b..0000000000 --- a/templates/fields/markdown/initial.jade +++ /dev/null @@ -1,6 +0,0 @@ -.field.type-markdown - label.field-label= field.label - .field-ui(class='width-' + field.width) - textarea(name=field.path, style='height: #{field.height}px', data-toolbar-hidden-buttons=field.toolbarOptions.hiddenButtons).form-control.markdown.code= item[field.path] - if field.note - .field-note!= field.note diff --git a/templates/fields/money/form.jade b/templates/fields/money/form.jade deleted file mode 100644 index 3abb8b9fcd..0000000000 --- a/templates/fields/money/form.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/form \ No newline at end of file diff --git a/templates/fields/money/initial.jade b/templates/fields/money/initial.jade deleted file mode 100644 index e69f439744..0000000000 --- a/templates/fields/money/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/initial \ No newline at end of file diff --git a/templates/fields/name/form.jade b/templates/fields/name/form.jade deleted file mode 100644 index a0ecb07354..0000000000 --- a/templates/fields/name/form.jade +++ /dev/null @@ -1,16 +0,0 @@ -.field.type-name(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui - if field.noedit - - var value = field.format(item) - if item.get(field.paths.first) || item.get(field.paths.last) - .field-value= item.get(field.paths.first) - .field-value= item.get(field.paths.last) - else - .field-value - else - .form-row - .col-sm-6: input(type='text', name=field.paths.first, autocomplete='off', placeholder='first name', value=item.get(field.paths.first)).form-control - .col-sm-6: input(type='text', name=field.paths.last, autocomplete='off', placeholder='last name', value=item.get(field.paths.last)).form-control - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note diff --git a/templates/fields/name/initial.jade b/templates/fields/name/initial.jade deleted file mode 100644 index a3dbe032de..0000000000 --- a/templates/fields/name/initial.jade +++ /dev/null @@ -1,8 +0,0 @@ -.field.type-name - label.field-label= field.label - .field-ui - .row - .col-sm-6: input(type='text', name=field.paths.first, autocomplete='off', placeholder='first name', value=item[field.paths.first]).form-control - .col-sm-6: input(type='text', name=field.paths.last, autocomplete='off', placeholder='last name', value=item[field.paths.last]).form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/number/form.jade b/templates/fields/number/form.jade deleted file mode 100644 index 3abb8b9fcd..0000000000 --- a/templates/fields/number/form.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/form \ No newline at end of file diff --git a/templates/fields/number/initial.jade b/templates/fields/number/initial.jade deleted file mode 100644 index e69f439744..0000000000 --- a/templates/fields/number/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/initial \ No newline at end of file diff --git a/templates/fields/numberarray/form.jade b/templates/fields/numberarray/form.jade deleted file mode 100644 index 24e977603e..0000000000 --- a/templates/fields/numberarray/form.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../textarray/form diff --git a/templates/fields/numberarray/initial.jade b/templates/fields/numberarray/initial.jade deleted file mode 100644 index 3819275e36..0000000000 --- a/templates/fields/numberarray/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../textarray/initial diff --git a/templates/fields/password/form.jade b/templates/fields/password/form.jade deleted file mode 100644 index 5c06c86803..0000000000 --- a/templates/fields/password/form.jade +++ /dev/null @@ -1,15 +0,0 @@ -.field.type-password(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=item.get(field.path) ? "true" : "false") - label.field-label= field.label - .field-ui - if field.noedit - .field-value= (item.get(field.path)) ? "password set" : "password not set" - else - .leave-password - button(type='button').btn.btn-default.btn-change-password= (item.get(field.path)) ? "Change Password" : "Set Password" - .change-password - .form-row - .col-sm-6: input(type='password', name=field.path, autocomplete='off', placeholder='New password').form-control - .col-sm-6: input(type='password', name=field.paths.confirm, autocomplete='off', placeholder='Confirm new password').form-control - .form-control-wrapper: button(type='button').btn.btn-default.btn-cancel.btn-leave-password Cancel - if field.note - .col-sm-9.col-md-10.col-sm-offset-3.col-md-offset-2: .field-note!= field.note diff --git a/templates/fields/password/initial.jade b/templates/fields/password/initial.jade deleted file mode 100644 index 76fa823013..0000000000 --- a/templates/fields/password/initial.jade +++ /dev/null @@ -1,8 +0,0 @@ -.field.type-password - label.field-label= field.label - .field-ui - .row - .col-sm-6: input(type='password', name=field.path, autocomplete='off', value=item[field.path], placeholder='Set password').form-control - .col-sm-6: input(type='password', name=field.paths.confirm, autocomplete='off', value=item[field.paths.confirm], placeholder='Confirm password').form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/relationship/form.jade b/templates/fields/relationship/form.jade deleted file mode 100644 index bc99839f08..0000000000 --- a/templates/fields/relationship/form.jade +++ /dev/null @@ -1,30 +0,0 @@ -if !field.isValid - .alert.alert-danger Warning: Relationship field #{field.path} refers to an invalid list: #{field.options.ref} -else - - var refList = field.refList - .field.type-relationship(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=item.get(field.path)) - label.field-label= field.label - .field-ui - .field-message - if field.noedit - if !field.many && item.get(field.path) - a(href='/keystone/' + refList.path + '/' + item.get(field.path), data-ref-path=refList.path).ui-related-item= item.get(field.path) - else if field.many && item.get(field.path).length - each value in item.get(field.path) - a(href='/keystone/' + refList.path + '/' + value, data-ref-path=refList.path).ui-related-item= value - else - .help-block (not set) - else - input(type='hidden', - name=field.path, - id='field_' + field.path, - value=field.many ? item.get(field.path).join(',') : item.get(field.path), - data-ref-many=field.many ? 'true' : null, - data-ref-filters=field.filters, - data-ref-path=refList.path, - data-ref-singular=refList.singular, - data-ref-plural=refList.plural).ui-select2-ref - if !field.many - a(href='/keystone/' + refList.path + '/' + item.get(field.path), style='margin-left: 10px;' + (!item.get(field.path) ? 'display: none' : '')).btn.btn-link.btn-goto-linked-item view #{refList.singular.toLowerCase()} - if field.note - .field-note!= field.note diff --git a/templates/fields/relationship/initial.jade b/templates/fields/relationship/initial.jade deleted file mode 100644 index 90e49cd14f..0000000000 --- a/templates/fields/relationship/initial.jade +++ /dev/null @@ -1,19 +0,0 @@ -if !field.isValid - .alert.alert-danger Warning: Relationship field #{field.path} refers to an invalid list: #{field.options.ref} -else - - var refList = field.refList - .field.type-relationship - label.field-label= field.label - .field-ui - .field-message - input(type='hidden', - name=field.path, - id='field_' + field.path, - value=item[field.path], - data-ref-many=field.many ? 'true' : null, - data-ref-filters=field.filters, - data-ref-path=refList.path, - data-ref-singular=refList.singular, - data-ref-plural=refList.plural).ui-select2-ref - if field.note - .field-note!= field.note diff --git a/templates/fields/s3file/form.jade b/templates/fields/s3file/form.jade deleted file mode 100644 index f0a7f3987e..0000000000 --- a/templates/fields/s3file/form.jade +++ /dev/null @@ -1,27 +0,0 @@ -- var hasFile = item.get(field.paths.exists) -.field.type-s3file(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=hasFile ? 'true' : 'false') - label.field-label= field.label - input(type='file', name=field.paths.upload).field-upload - input(type='hidden', name=field.paths.action, value='').field-action - .field-ui(class=hasFile ? 'has-file' : false) - .file-container - .file-details - if hasFile - .file-values - a(href=item.get(field.paths.url), target='_blank').field-value - if field.hasFormatter() - !=field.format(item) - else - =field.format(item) - .upload-queued.pull-left - .alert.alert-success File selected - save to upload - .delete-queued.pull-left - .alert.alert-danger - .file-toolbar - div.pull-left - button(type='button').btn.btn-default.btn-upload-file=(hasFile ? 'Change' : 'Upload' ) + ' File' - button(type='button', data-alt-text='Delete File', style=(hasFile ? '' : 'display: none;')).btn.btn-link.btn-cancel.btn-delete-file Remove File - button(type='button', data-alt-text='Cancel Upload', style='display: none;').btn.btn-link.btn-cancel.btn-cancel-file Cancel Upload - button(type='button', style='display: none;').btn.btn-link.btn-cancel.btn-undo-file Undo Remove - if field.note - .col-md-10: .field-note!= field.note diff --git a/templates/fields/select/form.jade b/templates/fields/select/form.jade deleted file mode 100644 index 4f7ba7165b..0000000000 --- a/templates/fields/select/form.jade +++ /dev/null @@ -1,16 +0,0 @@ -.field.type-select(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false', data-field-value=item.get(field.path)) - label.field-label= field.label - .field-ui - if field.noedit - if item.get(field.path) - .field-value= field.format(item) - else - .help-block (not set) - else - select(name=field.path).ui-select2 - if field.emptyOption - option(value='') - each opt in field.ops - option(value=opt.value, selected=(opt.value == item.get(field.path)))= opt.label - if field.note - .field-note!= field.note diff --git a/templates/fields/select/initial.jade b/templates/fields/select/initial.jade deleted file mode 100644 index 08065be46d..0000000000 --- a/templates/fields/select/initial.jade +++ /dev/null @@ -1,10 +0,0 @@ -.field.type-select - label.field-label= field.label - .field-ui - select(name=field.path).ui-select2 - if field.emptyOption - option(value='') - each opt in field.ops - option(value=opt.value, selected=(item[field.path] == opt.value))= opt.label - if field.note - .field-note!= field.note diff --git a/templates/fields/text/form.jade b/templates/fields/text/form.jade deleted file mode 100644 index 20567e8869..0000000000 --- a/templates/fields/text/form.jade +++ /dev/null @@ -1,10 +0,0 @@ -.field(class='type-' + field.type, data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - - var value = field.format(item) - .field-ui(class='width-' + field.width) - if field.noedit - .field-value= value - else - input(type='text', name=field.path, value=value, autocomplete='off').form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/text/initial.jade b/templates/fields/text/initial.jade deleted file mode 100644 index 15a32d5819..0000000000 --- a/templates/fields/text/initial.jade +++ /dev/null @@ -1,6 +0,0 @@ -.field(class='type-' + field.type) - label.field-label= field.label - .field-ui(class='width-' + field.width) - input(type='text', name=field.path, value=item[field.path] || field.options.default, autocomplete='off').form-control - if field.note - .field-note!= field.note diff --git a/templates/fields/textarea/form.jade b/templates/fields/textarea/form.jade deleted file mode 100644 index e06d76a5bf..0000000000 --- a/templates/fields/textarea/form.jade +++ /dev/null @@ -1,9 +0,0 @@ -.field.type-textarea(data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - .field-value!= utils.textToHTML(item.get(field.path)) - else - textarea(name=field.path, style='height: #{field.height}px').form-control= item.get(field.path) - if field.note - .field-note!= field.note diff --git a/templates/fields/textarea/initial.jade b/templates/fields/textarea/initial.jade deleted file mode 100644 index 21dc3be3e0..0000000000 --- a/templates/fields/textarea/initial.jade +++ /dev/null @@ -1,6 +0,0 @@ -.field.type-textarea - label.field-label= field.label - .field-ui(class='width-' + field.width) - textarea(name=field.path).form-control= item[field.path] || field.options.default - if field.note - .field-note!= field.note diff --git a/templates/fields/textarray/form.jade b/templates/fields/textarray/form.jade deleted file mode 100644 index 3f625e9adf..0000000000 --- a/templates/fields/textarray/form.jade +++ /dev/null @@ -1,15 +0,0 @@ -.field(class='type-' + field.type, data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - if field.noedit - each value in item.get(field.path) - .field-value= value - else - each value in item.get(field.path) - div.field-item - input(type='text', name=field.path, value=value, autocomplete='off').form-control.multi - a.btn.btn-link.btn-cancel.btn-remove-item(href=js): span.ion-close-round - a.btn.btn-xs.btn-default.btn-add-item(href=js) - | Add item - if field.note - .field-note!= field.note diff --git a/templates/fields/textarray/initial.jade b/templates/fields/textarray/initial.jade deleted file mode 100644 index e240cdf55b..0000000000 --- a/templates/fields/textarray/initial.jade +++ /dev/null @@ -1,10 +0,0 @@ -.field(class='type-' + field.type, data-field-type=field.type, data-field-path=field.path, data-field-collapse=field.collapse ? 'true' : false, data-field-depends-on=field.dependsOn, data-field-noedit=field.noedit ? 'true' : 'false') - label.field-label= field.label - .field-ui(class='width-' + field.width) - div.field-item - input(type='text', name=field.path, value=value, autocomplete='off').form-control.multi - a.btn.btn-link.btn-cancel.btn-remove-item(href=js): span.ion-close-round - a.btn.btn-xs.btn-default.btn-add-item(href=js) - | Add item - if field.note - .field-note!= field.note diff --git a/templates/fields/url/form.jade b/templates/fields/url/form.jade deleted file mode 100644 index 3abb8b9fcd..0000000000 --- a/templates/fields/url/form.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/form \ No newline at end of file diff --git a/templates/fields/url/initial.jade b/templates/fields/url/initial.jade deleted file mode 100644 index e69f439744..0000000000 --- a/templates/fields/url/initial.jade +++ /dev/null @@ -1 +0,0 @@ -extends ../text/initial \ No newline at end of file