Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated code to show Save and add more button while editing datasets #4490

Conversation

ashmeet-kandhari
Copy link
Contributor

@ashmeet-kandhari ashmeet-kandhari commented Oct 2, 2018

Fixes #

Proposed fixes:

  1. Moved Save and Add button outside if clause.
  2. Using single save block but with different actions
  3. Removed the add block

Features:

  • includes tests covering changes
  • includes updated documentation
  • includes user-visible changes
  • includes API changes
  • includes bugfix for possible backport

Please [X] all the boxes above that apply

{% 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>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we keep the "Add" label on this case? I think it makes more sense to keep the existing message.

@amercader
Copy link
Member

Thanks a lot @ashmeet-kandhari this works as expected, only one minor comment and it's good to go

@ashmeet-kandhari
Copy link
Contributor Author

Hi @amercader i have reverted all the changes and just added the if-else logic now.

@amercader amercader merged commit 7a0c1b0 into ckan:master Oct 16, 2018
@amercader
Copy link
Member

Thanks @ashmeet-kandhari

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants