Skip to content

Commit

Permalink
Port #3668 to bs2 mode
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksandar Jovanov committed Jul 23, 2017
1 parent 0ad7158 commit 897d445
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ckan/templates-bs2/macros/form.html
Expand Up @@ -416,7 +416,7 @@
data-module-field_url="{{ field_url }}" data-module-field_upload="{{ field_upload }}" data-module-field_clear="{{ field_clear }}" data-module-upload_label="{{ upload_label }}" data-module-field_name="{{ field_name }}">
{% endif %}

{{ input(field_url, label=url_label, id='field-image-url', placeholder=placeholder, value=data.get(field_url), error=errors.get(field_url), classes=['control-full']) }}
{{ input(field_url, label=url_label, id='field-image-url', type='url', placeholder=placeholder, value=data.get(field_url), error=errors.get(field_url), classes=['control-full']) }}

{% if is_upload_enabled %}
{{ input(field_upload, label=upload_label, id='field-image-upload', type='file', placeholder='', value='', error='', classes=['control-full']) }}
Expand Down
2 changes: 1 addition & 1 deletion ckan/templates-bs2/package/snippets/resource_form.html
Expand Up @@ -4,7 +4,7 @@
{% set errors = errors or {} %}
{% set action = form_action or h.url_for(controller='package', action='new_resource', id=pkg_name) %}

<form id="resource-edit" class="dataset-form dataset-resource-form form-horizontal" method="post" action="{{ action }}" data-module="basic-form resource-form" enctype="multipart/form-data" novalidate>
<form id="resource-edit" class="dataset-form dataset-resource-form form-horizontal" method="post" action="{{ action }}" data-module="basic-form resource-form" enctype="multipart/form-data">
{% block stages %}
{# An empty stages variable will not show the stages #}
{% if stage %}
Expand Down

0 comments on commit 897d445

Please sign in to comment.