Skip to content

Commit

Permalink
[2306][scripts, templates] Add resource 'created' field to edit form …
Browse files Browse the repository at this point in the history
…(read-only for now)
johnglover committed Apr 24, 2012

Verified

This commit was signed with the committer’s verified signature. The key has expired.
1 parent 3b33b04 commit 13805f2
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions ckan/public/scripts/application.js
Original file line number Diff line number Diff line change
@@ -638,6 +638,7 @@ CKAN.View.Resource = Backbone.View.extend({
word=='format' ||
word=='hash' ||
word=='id' ||
word=='created' ||
word=='last_modified' ||
word=='mimetype' ||
word=='mimetype_inner' ||
6 changes: 6 additions & 0 deletions ckan/public/scripts/templates.js
Original file line number Diff line number Diff line change
@@ -142,6 +142,12 @@ CKAN.Templates.resourceDetails = ' \
<input name="resources__${num}__hash" type="hidden" value="${resource.hash}" /> \
</div> \
</div> \
<div class="control-group"> \
<label for="" class="control-label" property="rdfs:label">'+CKAN.Strings.created+'</label> \
<div class="controls"> \
<input type="text" disabled="disabled" value="${resource.created}" class="disabled" /> \
</div> \
</div> \
<div class="control-group"> \
<label class="control-label">'+CKAN.Strings.extraFields+' \
<button class="btn btn-small add-resource-extra">'+CKAN.Strings.addExtraField+'</button>\
1 change: 1 addition & 0 deletions ckan/templates/js_strings.html
Original file line number Diff line number Diff line change
@@ -51,6 +51,7 @@
CKAN.Strings.datastoreEnabled = "${_('DataStore enabled')}";
CKAN.Strings.sizeBracketsBytes = "${_('Size (Bytes)')}";
CKAN.Strings.mimetype = "${_('Mimetype')}";
CKAN.Strings.created = "${_('Created')}";
CKAN.Strings.lastModified = "${_('Last Modified')}";
CKAN.Strings.mimetypeInner = "${_('Mimetype (Inner)')}";
CKAN.Strings.hash = "${_('Hash')}";

0 comments on commit 13805f2

Please sign in to comment.