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

Us1642 templates #273

Merged
merged 3 commits into from
Oct 5, 2020
Merged

Us1642 templates #273

merged 3 commits into from
Oct 5, 2020

Conversation

zannkukai
Copy link
Contributor

Merging US1642-template to dev

Code review check list

  • Commit message template compliance.
  • Commit message without typos.
  • File names.
  • Functions names.
  • Functions docstrings.
  • Unnecessary commited files?
  • Extracted translations?

This commit add the possibility to use a resource. If a resource can be
used, it is associated to an URL to use this resource. This commit also
add a button ('use') for each search result and in the detail view. This
button can be controlled by the 'canUse' parameter from the resource
configuration.

Note :
  * 'editing a resource' is the fact to open the editor for this resource
and update the data.
  * 'using a resource' if the fact to use the resource as a template
skeleton to create an other resource (not necessarily the same resource
type).

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
* Extracts editor title  name from formlyForm
* Display editor title and actions button on top of the editor in sticky
  position.
* Adds editor behavior to pre-fill the form from a template.
* Adds editor behavior to save data as a template.
* Editor directories management.

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
* When we create a new holding/item from 'scratch', it will be linked
with a document. This is done by adding a 'document' argument into the
query url. Using a template removes this argument from query string and
cause an HTTP 400 error when trying to save because the editor lost the
link with the document. This commit solves this problem keeping all
existing arguments from query string when loading a template.

Co-authored-by: Renaud Michotte <renaud.michotte@gmail.com>
@zannkukai zannkukai requested a review from sebdeleze October 5, 2020 07:55
@zannkukai zannkukai merged commit 65ccc06 into dev Oct 5, 2020
@sebdeleze sebdeleze deleted the US1642-templates branch October 8, 2020 07:08
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.

2 participants