Skip to content

Commit

Permalink
Updated code to show Save and add more button while editing datasets
Browse files Browse the repository at this point in the history
  • Loading branch information
ashmeet-kandhari committed Oct 2, 2018
1 parent f8ebaae commit 5a33bcf
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions ckan/templates/package/snippets/resource_form.html
Expand Up @@ -72,16 +72,16 @@
{% block previous_button %}
<button class="btn btn-default" name="save" value="go-dataset" type="submit">{{ _('Previous') }}</button>
{% endblock %}
{% block again_button %}
<button class="btn btn-default" name="save" value="again" type="submit">{{ _('Save & add another') }}</button>
{% endblock %}
{% block save_button %}
<button class="btn btn-primary" name="save" value="go-metadata" type="submit">{% block save_button_text %}{{ _('Finish') }}{% endblock %}</button>
{% endblock %}
{% else %}
{% block add_button %}
<button class="btn btn-primary" name="save" value="go-dataset-complete" type="submit">{{ _('Add') }}</button>
{% endblock %}
{% endif %}
{% block again_button %}
<button class="btn btn-default" name="save" value="again" type="submit">{{ _('Save & add another') }}</button>
{% endblock %}
{% block save_button %}
{% if stage %}
<button class="btn btn-primary" name="save" value="go-metadata" type="submit">{{ _('Finish') }}</button>
{% else %}
<button class="btn btn-primary" name="save" value="go-dataset-complete" type="submit">{{ _('Finish') }}</button>
{% endif %}
{% endblock %}
</div>
</form>

0 comments on commit 5a33bcf

Please sign in to comment.