Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
taleksovska committed Jul 31, 2024
1 parent 882d289 commit 2b579e9
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<p> </p>
{% if request.args.get('errors') %}
<p class="text-danger">That dataset name already exists</p>
<p class="text-danger">Please fill the dataset title</title></p>
{% endif %}
<form id="bulk_upload_form" method="post" enctype="multipart/form-data">
{{ form.input('title', id='field-dataset-title', label=_('Dataset Title'), value="", error="", placeholder='e.g. TransX data') }}
Expand Down
17 changes: 10 additions & 7 deletions ckanext/bulkupload/templates/package/resource_busoperator.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,24 @@
{% block primary_content %}
<p> </p>
{% block form %}
<form id="bulk_upload_form" method="post" enctype="multipart/form-data">
<form id="bulk_upload_form" method="post" enctype="multipart/form-data">
{{ form.input('title', id='field-dataset-title', label=_('Dataset Title'), value=pkg_dict.title, error="", placeholder='eg. TransX data') }}
<div style="margin:-20px 0px 20px 0px;"><small>{{ form.info('The name of the dataset') }}</small></div>
{{ form.input('date-start', type='date', id='field-date-start', label=_('Date start'), value=pkg_dict.dataset_start_date, error='') }}
<div style="margin:-20px 0px 20px 0px;"><small>{{ form.info('Date start') }}</small></div>
{{ form.input('date-end', type='date', id='field-date-end', label=_('Date end'), value=pkg_dict.dataset_end_date, error='') }}
<div style="margin:-20px 0px 20px 0px;"><small>{{ form.info('Date end') }}</small></div>
{{ form.input('organization', id='field-organization', label=_('Organization'), value=pkg_dict.organization.title, error='') }}
<div style="margin:-20px 0px 20px 0px;"><small>{{ form.info('Organiation') }}</small></div>

<strong class="text-success">Dataset Created. Please upload the file</strong>
<div style="margin:-20px 0px 20px 0px;"><small>{{ form.info('Date end') }}</small></div>
<div>
<label for="field-organization">{{ _('Organization') }}</label>
<input type="text" id="field-organization" name="organization" value="{{ pkg_dict.organization.title }}" disabled>
</div>
<div style="margin-bottom: 40px;">
<strong class="text-success">Dataset Created. Please upload the file</strong>
</div>

<div style="margin-bottom: 20px;"><input class ='btn btn-default' type="file" name="file[]"></div>
<div style="display:flex; gap:10px">
<button type='submit', class ='btn btn-primary', icon='plus-square'>{{_('Upload')}}</button>
<button type='submit' class ='btn btn-primary' icon='plus-square'>{{_('Upload')}}</button>
</div>
</form>
{% endblock %}
Expand Down

0 comments on commit 2b579e9

Please sign in to comment.