Super Sale Limited Time 50% OFF for All-Access Plans
Save 50% Now

Best practice to respect the look and feel for metronic CRUD operation


Hello to everybody,
I write you since we've a regular license support and I wish to take the best from Metronic template, I need to perform some CRUD operations on some items I access via REST API.

In my particular case I want to know what's the best practice to insert/edit an item. Currently I've developed it as a popup (opened using NgBootstrap's NgbModal) and on it's close I perform the update process on my side. Is this ok? or it's best to redirect to a new page where I have the insert/update form?

To show confirmation I used SweetAlert2 npm which doesn't came with Angular Demo1 template.. is this fine or it's best to use other approach?

Thanks


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (1)


Hi,

It's hard to give you the exact answer, cause it depends on the business needs.
I would say, if the form includes 5-10 fields (without subforms/tabs) it's better to do it in the modal. If it's bigger and has a big internal logic - better have the edit form on the separated page.

Regards,
Keenthemes support


Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Click any option to insert into your comment. Select text first to wrap it.
  • **text** to make things bold
  • *text* to emphasize
  • ### Heading to make headings
  • [link text](url) for links
  • ![alt text](image-url) to paste in an image
  • - item to make a list
  • 1. item to make an ordered list
  • > quote to quote somebody
  • `code` for single line of code
  • ```js ... ``` for JS code block
  • ```html ... ``` for HTML code block
  • ```scss ... ``` for SCSS code block
  • ```php ... ``` for PHP code block
  • --- for a horizontal rule
  • happy  :)
  • shocked  :|
  • sad  :(