kulanah / latticeSimulator

0 stars 0 forks source link

Database #35

Closed Ensath closed 6 years ago

Ensath commented 6 years ago

I have implemented exporting to the database. I did so by making the controls box a large form, which the export to database button submits. I assigned the relevant fields names based on their associated database columns. The atomic coordinates are sent via hidden inputs generated as part of the row. On export, a message thanking the user for their submission appears.

I changed the import from database button to a select, with the thought that it can be populated by database entries (still to be implemented).

Some adjustments were necessary, such as removing the existing form element enclosing the atomic coordinates inputs, but I have tested the changes and the original functionality appears to be unaffected.